Linux Netfilter discussions
 help / color / mirror / Atom feed
* icmp packets
@ 2011-05-23  8:23 cc
  0 siblings, 0 replies; 5+ messages in thread
From: cc @ 2011-05-23  8:23 UTC (permalink / raw)
  To: netfilter

Hi,

I have a 'weird' problem that's most likely attributed to a
bad netfilter rules policy.  

I am trying to ping from an internal machine to an external
site.  

$IPTB -A INPUT -i $INET_IF -p icmp -s $EXT_SITE -j ACCEPT
$IPTB -A OUTPUT -o $INET_IF -p icmp -d $EXT_SITE -j ACCEPT

$IPTB -A FORWARD -i $DMZ_IF -o $INET_IF -p icmp -d $EXT_SITE -j ACCEPT
$IPTB -t nat -A POSTROUTING -o $INET_IF -p icmp -d $EXT_SITE \
              -j SNAT --to-source $INET_IP

Now when I ping from an internal IP, I do not get a response
until the nth icmp_seq, where n > 100 (so far my testing). 
Is there something wrong with the above rules?

Apparently I'm not getting a echo reply until n > 100?  
I feel my understanding of ICMP packets requires some
further expanding.

Thanks

Ed

^ permalink raw reply	[flat|nested] 5+ messages in thread
* ICMP packets
@ 2005-09-20 14:10 P theodorou
  2005-09-20 14:29 ` Marc Haber
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: P theodorou @ 2005-09-20 14:10 UTC (permalink / raw)
  To: netfilter

Im new into iptables world

now regarding icmp packets . Is it
applicable to drop inbound echo requests (so otherts cannot see me )

but i will be able to send  icmo echo request to WEB and receive
replies too .

Sorry if it looks very basic but im confused

Thanks




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-05-23  8:23 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-23  8:23 icmp packets cc
  -- strict thread matches above, loose matches on Subject: below --
2005-09-20 14:10 ICMP packets P theodorou
2005-09-20 14:29 ` Marc Haber
2005-09-20 14:30 ` Gabriel
2005-09-20 15:18 ` /dev/rob0

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox