On Sat, 30 Apr 2005, Mel Gorman wrote:
>> I'm trying to match gaming traffic by using iptables to mark the traffic
> and use tc to shape it. This should be very simple but I can't get the tc
> command working.
>> This is how I mark the traffic;
>> iptables -t mangle -I PREROUTING -p udp --dport 1200 -j MARK --set-mark 100
> iptables -t mangle -I PREROUTING -p udp --dport 27000:27015 -j MARK --set-mark 100
> iptables -t mangle -I PREROUTING -p tcp --dport 27020:27039 -j MARK --set-mark 100
>> I'm trying to shape it with;
>> tc filter add dev eth2 parent 1: protocol ip prio 1 ip match mark 100
> flowid 1:10
>
Correct that, I'm trying
tc filter add dev eth2 parent 1: protocol ip prio 1 u32 match mark 100 flowid 1:1
--
Mel Gorman
Part-time Phd Student Java Applications Developer
University of Limerick IBM Dublin Software Lab
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!