Hi,
I have recently put together a low end PC to act as a home router and have configured masquerading so all the machines on the network get their IP from the DHCP server on the router, and their internet access is masqueraded through the router also.
what i'd like to do is set the priority on packets so counterstrike packets (UDP ports 27000 to 27015) are given top priority and get sent out / received first and after that everything else, ive also attempted to do this with SSH
I've written the following rules after doing a bit of research however after testing it by using azureus (bittorrent client) to download at 60k/sec and upload at 20k/sec (4mbit line) and play counterstrike at the same time, i still get pretty bad pings, is there anyway to make counterstrike and any other ports completely interactive/not interefered by anything else?
I suspect maybe I am applying the mangling in the wrong table (I dont fully understand all the concepts - a link to a n00b friendly routing/iptables/mangling tutorial would be great if any of you guys have any)
Any help or pointer in the right direction would be much appreciated!
Code:
#1.1 SET INCOMING BITTORRENT PACKETS THAT HAVENT BEEN ROUTED YET TO MAXIMIZE THOROUGHPUT [todo]
#2.1 SET INCOMING SSH/TELNET PACKETS THAT HAVENT BEEN ROUTED YET TO MINIMIZE DELAY TO COUNTER LAG
iptables -A PREROUTING -t mangle -p tcp --sport 22 -j TOS --set-tos Minimize-Delay
#2.2 SET INCOMING COUNTERSTRIKE PACKETS THAT HAVENT BEEN ROUTED YET TO MINIMIZE DELAY TO COUNTER LAG
iptables -A PREROUTING -t mangle -p udp --sport 27000:27015 -j TOS --set-tos Minimize-Delay