Firewall configuration for Fedora 16

Lennart Sorensen lsorense-1wCw9BSqJbv44Nm34jS7GywD8/FfD2ys at public.gmane.org
Fri Jun 1 21:46:35 UTC 2012


On Fri, Jun 01, 2012 at 04:21:23PM -0400, Andrei Dimitrief-Jianu wrote:
> I am using the following script to configure iptables on a laptop running
> Fedora 16.
> 
> 
> #!/bin/bash
> IPTABLES=/sbin/iptables
> MODPROBE=/sbin/modprobe
> 
> ### flush existing rules and set chain policy to DROP
> echo "[+] Flushing existing iptables rules..."
> $IPTABLES -F
> $IPTABLES -F -t nat
> $IPTABLES -X
> $IPTABLES -P INPUT DROP
> $IPTABLES -P OUTPUT DROP
> $IPTABLES -P FORWARD DROP

Personally I highly recommend shorewall as a way cleaner way to manage
iptables than doing it manually.  It just makes things so much simpler
to deal with and easier to get an overview of.

-- 
Len Sorensen
--
The Toronto Linux Users Group.      Meetings: http://gtalug.org/
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists





More information about the Legacy mailing list