* nft icmp type all?
@ 2020-01-24 21:16 Robert Sander
2020-01-24 21:29 ` kfm
0 siblings, 1 reply; 6+ messages in thread
From: Robert Sander @ 2020-01-24 21:16 UTC (permalink / raw)
To: netfilter
[-- Attachment #1.1: Type: text/plain, Size: 630 bytes --]
Hi,
how do I specify a rule to match all ICMP packages?
nft add rule ip filter input icmp accept
does not work.
nft add rule ip filter input icmp type all accept
also does not work. any instead of all also no success.
Is it really necessary to have all possible ICMP types in a set with a
rule like this?
Regards
--
Robert Sander
Heinlein Support GmbH
Schwedter Str. 8/9b, 10119 Berlin
http://www.heinlein-support.de
Tel: 030 / 405051-43
Fax: 030 / 405051-19
Zwangsangaben lt. §35a GmbHG:
HRB 93818 B / Amtsgericht Berlin-Charlottenburg,
Geschäftsführer: Peer Heinlein -- Sitz: Berlin
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: nft icmp type all?
2020-01-24 21:16 nft icmp type all? Robert Sander
@ 2020-01-24 21:29 ` kfm
2020-01-26 2:24 ` Daniel Lakeland
2020-01-26 17:30 ` Robert Sander
0 siblings, 2 replies; 6+ messages in thread
From: kfm @ 2020-01-24 21:29 UTC (permalink / raw)
To: netfilter
On 24/01/2020 21:16, Robert Sander wrote:
> Hi,
>
> how do I specify a rule to match all ICMP packages?
>
> nft add rule ip filter input icmp accept
>
> does not work.
nft add rule ip filter input meta l4proto icmp accept
--
Kerin Millar
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: nft icmp type all?
2020-01-24 21:29 ` kfm
@ 2020-01-26 2:24 ` Daniel Lakeland
2020-01-26 17:35 ` Robert Sander
2020-01-26 17:30 ` Robert Sander
1 sibling, 1 reply; 6+ messages in thread
From: Daniel Lakeland @ 2020-01-26 2:24 UTC (permalink / raw)
To: kfm, netfilter
On 1/24/20 1:29 PM, kfm@plushkava.net wrote:
> On 24/01/2020 21:16, Robert Sander wrote:
>> Hi,
>>
>> how do I specify a rule to match all ICMP packages?
>>
>> nft add rule ip filter input icmp accept
>>
>> does not work.
>
> nft add rule ip filter input meta l4proto icmp accept
>
I think this also works:
nft add rule ip filter input ip protocol icmp accept
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: nft icmp type all?
2020-01-24 21:29 ` kfm
2020-01-26 2:24 ` Daniel Lakeland
@ 2020-01-26 17:30 ` Robert Sander
1 sibling, 0 replies; 6+ messages in thread
From: Robert Sander @ 2020-01-26 17:30 UTC (permalink / raw)
To: kfm, netfilter
[-- Attachment #1.1: Type: text/plain, Size: 759 bytes --]
Am 24.01.20 um 22:29 schrieb kfm@plushkava.net:
> On 24/01/2020 21:16, Robert Sander wrote:
>> Hi,
>>
>> how do I specify a rule to match all ICMP packages?
>>
>> nft add rule ip filter input icmp accept
>>
>> does not work.
>
> nft add rule ip filter input meta l4proto icmp accept
>
So it's basically like
iptables -p icmp -m icmp --icmp-type xyz
^ ^
| +- icmp type xyz
+- meta l4proto icmp
Thanks.
--
Robert Sander
Heinlein Support GmbH
Linux: Akademie - Support - Hosting
http://www.heinlein-support.de
Tel: 030-405051-43
Fax: 030-405051-19
Zwangsangaben lt. §35a GmbHG:
HRB 93818 B / Amtsgericht Berlin-Charlottenburg,
Geschäftsführer: Peer Heinlein -- Sitz: Berlin
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2020-01-26 18:02 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-01-24 21:16 nft icmp type all? Robert Sander
2020-01-24 21:29 ` kfm
2020-01-26 2:24 ` Daniel Lakeland
2020-01-26 17:35 ` Robert Sander
2020-01-26 18:02 ` Florian Westphal
2020-01-26 17:30 ` Robert Sander
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox