4
5

More than 5 years have passed since last update.

DebianにTFTPサーバを入れる手順

Last updated at Posted at 2012-06-04

ネットワーク機器のconfigや、PXEブートとかで結局使ったりするtftpサーバを立てる手順 (xinetd経由)

インストール
sudo aptitude -y install tftpd
sudo aptitude -y install xinetd
/etc/xinetd.d/tftpd
service tftp
{   
    disable = no
    log_type = File /var/log/tftpd
    log_on_success = HOST
    log_on_failure = HOST
    socket_type = dgram
    protocol = udp
    wait = yes
    user = root
    server = /usr/sbin/in.tftpd
    server_args = -s /tftpboot
    per_source = 11
    cps = 100 2
    flags = IPv4
}
sudo mkdir /tftpboot
sudo chmod 777 /tftpboot
sudo /etc/init.d/xinted restart

tftpd-hpaの場合

tftpdよりもこっちの方が機能が豊富

aptitude -y install tftpd-hpa
/etc/default/tftpd-hpa
TFTP_USERNAME="tftp"
TFTP_DIRECTORY="/tftpboot"
TFTP_ADDRESS="0.0.0.0:69"
TFTP_OPTIONS="-c --secure"
4
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
5