Expedited Forwarding and QOS

Discussion in 'Tomato Firmware' started by francesco_r, Aug 5, 2007.

  1. francesco_r

    francesco_r Network Guru Member

    I have many voip devices and i want to classify all traffic marked with dscp 0x2e (46) to the highest qos class, without add custom rules for each phones. Tomato add a chain QOSO for outbound qos traffic, so i tried to do this:
    iptables -t mangle -A QOSO -m dscp --dscp 0x2e -j CONNMARK --set-return 0x1/0xff

    but the dscp match is not present in tomato so i went with u32 (i dont't know if it's correct):
    iptables -t mangle -A QOSO -m u32 --u32 "0&0x00FF0000=0xb8" -j CONNMARK --set-return 0x1/0xff

    but iptables return
    iptables: No chain/target/match by that name

    Any ideas?
  2. GeeTek

    GeeTek Guest

    Maybe you are trying too hard. Create a QOS category that has 100% bandwidth in all 3 fields. Then use L7 to assign that traffic to the 100% category.
  3. voxabox

    voxabox LI Guru Member

    in firewall script:
    iptables -t mangle -A POSTROUTING -p udp --sport 5004:5007 -j DSCP --set-dscp-class EF
    iptables -t mangle -A POSTROUTING -p udp --sport 16004:16007 -j DSCP --set-dscp-class EF
    iptables -t mangle -A POSTROUTING -p udp --sport 5060:5079 -j DSCP --set-dscp 26

    reload the firewall script by QOS, Save, then in console:
    iptables -t mangle -L POSTROUTING
    target prot opt source destination
    DSCP udp -- anywhere anywhere udp spts:5004:5007 DSCP set 0x2e
    DSCP udp -- anywhere anywhere udp spts:16004:16007 DSCP set 0x2e
    DSCP udp -- anywhere anywhere udp spts:5060:5079 DSCP set 0x1a
    0 -- anywhere anywhere
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice