| 1 |
#!/bin/bash |
| 2 |
|
| 3 |
set -e |
| 4 |
$NFT add table x |
| 5 |
$NFT add chain x y |
| 6 |
$NFT add flowtable x f { hook ingress priority 0\; devices = { lo }\;} |
| 7 |
$NFT add rule x y ip protocol tcp flow add @f |
| 8 |
$NFT add rule x y ip protocol udp flow add @f |
| 9 |
$NFT flush chain x y |
| 10 |
$NFT delete flowtable x f |