a. It should be ok to set up tftp server on amp before 8.2.4.
b. After 8.2.4, we can't set up tftp server with same set up steps, we always get transfer timeout message.
c. Upgrading amp may remove iptables we created before upgrade.
d. Here is steps to set up tftp server on amp before 8.2.4.
1.
modify tftp client config file
[root@localhost xinetd.d]# vi /etc/xinetd.d/tftp
service tftp
{
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = -s /root/dump -c
disable = no
per_source = 11
cps = 100 2
flags = IPv4
}
“/root/dump” is tftp root path
2.
modify tftp server config file
vi /etc/xinetd.d/tftpd
service tftp
{
disable = no
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = -s /root/dump -c -T 600000 -v
per_source = 11
cps = 100 2
flags = IPv4
}
3.
restart tftp process
[root@localhost tftpboot]# service xinetd restart
Stopping xinetd: [ OK ]
Starting xinetd: [ OK ]
4.
modify iptables, please backup iptables before changing.
# sudo /sbin/iptables -I INPUT -p udp --dport 69 -j ACCEPT
# sudo /sbin/iptables -I INPUT -p udp --sport 69 -j ACCEPT
# sudo /sbin/iptables -I OUTPUT -p udp --sport 69 -j ACCEPT
# sudo /sbin/iptables -I OUTPUT -p udp --dport 69 -j ACCEPT
# sudo /etc/rc.d/init.d/iptables save
# sudo service iptables restart