Skip to contentSkip to conversation

iptables problems

DISCUSSION [email protected] 1 participant 1 message Oct 18, 2002 netfilter

lore
Share & tools
lore
#0 lore raw

Using Linux Firewalls 2nd edition by Ziegler and iptables documentation on the
various web sites as a guide I developed a firewall for a small LAN. To
enable the use of private addresses on the LAN I incorporated SNAT in the script.

One of the recommendation I found was to flush all existing tables and set the various policies to DROP at the start of the script.

To make a long story short if I use the following command "iptables -t -nat --policy POSTROUTING DROP" in the script I cannot surf, if it's commented out I can surf. I have this line after I have enabled SNAT. Should I have it before the line?

All the examples I found show the enabling SNAT before the DROP line.

thanks
brock