Unable to mark connections for QoS

Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware
Author Message
Spaider
DD-WRT Novice


Joined: 29 Aug 2006
Posts: 17

PostPosted: Thu Feb 12, 2009 14:50    Post subject: Unable to mark connections for QoS Reply with quote
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
Sponsor
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum