vi /etc/nftables.conf
//
table inet my_mangle_table {
chain my_output_chain {
type filter hook output priority mangle \; policy accept;
udp dport { 3074, 3478, 4379-4380, 6112-6119, 20500, 20510, 27000-27031, 27036, 28960 } dscp set 46
}
}
//
i can save, but im unable to apply it. i need help
No need for a custom table/rule.
You can create the rule using uci/luci.
config rule
option name 'My_DSCP_rule'
list proto 'udp'
option dest '*'
option dest_port '3074 3478 4379-4380' # List all ports
option target 'DSCP'
option set_dscp 'EF'
1 Like