TFTPサーバにバックアップ

ServerIron XLというロードバランサの設定ファイルをバックアップしたいので、
TFTPサーバを構築した。OSはCentOS


yum install tftp tftp-server


/etc/xinetd.d/tftp を編集.

service tftp
{
        socket_type             = dgram
        protocol                = udp
        wait                    = yes
        user                    = root
        server                  = /usr/sbin/in.tftpd
        server_args             = -v -c -s /tftpboot
        disable                 = yes                 #noに変更
        per_source              = 11
        cps                     = 100 2
        flags                   = IPv4
	only_from		= 192.168.1.0/24     #追加 IP制限
}

"server_args"行に"-v"を加えておくことで/var/log/messagesに詳しいログを取ることができる。
"-c"は新しいファイルを作成するという意味


起動
/etc/init.d/xinetd start


自動起動設定
chkconfig xinetd on

  • ServerIron XL

web管理ページ
Command > TFTP > Configuration
TFTP Server IPとConfiguration File Nameを設定し、
"Save from RAM to Server"ボタンを押せば、TFTPサーバに設定ファイルが保存される。