Problem setting DSCP value

Problem setting DSCP value

Post by Washington Rats » Sat, 21 May 2011 08:00:44



I would like to set the DSCP value of ALL traffic coming in on eth0
going from a source (10.175.1.6) to a destination (10.175.2.2) to a
certain value (14). To do this, I used the following command:

iptables -t mangle -A PREROUTING -i eth0 -s 10.175.1.6 -d 10.175.2.2 -
j DSCP --set-dscp 14

With Wireshark, I see that only TCP, H.245, and H.225.0 packets have a
DSCP value of 14. RTP, RTCP, and H.263 still have a DSCP value of 0.

How can I set the DSCP value of ALL packets to 14?

 
 
 

Problem setting DSCP value

Post by Srinivasa T » Sat, 21 May 2011 22:15:34



Quote:> I would like to set the DSCP value of ALL traffic coming in on eth0
> going from a source (10.175.1.6) to a destination (10.175.2.2) to a
> certain value (14). To do this, I used the following command:

> iptables -t mangle -A PREROUTING -i eth0 -s 10.175.1.6 -d 10.175.2.2 -
> j DSCP --set-dscp 14

> With Wireshark, I see that only TCP, H.245, and H.225.0 packets have a
> DSCP value of 14. RTP, RTCP, and H.263 still have a DSCP value of 0.

> How can I set the DSCP value of ALL packets to 14?

Did you try to put in POSTROUTING or FORWARD chains?

FYI: http://www.linuxhomenetworking.com/wiki/images/f/f0/Iptables.gif.page...
     http://jengelh.medozas.de/images/nf-packet-flow.png

Regards,
Seenu.

 
 
 

1. Diff Serv Code Pointer DSCP

Hey!

I need to know the DSCP (ToS) of an incoming TCP UDP packet!
Is it possible to read it from the socket by using getsockopt.
It is only possible to read it from a sending packet

Did someone have an idea how i can get the DSCP from a receiving packet

any ideas?

thanks for reading,
Thomas

--
_________________________________________
Dipl.Ing (FH)                            
Thomas Pfeiffenberger
Salzburg Research
Advanced Networking Center
Jakob-Haringer-Str. 5/III
A-5020 Salzburg/Austria
Tel. :++43.662.2288.444
Fax. :++43.662.2288.222

_________________________________________

2. tv

3. iptables : no more TOS but DSCP ?

4. GNU Standard C++ Library and the TenDRA C++ compiler?

5. per packet QoS (DSCP)

6. Domain-Server for PPP?

7. DSCP & Default Linux routing

8. startup script

9. Per-packet IP DSCP/TOS Marking

10. iptables DSCP & RTP

11. QoS using DSCP

12. ksh: finding the value of a value in a for loop

13. Echoing value of variable when value contains "$"