LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 04-24-2005, 04:33 PM   #1
danny2055
LQ Newbie
 
Registered: Jun 2003
Distribution: SuSE 9.3 Professional
Posts: 14

Rep: Reputation: 0
Question SuSE 9.2 router - configuring for real QoS with iptables


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
 
Old 04-25-2005, 04:12 AM   #2
danny2055
LQ Newbie
 
Registered: Jun 2003
Distribution: SuSE 9.3 Professional
Posts: 14

Original Poster
Rep: Reputation: 0
any ideas? (bump :P)
 
Old 05-04-2005, 03:33 PM   #3
frostschutz
Member
 
Registered: Apr 2004
Distribution: Gentoo
Posts: 60

Rep: Reputation: 16
Setting the TOS alone won't help much. You need to set up some queuing disciplines which make use of that information (for example, you could try PRIO qdisc as default scheduler). If you want more information about Linux QoS, start with http://www.lartc.org . For detecting P2P traffic, you might also want to check out IPP2P http://www.ipp2p.org - it requires some patching to make it work, though.

For a single user scenario, you might want to try some configuration scripts that other people wrote, for example Wondershaper (not a very sophisticated script, but a simple HTB setup alone can do wonders). You can use Google to find many other traffic shaping scripts on the net.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
configuring X11 and x11vnc on a machine without any real input/output AlexiaDeath Linux - Software 1 10-26-2004 01:45 AM
Configuring Exim as mail router in SuSe 9.1 IglooGuy Linux - Networking 0 10-23-2004 02:19 PM
Configuring IPTABLES goldfish Linux - Newbie 6 10-15-2003 04:14 PM
Real Programmers Real People Real CS Students nakkaya General 5 07-04-2003 02:46 PM
how do i know real ip when i use router? doublefailure Linux - Networking 1 07-06-2002 02:58 PM


All times are GMT -5. The time now is 01:27 PM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration