-
Notifications
You must be signed in to change notification settings - Fork 335
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
T4502: firewall: Add software fastpath with nftables flowtable
The following commands will enable nftables flowtable offload on interfaces `eth0` `eth1`: ``` set firewall fastpath interface eth0 set firewall fastpath interface eth1 commit ``` Generated nftables rules: ``` flowtable VYOS_FASTPATH { hook ingress priority filter devices = { eth0, eth1, eth2, pppoe0 } } chain VYOS_FW_FORWARD { type filter hook forward priority filter; policy accept; ct state { established, related } meta l4proto { tcp, udp } flow add @VYOS_FASTPATH } ``` To verify a connection is offloaded, run ``` cat /proc/net/nf_conntrack|grep OFFLOAD ipv6 10 tcp 6 src=* dst=* sport=32826 dport=5201 src=* dst=* sport=5201 dport=32826 [OFFLOAD] mark=0 zone=0 use=3 ```
- Loading branch information
Showing
3 changed files
with
34 additions
and
2 deletions.
There are no files selected for viewing
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
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
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