setting up iptables with CentOS

R

red

Guest
I want to write a quick script that will allow my server to route automatically (I'm testing this on a virtual machine). Would I put this:
Code:
while true
do
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables –A POSTROUTING –t nat –o eth0 –j MASQUERADE
done
in /etc/rc.d to do it automatically?
 


Members online


Top