Iptables: masquarading and routing

Posted by nixnotwin on Server Fault See other posts from Server Fault or by nixnotwin
Published on 2011-11-26T15:59:44Z Indexed on 2011/11/26 17:56 UTC
Read the original article Hit count: 209

Filed under:
|
|

I have a WAN router which is linked to isp over a /30 WAN subnet. But it also servers as a router to a /29 local public WAN subnet which is connected to few of my servers. The traffic from /29 gets routed to ISP via /30 subnet. For a wired reason I want to masqarade (NAT) the interface which has /30 ip. So the interface with /30 ip should appear as masquaraded for my 192.168.1.0/24 network and it also should act as a normal non-NAT router for my WAN public subnet /29. Can this be done with iptables on a Linux machine?

© Server Fault or respective owner

Related posts about iptables

Related posts about routing