All of lore.kernel.org
 help / color / mirror / Atom feed
* ICMP NAT
@ 2005-06-13 15:22 pablo.1.munoz
  2005-06-13 16:36 ` Glaucius Djalma Pereira Junior
  0 siblings, 1 reply; 5+ messages in thread
From: pablo.1.munoz @ 2005-06-13 15:22 UTC (permalink / raw)
  To: netfilter

 
Hi all, Can someone tell me how can I implement a SNAT POSTROUTING and a
DNAT PREROUTING of an ICMP packet?

Regards, Pablo.


^ permalink raw reply	[flat|nested] 5+ messages in thread
* ICMP nat
@ 2006-02-02 11:57 Victor A. Bykov
  2006-02-02 12:35 ` Cedric Blancher
  0 siblings, 1 reply; 5+ messages in thread
From: Victor A. Bykov @ 2006-02-02 11:57 UTC (permalink / raw)
  To: netfilter

“АВТОРАДИО”
КОМУ:  netfilter@lists.netfilter.org
ОТ: Системный администратор Быков Виктор Андреевич
ТЕМА: ICMP nat

=================
 Cedric Blancher blancher at cartel-securite.fr wrote on Tue Jan 3 17:11:01 CET 2006
<AFAIK>
There's two class of ICMP packets:
 . ICMP requests/replies, such as ping
 . ICMP errors

ICMP requests/replies works on a NEW/ESTABLISHED scheme, meaning the
request have NEW state and reply ESTABLISHED state.

ICMP errors, if valid (i.e. corresponding to an existing contrack
entry), have RELATED state.

Now for NAT table... NAT table only "sees" packets with state NEW. If
matched and accepted by filtering rules, an according conntrack entry is
created, and following packets are handled transparently by conntrack,
meaning both ESTABLISHED and RELATED packets.
</AFAIK>

Now, to partially answer your question, and maybe to refine your
observations:
        . you won't see ICMP errors in NAT table, which means you won't
          see ICMP packets generated by a tracerouting application
        . you should see ICMP echo requests, but won't see ICMP echo
         replies
================================
My question is: if I, for example, generate icmp packet with icmp-type 11
by packet generator, this packet is not in ESTABLISHED state, and not in conntrack list, and probably should go via NAT table? in 
practical test, however, that kind of packet not go via NAT!



Дата/Время: 02.02.2006 14:57:00
Телефон: + 7 (495) 258-33-44
E-mail: vr@aradio.ru
Веб сайт: http://www.avtoradio.ru


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

end of thread, other threads:[~2006-02-02 14:54 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-06-13 15:22 ICMP NAT pablo.1.munoz
2005-06-13 16:36 ` Glaucius Djalma Pereira Junior
  -- strict thread matches above, loose matches on Subject: below --
2006-02-02 11:57 ICMP nat Victor A. Bykov
2006-02-02 12:35 ` Cedric Blancher
2006-02-02 14:54   ` Victor A. Bykov

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.