Simple NAT w/o firewall.

c0rrupt

Weaksauce
Joined
Jun 25, 2004
Messages
102
Ok, all I want iptables to do is masquerade. Is there anyway I can set it to stop blocking connections and just allow anything? Here is my current script

Code:
iptables=/usr/sbin/iptables

iptables --flush -t nat

iptables --table nat --append POSTROUTING --out-interface eth1 -j MASQUERADE
iptables --append FORWARD --in-interface eth2 -j ACCEPT

echo 1 > /proc/sys/net/ipv4/ip_forward
 
Back
Top