Custom QoS script

Discussion in 'Tomato Firmware' started by sirsanka, Dec 17, 2006.

  1. sirsanka

    sirsanka LI Guru Member

    I just upgraded from Hyperwrt +tofu13 to tomato 1.01. I want to use my own QoS script and I placed it under the firewall script. When I telnet into the router, iptables doesn't report my L7 settings of the script. When I issue the command "iptables -t mangle -A POSTROUTING -m layer7 --l7proto edonkey -j MARK --set-mark 0x6", I get "iptables: No chain/target/match by that name". I didn't get that problem with Hyperwrt.
    Any ideas?

  2. m007

    m007 LI Guru Member

    I do realized about that this thread is very old, but I am adding my answer to make the search engine useful. I get same error when trying to use l7-filter and ipp2p. I have decided to take a look at tomato source tarball. It shows that it was compiled with module option. You have to load ipt_layer7 module first before you can use l7-filter. You can add 'insmod ipt_layer7' in the top of your firewall script.

    I have modified in Victek's tomato mod source tarball (almost all turn off module) to not compile as module that way I don't have to load module in my every scripts, I hate to remember it. :)

    BTW: Don't forget to modify src/router/rc/firewall.c if you want to change the module stuff.
  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