Для авторов
Архив рассылки
Русский
English
   Путь: Panvasoft / Блог / Установка и настройка службы TFTP (Trivial File Transfer Protocol).
[Новости] [Linux] [Windows XP] [Windows Vista] [Windows Server] [Windows 7] [Администрирование] [Сеть и интернет] [Безопасность] [Tricks & Tips] [Мультимедиа] [Железо] [Книги] [Проечее] 13:23:23, Пятница, 29 Марта 2024 

|

Нередко возникает необходимость передать с машины на машину один или несколько файлов. Проще всего для решения этой задачи использовать FTP сервер, но в некоторых случаях его использование будет сродни "выстрелу по воробью из пушки". Microsoft предоставляет возможность использовать для решения задач простой передачи файлов службу TFTP, которая не требует для работы с файлами авторизации, не выдаёт списков файлов и так далее. Единственная её задача - сделать возможным скачивание и закачку файлов.

Использование TFTP будет удобно при автоматизации каких-либо действий при помощи скриптов. Работающая служба знанимает около двух мегабайт оперативной памяти и является отличной альтернативой IIS для решения простых задач скачивания-закачки файлов.

TFTP расшифровывается как Trivial File Transfer Protocol или упрощённый протокол передачи файлов. Этот протокол описан в следующих RFC:

1350 - The TFTP Protocol
2347 - TFTP Option Extension
2348 - TFTP Blocksize Option
2349 - TFTP Timeout Interval and Transfer Size Options

Установка Trival FTP
Откройте каталог i386 дистрибутива Windows и скопируйте файл TFTPD.EX_ в каталог %SystemRoot%\system32. Где %SystemRoot% - папка, куда установлена Windows.

В командной стрке перейдите в %SystemRoot%\system32 и выполните команду

expand tftpd.ex_ tftpd.exe

Файл будет распакован и сохранён с именем tftpd.exe. После этого файл tftpd.ex_ можно удалить.

Теперь нужно установить службу TFTP. Сделать это проще всего при помощи следующего reg-файла.


REGEDIT4

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\TFTPD]
"Type"=dword:00000010
"Start"=dword:00000003
"ErrorControl"=dword:00000001
"ImagePath"=hex(2):25,53,79,73,74,65,6d,52,6f,6f,74,25,5c,73,79,73,74,65,6d,33,\
32,5c,74,66,74,70,64,2e,65,78,65,00
"DisplayName"="Упрощенный FTP-демон"
"DependOnService"=hex(7):54,63,70,69,70,00,00
"DependOnGroup"=hex(7):00
"ObjectName"="LocalSystem"
"Description"="Реализует стандарт Интернета Trivial FTP, не требующий имени пользователя и пароля. Компонент служб удаленной установки."
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\TFTPD\Parameters]
"Masters"=""
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\TFTPD\Security]
"Security"=hex:01,00,14,80,b8,00,00,00,c4,00,00,00,14,00,00,00,30,00,00,00,02,\
00,1c,00,01,00,00,00,02,80,14,00,ff,01,0f,00,01,01,00,00,00,00,00,01,00,00,\
00,00,02,00,88,00,06,00,00,00,00,00,14,00,fd,01,02,00,01,01,00,00,00,00,00,\
05,12,00,00,00,00,00,18,00,ff,01,0f,00,01,02,00,00,00,00,00,05,20,00,00,00,\
20,02,00,00,00,00,14,00,8d,01,02,00,01,01,00,00,00,00,00,05,04,00,00,00,00,\
00,14,00,8d,01,02,00,01,01,00,00,00,00,00,05,06,00,00,00,00,00,14,00,00,01,\
00,00,01,01,00,00,00,00,00,05,0b,00,00,00,00,00,18,00,ff,01,0f,00,01,02,00,\
00,00,00,00,05,20,00,00,00,25,02,00,00,01,01,00,00,00,00,00,05,12,00,00,00,\
01,01,00,00,00,00,00,05,12,00,00,00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\TFTPD\Enum]
"0"="Root\\LEGACY_TFTPD\\0000"
"Count"=dword:00000001
"NextInstance"=dword:00000001

Сохраните эти строки в текстовом файле с любым именем и расширением reg, после чего, запустите этот reg-файл. Информация о службе будет добавлена в реестр. Перезагрузите компьютер и в оснастке управления службами проверьте, что служба Упрощенный FTP-демон зарегистрирована.

Установка и настройка службы TFTP (Trivial File Transfer Protocol).
Служба TFTP зарегистрирована


Теперь нужно указать службе каталог, который будет использоваться для хранения файлов. Откройте редактор реестра и перейдите к ключу

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\TFTPD\Parameters

Создайте новый строковый параметр Directory. В значении параметра укажите путь к папке, которая будет корневой. Например, C:\tftpdroot.

Установка и настройка службы TFTP (Trivial File Transfer Protocol).
Корневая папка службы TFTP


Служба настроена. Осталось её запустить и проверить работу. Для запуска в оснастке управления службами откройте свойства службы Упрощённый FTP-демон и нажмите Старт. Если необходимо, чтобы служба запускалась автоматически после каждой загрузки Windows, то измените тип её запуска на Авто.

Для обмена файлами используется утилита tftp.exe. Она находится в каталоге %SystemRoot%\system32. Если утилиты в этом каталоге не оказалось, то распакуйте её из дистрибутива так же, как и tftpd.ex_, о чём говорилось в начале статьи.

Чтобы просмотреть ключи для запуска tftp.exe, запустите её в командной строке без параметров.

Установка и настройка службы TFTP (Trivial File Transfer Protocol).
Ключи TFTP


Скачать файл можно при помощи команды

tftp 127.0.0.1 GET test.zip C:\test.zip

Результатом выплнения такой команды будет сохранённый в корне диска С файл test.zip, скачанный с сервера 127.0.0.1

Установка и настройка службы TFTP (Trivial File Transfer Protocol).
Файл скачан


При настройке файрвола обратите внимание на то, что служба TFTPD прослушивает порт 69 UDP, но отвечает с произвольного номера порта, больше 1023.

Категория: Сеть и интернет
Источник: windowsfaq.ru Опубликовал: Feeder, Дата: 10.1.2007, Просмотров сегодня: 4, Просмотров всего: 88546, Рейтинг: 1.38 (Проголосовало: 13) Теги:

Расскажи друзьям:


Еще статьи на угад:
Firefox и 30-процентный барьер
Установка Transmission на WD MyBook World Edition
Установка и настройка службы TFTP (Trivial File Transfer Protocol).
Установка Transmission на WD MyBook Live
Проверка на невидимость в ICQ
Средства поддержки для Windows XP (Windows XP Support tools SP2)
Оптика в локальной сети: быстрее, дальше, гибче

Ваши комментарии:
Pearlene McKee, pearlenemckee73[at]many.onstir.com в 21.5.2022 23:51:14
n. The U.S. economic situation has shifted somewhat over the previous half a century. Regrettably, this isn't exactly how the united state.
Pearlene McKee, pearlenemckee73[at]many.onstir.com в 21.5.2022 23:49:26
n. The U.S. economic situation has shifted somewhat over the previous half a century. Regrettably, this isn't exactly how the united state.
Tonia MacGillivray, toniamacgillivray54[at]many.onstir.com в 16.5.2022 06:22:36
U.S. Immigration and also Customs Enforcement authorities claim Joel Arrona Lara was desired on a warrant in a homicide situation in Mexico. Arrona attorney Emilio Amaya Garcia told KCBS-TV on Sunday he is uninformed of any kind of warrant. Arrona Lara's other half had to drive herself to the hospital as well as deliver without her spouse after he was restrained by migration agents Wednesday in San Bernardino, California. The majority of translation agencies also provide great outcomes with their actual own years of presence seeing that an incredible relocate to your assistance they provide. The well-trusted and also preferred a translation firm might be your best help it generally products. Standing - Well-renowned translation companies are usually the really ideal within their area. Old that might industry the advantages of the translation firm. The building industry is swiftly establishing across the world, and significant adjustments can be observed in the structures developed recently, which constructed over a decade ago. The vital gamers in building sector are resourcefully using their primary resources to beginner long-term growth modifications to acquire and promote their competitive advantage in their target audience. The conversion of communities into cities are expanding the demand for new construction tasks. Changing way of lives, raising urbanization pattern, as well as growing need for energy-efficient as well as eco-friendly domestic as well as non-residential structures have actually imposed engineers as well as engineers to change the design of concrete frameworks, which will collection for many applications and also requirements.
Tonia MacGillivray, toniamacgillivray54[at]many.onstir.com в 16.5.2022 06:20:54
U.S. Immigration and also Customs Enforcement authorities claim Joel Arrona Lara was desired on a warrant in a homicide situation in Mexico. Arrona attorney Emilio Amaya Garcia told KCBS-TV on Sunday he is uninformed of any kind of warrant. Arrona Lara's other half had to drive herself to the hospital as well as deliver without her spouse after he was restrained by migration agents Wednesday in San Bernardino, California. The majority of translation agencies also provide great outcomes with their actual own years of presence seeing that an incredible relocate to your assistance they provide. The well-trusted and also preferred a translation firm might be your best help it generally products. Standing - Well-renowned translation companies are usually the really ideal within their area. Old that might industry the advantages of the translation firm. The building industry is swiftly establishing across the world, and significant adjustments can be observed in the structures developed recently, which constructed over a decade ago. The vital gamers in building sector are resourcefully using their primary resources to beginner long-term growth modifications to acquire and promote their competitive advantage in their target audience. The conversion of communities into cities are expanding the demand for new construction tasks. Changing way of lives, raising urbanization pattern, as well as growing need for energy-efficient as well as eco-friendly domestic as well as non-residential structures have actually imposed engineers as well as engineers to change the design of concrete frameworks, which will collection for many applications and also requirements.
sprigun02f, sprigun02f[at]gmail.com в 30.8.2018 12:13:13
https://custory.com/first/ - 퍼스트카지노
https://custory.com/yes/ - 예스카지노
https://custory.com/yescasino/ - YES카지노
https://custory.com/obama/ - 오바마카지노
https://custory.com/super/ - 슈퍼카지노
https://como79.com/yescasino/ - 예스카지노
https://como79.com/yes/ - YES카지노
https://como79.com/obama/ - 오바마카지노
https://como79.com/super/ - 슈퍼카지노
https://stylebet77.com/yes/ - 예스카지노
https://stylebet77.com/first/ - 퍼스트카지노
https://stylebet77.com/obama/ - 오바마카지노
https://dancesweb.com/first/ - 퍼스트카지노
https://dancesweb.com/yesca/ - 예스카지노
https://dancesweb.com/yesno/ - YES카지노
https://dancesweb.com/obama/ - 오바마카지노
https://dancesweb.com/ - 슈퍼카지노
https://pauio.com/first/ - 퍼스트카지노
https://pauio.com/yesci/ - 예스카지노
https://pauio.com/yeska/ - YES카지노
https://pauio.com/obamas/ - 오바마카지노
https://pauio.com/super/ - 슈퍼카지노
Добавить свое мнение о данной программе:
Имя
Email
Сообщение:
Введите символы:
вверх страницы

  Подпишитесь на лист рассылки и стань одним из 16434, кто узнает о новых программах по почте!!

 Введтите ваш e-mail:

Подписаться
Отписаться



© 1999 - 2024 Panva Web Studio
(0.03598 секунд) Написать письмо вебмастеру