{"id":240,"date":"2016-06-26T07:58:50","date_gmt":"2016-06-26T06:58:50","guid":{"rendered":"http:\/\/www.balajibandi.com\/?p=240"},"modified":"2018-09-23T13:24:03","modified_gmt":"2018-09-23T12:24:03","slug":"install-and-configure-tftp-under-ubuntu","status":"publish","type":"post","link":"https:\/\/www.balajibandi.com\/?p=240","title":{"rendered":"Install and configure TFTP under Ubuntu"},"content":{"rendered":"<h2><strong>Install and configure TFTP under Ubuntu<\/strong><\/h2>\n<h2><strong>Steps :\u00a0<\/strong><\/h2>\n<div class=\"how-to-step steps-content \">\n<div class=\"step-header\">\n<div class=\"howto-step--number\"><strong>install tftpd-hpa<\/strong><\/div>\n<\/div>\n<div class=\"step-content\">\n<p>apt-get install tftpd-hpa<\/p>\n<\/div>\n<\/div>\n<div class=\"how-to-step steps-content \">\n<div class=\"step-header\">\n<div class=\"howto-step--number\"><strong>edit the config file<\/strong><\/div>\n<\/div>\n<\/div>\n<div class=\"how-to-step steps-content \">\n<div class=\"step-content\">\n<p>sudo vi \/etc\/default\/tftpd-hpa<\/p>\n<\/div>\n<\/div>\n<div class=\"how-to-step steps-content \">\n<div class=\"step-header\">\n<div class=\"howto-step--number\"><strong>change the content as per your requirement : ( my setup as below)<\/strong><\/div>\n<\/div>\n<\/div>\n<div class=\"how-to-step steps-content \">\n<div class=\"step-header\"><\/div>\n<div class=\"step-content\">\n<p># \/etc\/default\/tftpd-hpa<br \/>\nTFTP_USERNAME=&#8221;tftp&#8221;<br \/>\nTFTP_DIRECTORY=&#8221;\/tftp&#8221;<br \/>\nTFTP_ADDRESS=&#8221;0.0.0.0:69&#8243;<br \/>\nTFTP_OPTIONS=&#8221;&#8211;secure -c -vv -i&#8221;<\/p>\n<\/div>\n<\/div>\n<div class=\"how-to-step steps-content \">\n<div class=\"step-header\">\n<div class=\"howto-step--number\"><strong>write and quit<\/strong><\/div>\n<\/div>\n<div class=\"step-content\">\n<p>after your config file is ready to rock and roll press Esc then :WQ<\/p>\n<\/div>\n<\/div>\n<div class=\"how-to-step steps-content \">\n<div class=\"step-header\">\n<div class=\"howto-step--number\"><strong>create the directory files will reside in<\/strong><\/div>\n<\/div>\n<div class=\"step-content\">\n<p>mkdir \/tftp<\/p>\n<\/div>\n<\/div>\n<div class=\"how-to-step steps-content \">\n<div class=\"step-header\">\n<div class=\"howto-step--number\"><strong>change permissions and ownership<\/strong><\/div>\n<\/div>\n<div class=\"step-content\">\n<p>sudo chmod -R 777 \/tftp<br \/>\nsudo chown -R nobody \/tftp<\/p>\n<\/div>\n<\/div>\n<div class=\"how-to-step steps-content \">\n<div class=\"step-header\">\n<div class=\"howto-step--number\"><strong>restart service to get new config effective<\/strong><\/div>\n<\/div>\n<div class=\"step-content\">\n<p>\/etc\/init.d\/tftpd-hpa restart<\/p>\n<\/div>\n<\/div>\n<div class=\"how-to-step steps-content \">\n<div class=\"step-header\">\n<div class=\"howto-step--number\"><strong>please note you need to open up firewall and or configure port forwarding. ( if you have FW between your network and TFTP Server)<\/strong><\/div>\n<\/div>\n<div class=\"step-content\">\n<p>UDP port is set to 69<\/p>\n<p><strong>Testing :<\/strong><\/p>\n<p>FW1\/pri\/act# copy running-config tftp:\/\/192.168.1.67\/ \u00a0 \u00a0 \u00a0&#8212;&#8211; My TFTP IP address, change as per your server IP<\/p>\n<p>Source filename [running-config]?<\/p>\n<p>Address or name of remote host [192.168.1.67]?<\/p>\n<p>Destination filename [running-config]?<br \/>\nCryptochecksum: bfa1e11d 5720c265 0f7453c8 aa90c815<br \/>\n!!<br \/>\n7416 bytes copied in 0.230 secs<\/p>\n<p><strong>Checking TFTP Server :<\/strong><\/p>\n<p>root@syslog:~# ls \/tftp\/<br \/>\n<strong>running-config<\/strong><\/p>\n<\/div>\n<p><strong>Good Luck ! Happy reading&#8230;.<\/strong><\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Install and configure TFTP under Ubuntu Steps :\u00a0 install tftpd-hpa apt-get install tftpd-hpa edit the config file sudo vi \/etc\/default\/tftpd-hpa change the content as per your requirement : ( my setup as below) # \/etc\/default\/tftpd-hpa TFTP_USERNAME=&#8221;tftp&#8221; TFTP_DIRECTORY=&#8221;\/tftp&#8221; TFTP_ADDRESS=&#8221;0.0.0.0:69&#8243; TFTP_OPTIONS=&#8221;&#8211;secure -c -vv -i&#8221; write and quit after your config file is ready to rock and roll [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-240","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/www.balajibandi.com\/index.php?rest_route=\/wp\/v2\/posts\/240","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.balajibandi.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.balajibandi.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.balajibandi.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.balajibandi.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=240"}],"version-history":[{"count":4,"href":"https:\/\/www.balajibandi.com\/index.php?rest_route=\/wp\/v2\/posts\/240\/revisions"}],"predecessor-version":[{"id":719,"href":"https:\/\/www.balajibandi.com\/index.php?rest_route=\/wp\/v2\/posts\/240\/revisions\/719"}],"wp:attachment":[{"href":"https:\/\/www.balajibandi.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=240"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.balajibandi.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=240"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.balajibandi.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=240"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}