I have configured Centos 6.2 as Gateway machine.its having two interfaces
eth0 with ip address that provided by isp 116.x.x.x(Static) and eth1 with ip address 192.168.0.1(no,dns,no dhcp configured yet just ip-forwarding is enabled in router box).
Client machine is configured as:
ip address 192.168.0.5 and gateway 192.168.0.1
After i reboot centos,iptables rules are not all gone.
STEPS FOLLOWED
Router machine:two interfaces eth0:116.X.X.X(static ip) eth1:192.168.0.1
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
iptables -A FORWARD -i eth0 -j ACCEPT
Save the iptable rules in /etc/sysconfig/iptables
Selinix is disabled.
changes done on /etc/sysctl.conf
sysctl -w net.ipv4.ip_forward=1
But still when system reboot everything gone.
sysctl net.ipv4.ip_forward
2. What does your routing table look likeroute -n
3. You have under you steps followed eth1 is set to 192.168.0.3, is that a typo?