Re: iptables related

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

 



On December 8, 2003 02:44 pm, Jeffrin wrote:
> hello ,
>
> iptables -P INPUT DROP
> iptables -A INPUT -p tcp --sport 80 -j ACCEPT
>
> Iam not able to ping. why ?

	because ping (icmp) doesn't use port 80.
	because you aren't allowing RELATED,ESTABLISHED connections back in.
	iptables -I INPUT 1 -m state --state ESTABLISHED,RELATED -j ACCEPT
	(the -I --- 1 because in my opinion you should have this rule at the top.)


[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