>Subject: iptables usage >From: Michael Pobega <[EMAIL PROTECTED]> >Date: Tue, 06 Feb 2007 22:01:23 -0500 >To: debian-user@lists.debian.org > >I've been trying to get iptables working so that I can finally have a >worthwhile client-side non-graphical firewall. So to test it out, I >typed these two commands: > >/# iptables -A INPUT -p tcp --dport 80 -j ACCEPT ># iptables -A INPUT -j REJECT > >/And for some reason I completely lost my connection to port 80, even >though that command says "Allow all TCP connections to port 80, but >reject all others". > >Does anyone have any idea why this wouldn't be working? I've also tried >specifying -d (Destination) as localhost, 127.0.0.1, and 192.168.1.5 (My >current local IP), but none of them work like I'd wish. > >Any clue what I'm doing wrong with iptables that is basically making it >ignore all of my initial specificiations?
Try this: ### flush your INPUT table root# /sbin/iptables -F INPUT ### set the INPUT policy root# /sbin/iptables -P INPUT DROP ### accept tcp on port 80 root# /sbin/iptables -A INPUT -p tcp --dport 80 -j ACCEPT -- Mark -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]