A Simple PAT / Port Address Translation for outgoing traffic:
1. Remove any existing user-defined chains in the NAT table, reset the default policies on all chains, and flush all rules:
iptables –t nat -F
2. Configure NAT using Iptables (In this example eth0 is the public outgoing interface)
iptables –t nat –A POSTROUTING –o eth0 –j MASQUERADE
This comment has been removed by the author.
ReplyDeleteFor point 2. The command '#lokkit' can be used too. it provides a command Line Base Menu. which can be used to set NAT and routing from one network card to the other if need
ReplyDelete