Spaider DD-WRT Novice
Joined: 29 Aug 2006 Posts: 17
|
Posted: Thu Feb 12, 2009 14:50 Post subject: Unable to mark connections for QoS |
|
I am trying to write QoS script by myself because web based settings aren't really working. But found that that iptables ... -j MARK does not actually mark the connections.
E.g. I want to set 0xA mark for HTTP traffic:
Code: | iptables -t mangle -A POSTROUTING -p tcp --sport 80 -j MARK --set-mark 10 |
Аfter that, I look into /proc/net/ip_conntrack and see that all connections still have mark=0.
Though, if I look at iptables stats, I see that traffic is really counted for this rule:
Code: | iptables -t mangle -L POSTROUTING -v
Chain POSTROUTING (policy ACCEPT 20M packets, 11G bytes)
pkts bytes target prot opt in out source destination
909 747K MARK tcp -- any any anywhere anywhere tcp spt:www MARK set 0xa
|
I am using v24 Mini Release: 05/20/08 (SVN revision: 9517).
Any clues? _________________ DD-WRT v.24 Mini on WRT54GL v.1.1 |
|