ICMP question

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

 



Anyone please feel free to correct me if I'm wrong, but I think your
original rules would work fine if your "ESTABLISHED" rule was changed
to "ESTABLISHED,RELATED".  Perhaps the "NEW,ESTABLISHED" rule should
also say "NEW,ESTABLISHED,RELATED" as well.

If your internal machine issues an "echo request", the "echo reply"
will be a "RELATED" packet.  (I'd use icmp type numbers, but I don't
know them off the top of my head.)

Darrell Dieringer - Madison, WI

> -----Original Message-----
> From: netfilter-admin@lists.netfilter.org
> [mailto:netfilter-admin@lists.netfilter.org]On Behalf Of
> Luis Fernando
> Barrera
> Sent: Thursday, November 14, 2002 12:28 PM
> To: netfilter@lists.netfilter.org
> Subject: ICMP question
>
>
> Hi all,
>
> I have a RedHat 7.3 box which I use as a dual homed firewall.
>
> One of the rules is that I allow all the ICMP traffic from one
> PC in the protected LAN to the Internet.
>
> Here it is one set of rules
>
> iptables -A FORWARD -p ICMP -s 192.168.1.37 -m state --state
> NEW,ESTABLISHED -j ACCEPT
> iptables -A FORWARD -p ICMP -d 192.168.1.37 -m state
> --state ESTABLISHED -j
> ACCEPT
>
> I've been experiencing the problem that with this set of
> rules, suddenly,
> the PC in the LAN cannot "ping" any hosts in the Internet.
> To solve the
> problem
> I delete all my user's chains and flush them, and I worked again.
> I already asked if there is a buffer or counter that gets
> filled, and
> someone
> told me to watch the number of connections being tracked. I
> did that and it
> seems
> that the number of connections being tracked is very low
> (about 160).
>
> Since the problem was a "mistery", I changed the rules to this:
>
> iptables -A FORWARD -p ICMP -s 192.168.1.37 -j ACCEPT
> iptables -A FORWARD -p ICMP -d 192.168.1.37 -j ACCEPT
>
> These are the same rules, except that don't track the state of the
> connections...
>
> Could someone tell me what is the risk asociated to NOT to track the
> connections?
>
> One more question... Is it true that when you specify the
> ICMP protocol,
> iptables only
> applies the rule to the type 0?
>
> thanks in advance
>
> Luis Fernando Barrera
> luba@assist.com.gt
>
>
>
>




[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