I think what you're missing is tcclasses. I used the sample config from one
of Shorewall's authors and upped the kbit range on VoIP a little to make it
clearer. Here's my setup:

tcclasses
$EXT_IF         1       180kbit         260kbit         1
tos=0x68/0xfc,tos=0xb8/0xfc
$EXT_IF         2       full/4          full            2
tcp-ack,tos-minimize-delay
$EXT_IF         3       full/4          full            3
default
$EXT_IF         4       full/8          full*8/10       4

Priority 1 uses special flags for VoIP/SIP traffic, and gets dedicated
bandwidth. All torrent traffic is priority 4. Along with tcdevices set to
80% of the theoretical max upload, it works out very well. I get extremely
clear calls even when saturating my upload. Remember, you're not really
doing QoS if you try to use ALL your theoretical max upload. So if you have
1mbit up, putting 1024, even if you have a lower priority for your torrents,
etc., can and will start queuing up packets at the Shorewall router instead
of at the ISP (who can generally handle it better). Try 80% then creep
upwards if you must.


-----Original Message-----
From: Dan Saul [mailto:[email protected]] 
Sent: Wednesday, February 04, 2009 9:57 AM
To: [email protected]
Subject: [Shorewall-users] Traffic Shaping (including router)

Hi,

I am relatively new to shorewall and setting up a router manually and would
like some advice if possible on how to get TOS working.

What I am attempting to do is not limit any protocol with numbers (ie give
torrents 50kbit and voip the rest) but rather just simple priorities. For
example if I am using my Asterisk PBX I would rather incomming calls not
stutter because BT is running. Currently even if I run bit torrent
artificially limited (allowing avaliable bandwidth) I still get stuttering,
I can only assume this is because the torrent packets are impeding the VoIP
traffic. It is only if I turn it off that it functions properly. Torrents
will be running both on the internet facing server with shorewall (10.0.0.1)
and one of the other servers on the lan.

I have attached a shorewall dump as well as the rules files as I do not know
what information is required to resolve this. If you need any more please
let me know.

Thanks in advance!
Dan


------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
Shorewall-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/shorewall-users

Reply via email to