netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: filter IP protocol with ip6tables
@ 2012-05-30 16:59 Hans Schillstrom
  2012-05-31  9:19 ` Bernd Kohler
  0 siblings, 1 reply; 6+ messages in thread
From: Hans Schillstrom @ 2012-05-30 16:59 UTC (permalink / raw)
  To: kohler; +Cc: netfilter-devel


Hello
>
>Hi,
>
>I tried to filter IP packets with ip6tables (next hdr field)
>
>But as you can see in output [1] the kernel maps "0" to all and not to
>ip as listed in /etc/protocols.
>

Have you tried the ip6tables  -m ipv6header --header ... ?

Btw read you uploaded file,

Next header   0 is Hop-by-hop option header 
Next header 41 is IPv6 in IPv6


Regards 
Hans Schillstrom


^ permalink raw reply	[flat|nested] 6+ messages in thread
* filter IP protocol with ip6tables
@ 2012-05-30 15:33 Bernd Kohler
  2012-05-30 16:42 ` Jan Engelhardt
  0 siblings, 1 reply; 6+ messages in thread
From: Bernd Kohler @ 2012-05-30 15:33 UTC (permalink / raw)
  To: netfilter-devel

[-- Attachment #1: Type: text/plain, Size: 920 bytes --]

Hi,

I tried to filter IP packets with ip6tables (next hdr field)

But as you can see in output [1] the kernel maps "0" to all and not to
ip as listed in /etc/protocols.

With default policy DROP this might not that big problem in dual stack
mode, but in case I want to check if IPv6 with IPv4 encapsulated
arrives, I have no chance to LOG

Am I running in the wrong direction (an the kernel drops these packets
silently or forwards them to ipv4 netfilter hooks) or is this an
implementation error that might need to be fixed?

Thanks for your great iptables/ip6tables support

best

Bernd

[1]
http://pastebin.com/jC4rwpG4
-- 
UMIC - RWTH Aachen
http://www.umic.rwth-aachen.de

Mies-van-der-Rohe Str. 15
52074 Aachen

Tel.:   +49 241 80 20791
Fax:    +49 241 80 22731
E-Mail: kohler@umic.rwth-aachen.de

RIP Dennis Ritchie (*09.09.1941 †09.10.2011)
Thx 4 UNIX and all the ><(((('>


[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 4513 bytes --]

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

end of thread, other threads:[~2012-05-31 10:17 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-30 16:59 filter IP protocol with ip6tables Hans Schillstrom
2012-05-31  9:19 ` Bernd Kohler
2012-05-31 10:05   ` Bernd Kohler
2012-05-31 10:17     ` Jan Engelhardt
  -- strict thread matches above, loose matches on Subject: below --
2012-05-30 15:33 Bernd Kohler
2012-05-30 16:42 ` Jan Engelhardt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).