ozgur_guler_344
Feb 01, 2010Nimbostratus
dscp marking
Hello;
I want to mark dscp bit of the traffic originating from virtual server? How can i do that? Wtih an irule or on GUI?
Realize this is quite dated but I just had to do this for a customer. To set the value to say CS2 you would perform the following:
iptables -t mangle -A OUTPUT -j DSCP --set-dscp-class CS2
NOTE: This change will not persist through reboots. you will need to run iptables-save or use a iptables config such as this
*mangle :PREROUTING ACCEPT [0:0] :OUTPUT ACCEPT [0:0]
Add CS2 Marker
-A OUTPUT -j DSCP --set-dscp-class CS2 COMMIT *nat :PREROUTING ACCEPT [0:0] :POSTROUTING ACCEPT [0:0] :OUTPUT ACCEPT [0:0] COMMIT