* 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* 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
* Re: filter IP protocol with ip6tables
2012-05-30 16:59 Hans Schillstrom
@ 2012-05-31 9:19 ` Bernd Kohler
2012-05-31 10:05 ` Bernd Kohler
0 siblings, 1 reply; 6+ messages in thread
From: Bernd Kohler @ 2012-05-31 9:19 UTC (permalink / raw)
To: Hans Schillstrom; +Cc: netfilter-devel
[-- Attachment #1: Type: text/plain, Size: 970 bytes --]
Hi.
On 05/30/2012 06:59 PM, Hans Schillstrom wrote:
> ..
> Btw read you uploaded file,
>
> Next header 0 is Hop-by-hop option header
> Next header 41 is IPv6 in IPv6
> ...
my fault :(
Tried "-p ip" first and ip6tables -nvL listed "all", so I tried "0" as
listed in /etc/protocols (though I should have know better, should have
trust my knowing).
In case I use "-p 4" my icmpv6 etc. works just fine.
Thx for the helpful hint but sorry for this "stupid" questions.
Regards
Bernd Kohler
p.s.: "0" ist listed in /etc/protocosl on Debian and Ubuntu but not on
webpage [1]
[1]
https://www.iana.org/assignments/protocol-numbers/protocol-numbers.txt
--
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* Re: filter IP protocol with ip6tables
2012-05-31 9:19 ` Bernd Kohler
@ 2012-05-31 10:05 ` Bernd Kohler
2012-05-31 10:17 ` Jan Engelhardt
0 siblings, 1 reply; 6+ messages in thread
From: Bernd Kohler @ 2012-05-31 10:05 UTC (permalink / raw)
To: netfilter-devel
[-- Attachment #1: Type: text/plain, Size: 651 bytes --]
Hi,
just one more question.
On 05/31/2012 11:19 AM, Bernd Kohler wrote:
>>...
>> Next header 0 is Hop-by-hop option header
>> Next header 41 is IPv6 in IPv6
> ...
as Hans Schillstrom and Jan Engelhardt referred right to "0" being
proto-# for Hop-by-Hop not classic IP(v4) , shouldn't netfilter indicate
"0" as hop-by-hop and not "all"?
best
Bernd
--
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* Re: filter IP protocol with ip6tables
2012-05-31 10:05 ` Bernd Kohler
@ 2012-05-31 10:17 ` Jan Engelhardt
0 siblings, 0 replies; 6+ messages in thread
From: Jan Engelhardt @ 2012-05-31 10:17 UTC (permalink / raw)
To: Bernd Kohler; +Cc: netfilter-devel
On Thursday 2012-05-31 12:05, Bernd Kohler wrote:
>just one more question.
>
>On 05/31/2012 11:19 AM, Bernd Kohler wrote:
>>>...
>>> Next header 0 is Hop-by-hop option header
>>> Next header 41 is IPv6 in IPv6
>> ...
>
>as Hans Schillstrom and Jan Engelhardt referred right to "0" being
>proto-# for Hop-by-Hop not classic IP(v4) , shouldn't netfilter indicate
>"0" as hop-by-hop and not "all"?
iptables only uses what your system ships. If it ships nonsensical
and/or outdated files, you should complain to Debian.
^ 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 15:33 filter IP protocol with ip6tables Bernd Kohler
2012-05-30 16:42 ` Jan Engelhardt
-- strict thread matches above, loose matches on Subject: below --
2012-05-30 16:59 Hans Schillstrom
2012-05-31 9:19 ` Bernd Kohler
2012-05-31 10:05 ` Bernd Kohler
2012-05-31 10:17 ` 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).