Displaying 1 result from an estimated 1 matches for "ip_foward".
Did you mean:
ip_forward
2011 Jun 26
2
iptables port forwarding
...181
-----------------------------------------
In Fedora, I successfully to config the firewall using system-config-firewall and iptables command:
1. Run system-config-firewall
1.1 open local port 8080
1.2 add a forward rule: local 8080 to remote a.b.c.d:8181, tcp
2. echo 1 > /proc/sys/net/ipv4/ip_foward
3. add a iptables rule: /sbin/iptables -t nat -A POSTROUTING -d a.b.c.d -p tcp --dport 8181 -j MASQUERADE
That's all.
Thanks !
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.centos.org/pipermail/centos/attachments/20110626/025d16ce/attachm...