Не настроена корневая папка сервера развертывания tftp windows

Протокол TFTP (Trivial File Transfer Protocol) упрощенный протокол передачи файлов, обеспечивающей простую возможность скачивания и загрузки. Обычно протокол TFTP используется для загрузки по PXE (сетевая загрузка, бездисковые рабочие станции, установка ОС по сети, и пр.), загрузки/обновления конфигурации/прошивок сетевого оборудования и ряда других специфичных задач. В проколе отсутствуют средства защиты, аутентификации и управления. Основное его преимущество – простота реализации клиентской части и высокая производительность при передаче файлов большого объема. Протокол работает по порту 69 UDP.

Содержание:

  • Запуск TFTP сервера в Windows
  • Установка клиента TFTP в Windows
  • Установка встроенного TFTP сервера в Windows Server

Запуск TFTP сервера в Windows

Чаще всего для быстрого запуска TFTP сервера в Windows используют бесплатный opensource Tftpd64 (tftpd32). Вы можете скачать portable или установочный пакет tftpd64 здесь.

  1. Запустите исполняемый файл tftpd64.exe;
  2. Интерфейс tftpd64 состоит из нескольких вкладок. На вкладке Tftp Server нажмите кнопку Settings и выберите каталог, который вы хотите опубликовать;
    запуск сервера tftpd64 в windows

  3. Выберите TFTP Security = None
  4. После того, как вы изменили настройки TFTP, нужно перезапустить программу.
  5. Откройте в Windows Firewall порт 69/UDP для входящего TFTP трафика. Можно создать разрешающее правило в файерволе Windows с помощью PowerShell: N
    ew-NetFirewallRule -DisplayName 'TFTP-UDP-In'  -Direction Inbound -Action Allow -Protocol UDP -LocalPort 69
  6. Теперь вы можете подключиться к tftp, чтобы получить или загрузить файл.

Программу tftpd64 можно использовать в качестве TFTP клиента. Перейдите на вкладку Tftp Client, укажите IP адрес TFTP сервера и порт подключения (69 по умолчанию).

Теперь вы можете скачать (Get) или загрузить (Put) файлы на указанный tftp сервер.

На вкладке Log viewer можно посмотреть логи подключений к TFTP.

Установка клиента TFTP в Windows

По умолчанию в Windows не установлен клиент TFTP. Вы можете установить в Windows 10/11 его командой:

Enable-WindowsOptionalFeature –FeatureName TFTP -Online

В Windows Server для установки клиента TFTP используется другая команда:

Install-WindowsFeature TFTP-Client

Теперь вы можете использовать утилиту tftp.exe для скачки и загрузки файлов по TFTP.

  • Передать файл на TFTP сервер:
    tftp 192.168.1.100 PUT имя_файла.txt
  • Скачать файл с TFTP:
    tftp 168.1.100 GET имя_файла.txt

Установка встроенного TFTP сервера в Windows Server

В Windows Server доступен встроенный TFTP сервер, который входит в состав роли WDS и используется для PXE загрузки и установки Windows по сети. Чтобы установить службу TFTP, откройте консоль Server Manager -> Add Roles and Features Wizard -> выберите роль Windows Deployment Services (Службы развертывания Windows).

Установка роли wds в windows server

В компонентах роли WDS выберите только Transport Server (Транспортный сервер).

Установить транспортный сервис WDS с tftp службой

После завершения установки создайте каталог, который будет корневым каталогом для TFTP сервера. Например, C:\tftp.

Укажите путь к корневому каталогу TFTP в строковом REG_SZ параметре RootFolder в разделе реестра HKLM\SYSTEM\CurrentControlSet\services\WDSServer\Providers\WDSTFTP

Настройки tftp сервера windows в реестре

В параметре ReadFilter указан список каталогов, из которых разрешена загрузка файлов. По умолчанию загрузка возможна только из каталогов
\boot\
и
\tmp\
. Если вы используете другую структуру каталогов, нужно добавить разрешенные каталоги в параметр ReadFilter или указать тут
\*
.

Запустите службу WDSServer:

Get-Service WDSServer| Start-Service

Включить автоматический запуск службы с помощью Set-Service:

set-service WDSServer -StartupType Automatic

Проверьте, что служба запущена и ее процесс ожидает подключения на порту UDP 69:

Get-Process -Id (Get-NetUDPEndpoint -LocalPort 69).OwningProcess

В Windows Firewall доступ к UDP порту 69 отрывает правило “Windows Deployment Services (UDP-In)”. Проверьте, что правило брандмауэра включено:

(Get-NetFirewallRule -displayname 'Windows Deployment Services (UDP-In)').enabled

Попробуйте скачать файл с TFTP сервера с помощью встроенного клиента tftp.exe:

tftp -i 192.168.158.10 get test.zip

tftp.exe скачать файл с сервера из командной строки

Основной недостаток встроенного TFTP сервера в Windows Server – он не позволяет открыть папку для записи. Это означает, что клиенты могут только скачивать файлы с такого TFTP сервера, но не загружать.

Barvinok

Сообщения: 592
Зарегистрирован: Вт ноя 30, 2004 4:06 pm
Откуда: Ростов-на-Дону
Контактная информация:

Demon

Сообщения: 17
Зарегистрирован: Чт мар 15, 2012 4:51 pm

Re: windows 2008 server tftp сервер

Сообщение

Demon »

не надо ниче ставить стороннего.
Снесите службы развертывания, удалите ваш сервер из авторизированных на DHCP сервере. Далее заново устанавливаете службы развертывания только с 1 компонентом транспортный сервер (сервер развертывания не устанавливать !). После установки заходите в HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\WDSServer\Providers\WDSTFTP и создаете параметр типа string c названием RootFolder, в нем указываете путь к папке где лежат образы (это будет корневой директорией tftp сервера). И значение параметра ReadFilter меняете на *. Ну и напоследок запускаете службу Сервер служб развертывания Windows (ставите ей автостарт). Да и проверьте что в фаерволе создались правила для служб развертывания Windows.
после всего надо перезагрузиться и всё будет!

anado

Сообщения: 1
Зарегистрирован: Ср мар 21, 2012 8:18 am

Re: windows 2008 server tftp сервер

Сообщение

anado »

aka писал(а):Поставить втварь из exe дистрибутива — тогда будет работать наш tftp.

после такой операции ни tftp dhcp — не настроены. Хотя обычные ПК IP получают и терминал с флешки грузится, а вот если указать что бы терминал брал сетевые настройки с DHCP и\или брать конфигурацию с TFTP — то не грузится.

Dim-soft

Сообщения: 507
Зарегистрирован: Пт янв 13, 2006 9:57 am

Re: windows 2008 server tftp сервер

Сообщение

Dim-soft »

tftp от 2008 R2 лучше чем от wtware ?
у меня сама wtware грузиться, а если пробую грузить файлы больше 100мб — не грузиться до конца, пишет много ошибок
меняю на tftpd32 — все ОК

aka

Разработчик
Сообщения: 12086
Зарегистрирован: Ср окт 01, 2003 12:06 am
Откуда: Роcсия, Тольятти
Контактная информация:

Re: windows 2008 server tftp сервер

Сообщение

aka »

Может быть лучше. Мы наш tftp только на загрузке втвари проверяли, а в втвари нету файлов больше 100мб.

aka

Разработчик
Сообщения: 12086
Зарегистрирован: Ср окт 01, 2003 12:06 am
Откуда: Роcсия, Тольятти
Контактная информация:

Re: windows 2008 server tftp сервер

Сообщение

aka »

Лучше скачать втварь в .zip и конфиги по папкам разложить. И конфигуратор работать не будет. Тебе наш tftp только стомегабайтными файлами не нравится?

Dim-soft

Сообщения: 507
Зарегистрирован: Пт янв 13, 2006 9:57 am

Re: windows 2008 server tftp сервер

Сообщение

Dim-soft »

aka писал(а):Тебе наш tftp только стомегабайтными файлами не нравится?

да, всем устраивает, но стал прикручивать загрузку winpe по сети для целей ремонта (не весь парк — тонкие клиенты, 20% windows) и столкнулся с такой проблемой. Пока решаю резервацией в DHCP и загрузкой с соседнего сервера, но хотелось бы просто зажать shift и выбрать нужный пункт в pxe.cfg.

aka

Разработчик
Сообщения: 12086
Зарегистрирован: Ср окт 01, 2003 12:06 am
Откуда: Роcсия, Тольятти
Контактная информация:

Re: windows 2008 server tftp сервер

Сообщение

aka »

Ошибка при передаче больших файлов вылезла у нашего TFTP при передаче нашего пакета гуглхрома. Найдено, починено, проверено на передаче дистрибутива втвари размером 108МБ.

Dim-soft

Сообщения: 507
Зарегистрирован: Пт янв 13, 2006 9:57 am

Re: windows 2008 server tftp сервер

Сообщение

Dim-soft »

aka писал(а):Ошибка при передаче больших файлов вылезла у нашего TFTP при передаче нашего пакета гуглхрома. Найдено, починено, проверено на передаче дистрибутива втвари размером 108МБ.

на 5.1.11 на пробу сумел запустить 600мб iso от ubunta с tftp все ок.

Doc

Сообщения: 2
Зарегистрирован: Вт июн 03, 2014 12:47 pm

Re: windows 2008 server tftp сервер

Сообщение

Doc »

Добрый день, понимаю что тем стара но все таки не подскажите как сделать так чтобы в виндово tftp можно было писать.
по дефолту как я понимаю он только на чтение

Doc

Сообщения: 2
Зарегистрирован: Вт июн 03, 2014 12:47 pm

Re: windows 2008 server tftp сервер

Сообщение

Doc »

просто хочу настроить CISCO в автоматическом режиме скидывать туда конфиги, и нехочу городить оделенный сервак под это когда уже есть с поднятым ftftp

aka

Разработчик
Сообщения: 12086
Зарегистрирован: Ср окт 01, 2003 12:06 am
Откуда: Роcсия, Тольятти
Контактная информация:

Re: windows 2008 server tftp сервер

Сообщение

aka »

На наш TFTP нельзя писать. В протоколе TFTP нет никаких механизмов авторизации. Небезопасно.

TFTP (Trivial File Transfer Protocol) is a simple file transfer protocol that allows users to transfer files between client and server. In this blog post, we will discuss how to configure TFTP Server on Windows Server 2016. TFTP is commonly used in network administration for tasks such as backing up device configurations, upgrading firmware, and transferring files between network devices.

There are several reasons why you may need to configure a TFTP Server on Windows Server 2016:

  • 1. Network administration tasks: TFTP is commonly used for network administration tasks such as backing up device configurations, upgrading firmware, and transferring files between network devices.
  • 2. Simplified file transfer: TFTP provides a simple and straightforward method for transferring files between client and server, making it an efficient choice for quick file transfers.
  • 3. Compatibility: TFTP is supported by a wide range of network devices and operating systems, making it a versatile choice for file transfers in a heterogeneous network environment.

Now that we understand the importance of configuring a TFTP Server on Windows Server 2016, let’s proceed with the step-by-step instructions for setting it up.

Video Tutorial:

Part 1. Installing the TFTP Server Feature on Windows Server 2016

Before we can configure the TFTP Server on Windows Server 2016, we need to install the necessary feature. Here are the steps to install the TFTP Server feature:

1. Open the Server Manager by clicking on the Windows icon and selecting «Server Manager» from the Start menu.
2. In the Server Manager, click on «Manage» and then select «Add Roles and Features.«
3. The Add Roles and Features Wizard will open. Click «Next» to proceed.
4. Select «Role-based or feature-based installation» and click «Next.«
5. Select the appropriate server from the server pool and click «Next.«
6. In the «Server Roles» list, scroll down and expand «Roles» > «Windows Server Update Services» > «Features.«
7. Locate «TFTP Client» and select the checkbox next to it.
8. A popup window will appear, asking to add features required by TFTP Client. Click «Add Features» to proceed.
9. Click «Next» to go to the «Features» section.
10. Review the features to be installed and click «Next» to proceed.
11. In the «Confirmation» section, click «Install» to begin the installation process.
12. Wait for the installation to complete, and then click «Close» when finished.

Pros and Cons of Installing the TFTP Server Feature on Windows Server 2016:

Pros Cons
1. Easy and straightforward process to install the TFTP Server feature on Windows Server 2016. 1. The TFTP Server feature is not enabled by default on Windows Server 2016 and needs to be manually installed.
2. Once installed, the TFTP Server feature provides a simple and efficient method for transferring files. 2. TFTP is a less secure protocol compared to other file transfer protocols such as SFTP or FTPS.
3. The TFTP Server feature is compatible with a wide range of network devices and operating systems. 3. TFTP has limited support for larger file transfers and may not be suitable for transferring large files.

Part 2. Configuring TFTP Server on Windows Server 2016

Once the TFTP Server feature is installed on Windows Server 2016, we can proceed with the configuration. Here are the steps to configure TFTP Server on Windows Server 2016:

1. Open the Server Manager and click on «Tools» > «Windows Deployment Services.«
2. In the Windows Deployment Services console, expand the server node and right-click on «Server» > «Properties.«
3. In the Server Properties window, navigate to the «TFTP» tab.
4. Ensure that the checkbox for «Enable Variable Window Extension» is checked.
5. Set the value for «Maximum Block Size» to the desired block size for file transfers.
6. Set the value for «Maximum Retransmissions» to the desired number of retransmissions.
7. Click «Apply» to save the changes and then click «OK» to close the Server Properties window.

Pros and Cons of Configuring TFTP Server on Windows Server 2016:

Pros Cons
1. Easy and straightforward process to configure the TFTP Server on Windows Server 2016. 1. TFTP is a less secure protocol compared to other file transfer protocols such as SFTP or FTPS.
2. The TFTP Server configuration settings allow for customization of block size and retransmissions. 2. TFTP has limited support for larger file transfers and may not be suitable for transferring large files.
3. The TFTP Server is compatible with a wide range of network devices and operating systems. 3. Troubleshooting TFTP Server issues can be challenging without proper monitoring and logging tools.

Part 3. Creating a TFTP Server Root Folder

After configuring the TFTP Server on Windows Server 2016, we need to create a root folder where the files will be stored. Here are the steps to create a TFTP Server root folder:

1. Open Windows Explorer and navigate to the desired location where you want to create the TFTP Server root folder.
2. Right-click on the location and select «New» > «Folder.«
3. Give the folder a descriptive name, such as «TFTP Server,» and press Enter.
4. Right-click on the newly created folder and select «Properties.«
5. In the Properties window, navigate to the «Security» tab.
6. Click on «Edit» to change the security settings.
7. In the Permissions window, click on «Add» to add the desired user or group.
8. Enter the appropriate user or group name and click «Check Names» to verify.
9. Click «OK» to add the user or group to the permissions list.
10. Set the desired permissions for the user or group, such as Read, Write, or Full Control.
11. Click «Apply» to save the changes and then click «OK» to close the Properties window.

Pros and Cons of Creating a TFTP Server Root Folder:

Pros Cons
1. Creating a TFTP Server root folder provides a centralized location for storing files. 1. Improper security settings on the TFTP Server root folder can lead to unauthorized access.
2. The TFTP Server root folder can be easily accessed and managed from Windows Explorer. 2. If the TFTP Server root folder is not properly secured, it can be vulnerable to malicious attacks.
3. The TFTP Server root folder allows for easy organization and management of files. 3. Permissions for the TFTP Server root folder need to be carefully managed to ensure data integrity and security.

Part 4. Testing the TFTP Server on Windows Server 2016

After configuring the TFTP Server and creating the root folder, it’s important to test the functionality to ensure that everything is working correctly. Here are the steps to test the TFTP Server on Windows Server 2016:

1. Open a Command Prompt by clicking on the Windows icon and typing «cmd» in the search bar.
2. In the Command Prompt, type the following command to test the TFTP Server: tftp -i <server_ip> put <filename> <destination_filename>
– Replace «» with the IP address of the TFTP Server.
– Replace «» with the name of the file you want to transfer.
– Replace «» with the desired name for the file on the server.
3. Press Enter to execute the command.
4. The TFTP Server will attempt to transfer the file to the specified location.
5. If the command is successful, you will see a message indicating that the file was transferred successfully.
6. Verify that the file appears in the TFTP Server root folder.

Pros and Cons of Testing the TFTP Server on Windows Server 2016:

Pros Cons
1. Testing the TFTP Server ensures that the configuration is working correctly. 1. Troubleshooting TFTP Server issues can be challenging without proper monitoring and logging tools.
2. Testing allows for identifying any potential connectivity issues or configuration errors. 2. TFTP is a less secure protocol compared to other file transfer protocols such as SFTP or FTPS.
3. Verifying the successful transfer of files confirms the functionality of the TFTP Server. 3. TFTP has limited support for larger file transfers and may not be suitable for transferring large files.

What to Do If You Can’t Configure TFTP Server on Windows Server 2016

If you encounter any difficulties while configuring the TFTP Server on Windows Server 2016, here are three alternative solutions you can try:

1. Use a third-party TFTP Server software: If the built-in TFTP Server feature is not working or does not meet your requirements, you can consider using a third-party TFTP Server software. There are many free and paid options available that provide more advanced features and improved security.

2. Try a different file transfer protocol: If TFTP is not suitable for your needs, you can explore other file transfer protocols such as FTP (File Transfer Protocol), SFTP (SSH File Transfer Protocol), or FTPS (FTP Secure). These protocols offer greater security and more advanced features, but may require additional configuration and setup.

3. Consult the Windows Server documentation or seek professional assistance: If you are still unable to configure the TFTP Server on Windows Server 2016, it may be helpful to consult the official Windows Server documentation or seek assistance from a professional IT consultant or network administrator who has experience with TFTP and Windows Server configurations.

Bonus Tips for Configuring TFTP Server on Windows Server 2016

Here are three bonus tips to consider when configuring TFTP Server on Windows Server 2016:

1. Enable logging and monitoring: To track TFTP Server activity and troubleshoot any potential issues, enable logging and monitoring features. This will allow you to capture and analyze data related to file transfers, connectivity, and security.

2. Secure the TFTP Server: As mentioned earlier, TFTP is a less secure protocol compared to other file transfer protocols. To enhance the security of your TFTP Server, consider implementing additional security measures such as using firewalls, restricting access to the server, and implementing encryption protocols.

3. Regularly update and patch the server: To ensure the stability and security of your TFTP Server, regularly check for updates and patches from Microsoft. Applying these updates will address any known vulnerabilities and improve the overall performance of the server.

The Bottom Line

Configuring a TFTP Server on Windows Server 2016 is a straightforward process that can provide an efficient and convenient method for transferring files in a network environment. However, it is important to consider the security implications and limitations of TFTP when implementing it in your network.

By following the step-by-step instructions provided in this blog post, you can successfully configure a TFTP Server on Windows Server 2016 and leverage its capabilities for network administration tasks.

5 FAQs about Configuring TFTP Server on Windows Server 2016

Q1: Is the TFTP Server feature enabled by default on Windows Server 2016?

A1: No, the TFTP Server feature is not enabled by default on Windows Server 2016. It needs to be manually installed using the Server Manager.

Q2: Can I transfer large files using TFTP?

A2: TFTP has limited support for larger file transfers, and it may not be suitable for transferring large files. It is recommended to use other file transfer protocols such as FTP, SFTP, or FTPS for large file transfers.

Q3: How can I secure the TFTP Server on Windows Server 2016?

A3: To enhance the security of your TFTP Server, you can implement additional security measures such as using firewalls, restricting access to the server, and implementing encryption protocols. However, it is important to note that TFTP is inherently less secure than other file transfer protocols.

Q4: Can I use a third-party TFTP Server software instead of the built-in feature?

A4: Yes, if the built-in TFTP Server feature does not meet your requirements, you can use a third-party TFTP Server software. There are many free and paid options available that provide more advanced features and improved security.

Q5: What should I do if I encounter difficulties while configuring the TFTP Server on Windows Server 2016?

A5: If you encounter difficulties while configuring the TFTP Server, you can try using a third-party TFTP Server software, explore other file transfer protocols, or consult the Windows Server documentation or seek professional assistance.

Как и в Windows Server 2003, в Windows Server 2008 R2 сервер TFTP используется как часть Windows Deployments Services для загрузки установочных образов Windows по сети. Однако, в ряде случаев, TFTP сервер может понадобиться для задач, не имеющих отношения к WDS. Каким образом можно установить и настроить сервер TFTP?

Для установки TFTP требуется запустить Server Manager и добавить новую роль Windows Deployment Services. На этапе выбора компонентов нужно выбрать Transport Server.

После завершения установки требуется создать на диске папку, которая будет являться корневой для TFTP сервера (например, «C:\TFTPRoot«).

В реестре в ветке HKLM\SYSTEM\CurrentControlSet\services\WDSServer\Providers\WDSTFTP требуется создать новый параметр RootFolder типа String и указать в качестве значения путь к ранее созданной папке.

Также следует обратить внимание на параметр реестра ReadFilter, который по умолчанию разрешает загрузку файлов только из папок «boot\» и «tmp\«. Если требуется загрузка файлов из других каталогов или корня, измените значение данного параметра (например, на ‘*‘).

Теперь запустите службу WDS:
WDSUTIL /Start-TransportServer

Не забудьте перевести службу Windows Deployment Services в режим автоматического запуска (например, с помощью оснастки «Службы» services.msc), чтобы не запускать ее вручную при каждой загрузке сервера.

Проверьте, что в брандмауэре Windows созданы необходимые правила для работы TFTP.

На этом настройка TFTP сервера завершена.

Для развёртывания PXE загрузки необходимы два сервиса — TFTP и DHCP, для их поднятия я обычно под Linux использую Dnsmasq, ещё можно настроить Mikrotik, а для Windows TFTPD64, далее маленькая инструкция для винды.

Для того, чтобы развернуть tftp и dhcp сервисы необходимо:

Загрузить нужный дистрибутив отсюда. Стоит обратить внимание, что дистрибутивы различаются по типу запуска: как службу (service edition) и как приложение (standard edition) и также по битности ОС. Для статьи я взял портативную версию, интерфейс у всех версий одинаковый.

При установке service edition выбираем все опции:

install1

Если Вы загрузили дистрибутив с запуском в качестве службы, то после установки стоит вручную запустить службу или просто перезапустить компьютер.

Запускаем TFTPD, выбираем сетевой интерфейс и жмём Settings:

setup

В общих настройках выбираем DHCP и TFTP серверы:

global

Настройки TFTP:

Указываем корневой каталог, в котором TFTP сервер будет искать файлы. За это отвечает параметр «Base Directory«. В нашем случае это C:\tftpboot. Включаем режим «Use anticipation window«, в качестве параметра указал значение 8192. Этот последний параметр позволит увеличить скорость загрузки файлов с TFTP сервера.

Внимание. Активация режима «Use anticipation window» в некоторых случаях может привести к ошибкам. И тогда его следует отключить.

tftp

Проверяем работу сервера tftp:

Для того, чтобы передать файл необходимо открыть cmd.exe и выполнить команду:

tftp 192.168.1.10 GET имя_файла.txt

Для того, чтобы получить файл с tftp-сервера, есть команда:

tftp 192.168.1.10 PUT имя_файла.txt

Настройки DHCP:

На компьютере, с которого производится установка, присвоен IP адрес 192.168.1.34 с маской сети 255.255.255.0. Компьютеры смогут общаться друг с другом, если они принадлежат одной сети. В нашем случае это сеть 192.168.1.0. Параметр «IP Pool start address» указывает начальный IP адрес, с которого DHCP будет начинаться выдавать адреса. Я установил значение в 192.168.1.5. Параметр «Size of pool» указывает, сколько компьютеров могут получить IP адреса. Я установил значение в 10. Параметр «Boot File» указывает, какой файл необходимо загрузить. В нашем случае это lpxelinux.0 в папке C:\tftpboot\boot\lpxelinux.

dhcp


Вот и всё…

PS

Простой HTTP файловый сервер под Windows

Обсудить на форуме (комментариев 0).

Понравилась статья? Поделить с друзьями:
0 0 голоса
Рейтинг статьи
Подписаться
Уведомить о
guest

0 комментариев
Старые
Новые Популярные
Межтекстовые Отзывы
Посмотреть все комментарии
  • Zabbix сервер под windows
  • Не находит драйвера при установке windows 10 с флешки
  • Стандартная программа для открытия фото windows 10
  • Windows 7 максимальная crack
  • Как свернуть игру на компьютере windows 10