Results 1 to 4 of 4
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
...
- 12-13-2011 #1Just Joined!
- Join Date
- Jan 2011
- Posts
- 87
setting up iptables with CentOS
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:
in /etc/rc.d to do it automatically?Code:while true do echo 1 > /proc/sys/net/ipv4/ip_forward iptables –A POSTROUTING –t nat –o eth0 –j MASQUERADE done
- 12-13-2011 #2Just Joined!
- Join Date
- Dec 2011
- Posts
- 1
hi~
Do you means your script will be work ,when your Centos start?
in /etc/rc.local . you can try it
- 12-14-2011 #3Banned
- Join Date
- Nov 2011
- Location
- India
- Posts
- 29
- 12-20-2011 #4


Reply With Quote
