I have cisco phones that rely on tftp so this is how I went about it...
Code:
nano /etc/inetd.conf
find this line
Code:
# Tftp service is provided primarily for booting. Most sites
# run this only on machines acting as "boot servers."
# tftp dgram udp wait root /usr/sbin/in.tftpd in.tftpd -s /tftpboot -r blksize
remove the comment.. then make the dir
then...
Code:
nano /etc/dhcpd.conf
this is just an example... use your own subnets dns etc and your own tftp which would probably be eth1 in your machine
Code:
ddns-update-style ad-hoc;
subnet 10.77.76.0 netmask 255.255.255.0
{
range 10.0.0.1 10.0.0.254;
default-lease-time 720;
max-lease-time 86400;
option subnet-mask 255.255.255.0;
option broadcast-address 10.0.0.255;
option routers 10.0.0.1;
option domain-name-servers 10.0.0.1, 10.0.0.2;
option tftp-server-name "10.0.0.1";
}
next...
Code:
nano /etc/rc.d/rc.firewall
just basic ipfwd, not very secure...
Code:
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables --flush
iptables --table nat --flush
iptables --delete-chain
iptables --table nat --delete-chain
iptables --table nat --append POSTROUTING --out-interface eth0 -j MASQUERADE
iptables --append FORWARD --in-interface eth1 -j ACCEPT
then make it exec and bootable
Code:
chmod 744 /etc/rc.d/rc.firewall
Code:
chmod +x /etc/rc.d/rc.firewall
next...
Code:
nano /etc/rc.d/rc.local
just add a line that says
replacing X with the eth adapt. u will be using
now, u should be able to run a few simple commands to get everything up and running
Code:
/etc/rc.d/rc.inetd start
/etc/rc.d/rc.firewall
dhcpd
now i would try rebooting that router with it pulling from the linux based router u just created, it should pull the config file from the tftp and there ya go....
u can refer to the man pages for tftp.... i just know this works for me for every tftp need I run into... you will probably want to verify if the filename is mac specific. I know a lot are, and require the mac addy for it to pull the right file... the device makes request for router_config_005896ad5fxx.cfg if the file is not found, nothing happens.
have a great day... hope this helped