shorewall-users April 2011 archive
Main Archive Page > Month Archives  > shorewall-users archives
shorewall-users: Re: [Shorewall-users] tcclasses

Re: [Shorewall-users] tcclasses

From: Bob Smith <robsmith1973_at_nospam>
Date: Mon Apr 04 2011 - 03:37:42 GMT
To: shorewall-users@lists.sourceforge.net

ok i have searched google and the FAQ to the best of my ability i apologize
in advance if i missed this somewhere.
i am following an example from the web and in my tcclasses file on the rate
column there is this '60*full/100' please help me understand this because i
cannot make sense of it!

other examples just have the mbit or kbit specified here but tc does not
seem to follow it?

basically i have a 30mbit connection to the internet 30 down that is 6 up.
and i am trying to use tcdevices/tcrules/tcclasses in shorewall to
prioritize bandwidth, so with what i have enabled i can do a bandwidth test
of 15/4.8 from http://speakeasy.net/speedtest if i take the files out i get
27/6 so here is tcdevices :eth0 - 6mbit
eth1 - 100mbit
and here is the tcclasses file :
eth1 1 10*full/100 full 1
tcp-ack,tos-minimize-delay
eth1 2 5*full/100 full 2
eth1 3 5*full/100 full 3
eth1 4 30*full/100 full 4
eth1 5 50*full/100 full 5 default
and last the tcrules file:
2 0.0.0.0/0 0.0.0.0/0 tcp 20,21,22,3389,1723
1 0.0.0.0/0 0.0.0.0/0 udp 5160
3 0.0.0.0/0 0.0.0.0/0 udp 53
4 0.0.0.0/0 0.0.0.0/0 tcp 110,80,443
eth0 is the wan interface and eth1 is the lan.

any input would be greatly appreciated especially if it helps me!
i know that rule 4 covers http (and i think my speedtest) if i understand
correctly the 30*full/100 basically means 30% of the connection which is
30mbit, but if that is right then why do i only get 15mbit on my speedtest?

thanks for your time.

BJ

------------------------------------------------------------------------------
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself;
WebMatrix provides all the features you need to develop and
publish your website. http://p.sf.net/sfu/ms-webmatrix-sf

_______________________________________________
Shorewall-users mailing list
Shorewall-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/shorewall-users