safe default chain policies
Hello list,
I've had quite a bit of trouble setting up nat rules on my iptables home network firewall. Machines behind my firewall box couldn't host games, use bittorrent efficiently, that type of thing. Not that nothing works. I've been surfing, playing games and ftp'ing happily for a while. My problems were nat-specific.
I have known for a while my problems were related to my default chain policies. I never wanted to compromise security, so I set all of input and nat chains to DROP. I left the mangle to accept (never took time to understand this table). Is this excessive security? I find such a firewall quite hard to maintain because you need to know exactly how chains are traversed.
I am thinking to set all chains to ACCEPT except the INPUT chain. Is this minimalist security? This is one chain I think I should not be open.
Where to draw the line for a home network?
Thanks for sharing your thoughts!
_________________________________________________________________
MSN Messenger : discutez en direct avec vos amis ! http://messenger.fr.msn.ca/
Quoted 4 lines · Philippe Anctil
Hello list,
I've had quite a bit of trouble setting up nat rules on my iptables home network firewall.
I'm not surprised, because...
Quoted 1 line
I set all of input and nat chains to DROP.
Do NOT set the nat table policies to DROP. The nat tables are for address
translation, not for filtering (DROP is a filtering operation).
Quoted 1 line
I am thinking to set all chains to ACCEPT except the INPUT chain.
No. Set default DROP on INPUT, FORWARD and OUTPUT, then add rules to allow
the traffic you want.
Set default ACCEPT on all nat and mangle tables, and *really* think hard if you ever find yourself wondering about putting a rule in one of those tables with a DROP target.
Regards,
Antony.
Signature · 6 lines
The words "e pluribus unum" on the Great Seal of the United States are from a
poem by Virgil entitled "Moretum", which is about cheese and garlic salad
dressing.
Please reply to the list;
please don't CC me.