1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Custom QoS script

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

  1. sirsanka

    sirsanka LI Guru Member

    Hi,
    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?

    Juan
     
  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.
     

Share This Page