Hi all!

I have made Gateway of my DNS by using the following iptables rules:
   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
   echo 1 > /proc/sys/net/ipv4/ip_forward
   iptables-save

My gateway is working fine but the only problem is that i have to run
echo 1 > /proc/sys/net/ipv4/ip_forward
everyday after booting my server in order to make my gateway up.My clients
can't ping any site untill i give this command. i have made service iptables
to start at boot time.
Could anyone tell me where i am doing wrong.

--
Vivek Chalotra
GRID Project Associate,
High Energy Physics Group,
Department of Physics & Electronics,
University of Jammu,
Jammu 180006,
INDIA.

Reply via email to