diff options
Diffstat (limited to 'extensions/libxt_dscp.txlate')
-rw-r--r-- | extensions/libxt_dscp.txlate | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/extensions/libxt_dscp.txlate b/extensions/libxt_dscp.txlate new file mode 100644 index 00000000..2cccc3b4 --- /dev/null +++ b/extensions/libxt_dscp.txlate @@ -0,0 +1,5 @@ +iptables-translate -t filter -A INPUT -m dscp --dscp 0x32 -j ACCEPT +nft add rule ip filter INPUT ip dscp 0x32 counter accept + +ip6tables-translate -t filter -A INPUT -m dscp ! --dscp 0x32 -j ACCEPT +nft add rule ip6 filter INPUT ip6 dscp != 0x32 counter accept |