mangle table and DSCP
Hello
some help pls
If I do this
>sudo iptables -A POSTROUTING -t mangle -p udp --dport 4500 -j DSCP --set-dscp 0x2e
I get this
> sudo iptables -L -t mangle
Chain PREROUTING (policy ACCEPT)
target prot opt source destination
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Chain POSTROUTING (policy ACCEPT)
target prot opt source destination
DSCP udp -- anywhere anywhere udp dpt:4500 DSCP set 0x2e
But how can I do it with ufw, allready try adding the folling lines but it did not work.
>sudo nano /usr/share/
*mangle
:POSTROUTING ACCEPT [0:0]
-A POSTROUTING -p udp --sport 4500 -j DSCP --set-dscp 0x2e
-A POSTROUTING -p udp --dport 4500 -j DSCP --set-dscp 0x2e
COMMIT
>sudo ufw stop
>sudo ufw start
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- Gufw Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Davidiam for more information if necessary.