New answers tagged


Instead of using iptables by itself, I recommend that you use a firewall management package like Shorewall to configure the firewall. There you can easily configure different zones in your network, and configure access between them. However, if you want to use iptables only, you add this line after your route command: iptables -A FORWARD -s


Linux uses the strong end system model. IP addresses do not act in a way as if they were different machines. Instead a machine acts like it owns all its IP addresses. Since and are the same machine, no forwarding or routing is needed. If you reach one, you've reached the other.

Top 50 recent answers are included