Re: How to block all ports except port 21,22,80,8080 ???

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

 



On Tue, Feb 18, 2003 at 03:19:19PM +0300, Pablo Allietti wrote:
>  iptables -A INPUT -i lo -j ACCEPT
> 
> Another Question when i put this line in iptables -L say
> 
> Chain INPUT (policy DROP)
> target     prot opt source               destination
> ACCEPT     all  --  anywhere             anywhere
> 
> whit this i do open all ports for any connection of outside?????

No it won't. Try "iptables -vnL" instead, it will show you that the rule is
limited to traffic coming from the lo-interface.
 
Alex.

-- 
"Mr Data, when I said 'Fire at Will', I didn't mean for you to be so literal."
Instructions for use of this post: Insert tounge in cheek. Read as normal.

Attachment: pgp00339.pgp
Description: PGP signature


[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux