[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

iptables usage

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,, and (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?

Reply to: