summaryrefslogtreecommitdiffstats
path: root/extensions/libxt_DSCP.txlate
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/libxt_DSCP.txlate')
-rw-r--r--extensions/libxt_DSCP.txlate5
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..442742ef
--- /dev/null
+++ b/extensions/libxt_DSCP.txlate
@@ -0,0 +1,5 @@
+iptables-translate -A OUTPUT -j DSCP --set-dscp 1
+nft add rule ip filter OUTPUT counter ip dscp set 0x01
+
+ip6tables-translate -A OUTPUT -j DSCP --set-dscp 6
+nft add rule ip6 filter OUTPUT counter ip6 dscp set 0x06