IPTables
Frank Kumro
frank at digital-ignorance.com
Thu Jan 29 17:55:01 EST 2004
I am having trouble with iptables and was wondering if anyone can see a
problem in my rules. I have a slackware linux box at my job and it has a
direct connection to the outside world with no protection what so ever.
What I wanted was to just allow http and ssh connections from the
outside world and leave all connections from the inside network alone.
My problem is that I cannot access the outside world when i enable these
rules. Also I cannot ssh into the machine (i dont remember if I started
the ssh daemon so this could be my fault), I can access my http server
from the outside though. My rules are below
iptables -F INPUT
iptables -A INPUT -i lo -j ACCEPT
iptables -A INPUT -m multiport -p tcp --dport www,ssh -j ACCEPT
iptables -A INPUT -j LOG -m limit
iptables -A INPUT -j REJECT
Also where are the logs going to be created from iptables?
Thanks,
-Frank
More information about the nflug
mailing list