Created
April 2, 2020 17:16
-
-
Save vfreex/89c13e781047855991a8ad59d9a7fd83 to your computer and use it in GitHub Desktop.
netfilter flow offload example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
table inet flowoffload { | |
flowtable f { | |
hook ingress priority 0 | |
devices = { eno1, eno2, ens1f0, ens1f1, virbr0, virbr-cube-kvm } | |
} | |
chain flowoffload { | |
type filter hook forward priority 0; policy accept; | |
ip protocol { tcp, udp } flow offload @f | |
ip6 nexthdr { tcp, udp } flow offload @f | |
counter | |
ct state established,related counter accept | |
ip protocol { tcp, udp } accept | |
ip6 nexthdr { tcp, udp } accept | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment