Click to See Complete Forum and Search --> : My iptables


mf-2HD
12-20-2003, 03:06 PM
Hi guys

I want to set up a decent firewall using iptables.

I am running Slack9.1

So far I've got this...

Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED

Chain FORWARD (policy DROP)
target prot opt source destination

Chain OUTPUT (policy DROP)
target prot opt source destination
ACCEPT all -- anywhere anywhere state NEW,RELATED,ESTABLISHED


What other lines do I need to add? And more importantly, is this iptable any good???????

Any advice will be much appreciated.

Ps.. This is my first attempt at configuring iptables, so please be nice....
:D :D :D :D

Sepero
12-20-2003, 04:05 PM
Easy Firewall Generator for IPTables
http://easyfwgen.morizot.net/gen/

Bookmark this link... better yet, tattoo it on your arm.

mf-2HD
12-20-2003, 06:51 PM
Thanks Sepero for info.

Do you know the command to save the iptables?

I know in RH, its

intables-save > /etc/sysconfig/iptables

This will start the firewall everytime I reboot, but what's the equivalent when using Slack?

Thanks;) ;) ;)

Sepero
12-21-2003, 03:47 PM
I just put it in my system startup scripts. :)