How to use JUMP ? #31
Replies: 7 comments
-
Create
Then jump to it in
Above example will jump to rtp for both IPv4 and IPv6 traffic. Use this if you want to jump for IPv4 only:
|
Beta Was this translation helpful? Give feedback.
-
Thank you for explanation. I am discovering all possibilities. |
Beta Was this translation helpful? Give feedback.
-
I am trying rule like this
That produce error
|
Beta Was this translation helpful? Give feedback.
-
Most probably your
|
Beta Was this translation helpful? Give feedback.
-
Yes , right on, thank you why this line is important ?
Is firewall make decision ? Custom chain
|
Beta Was this translation helpful? Give feedback.
-
why this line is important ?
#type filter hook forward priority filter + 10; policy accept;
Only "top level" chains in nftables can and must use `hook`, not
sub-chains that you jump to. Foomuuri defines it and then jumps to its
own and your custom sub-chains. Simply put, just leave it out and it
works.
For details see for example:
https://thermalcircle.de/doku.php?id=blog:linux:nftables_packet_flow_netfilter_hooks_detail
|
Beta Was this translation helpful? Give feedback.
-
Thank you for explanation. |
Beta Was this translation helpful? Give feedback.
-
Example
rule like this
Beta Was this translation helpful? Give feedback.
All reactions