in.tftpd

  • sudo apt-get install tftpd
  • sudo vi /etc/xinetd.d/tftp
    service tftp
    {
            protocol                = udp
            port                    = 69
            socket_type     = dgram
            wait                    = yes
            user                    = nobody
            server          = /usr/sbin/in.tftpd
            server_args     = -s /tftpboot
            disable         = no
    }
    
  • sudo mkdir /tftpboot
  • sudo chmod -R 777 /tftpboot
  • sudo chown -R nobody /tftpboot
  • sudo service xinetd restart
  • sudo netstat -anp | grep tftp
    $ sudo netstat -anp | grep xinetd
    udp     0       0       0.0.0.0:69      0.0.0.0:*       8279/xinetd
    unix    2       [ ]     DGRAM   333825  8279/xinetd
    

tftpd-hpa

  • sudo apt-get install tftpd-hpa
  • sudo vi /etc/default/tftpd-hpa
    TFTP_USERNAME="tftp"
    TFTP_DIRECTORY="/tftpboot"
    TFTP_ADDRESS="0.0.0.0:69"
    TFTP_OPTIONS="-l -c -s"
    
  • service tftpd-hpa restart
  • sudo netstat -anp | grep tftp

參考資料


台南小新 發表在 痞客邦 留言(0) 人氣()