PDA

View Full Version : how to do this ?


twist3d
11th July 2006, 01:18 PM
Hi folks!
I have a fedora core 5 on which i have a cs server and a small website with statistics and other stuff. my problem is that i have a small amount of upload bandwidth (about 160 kbps) and want to give the ssh port at least 64 kbps, dedicated in which it will not ever decrease the speed, so I can administer the server remotely fine without it hanging. any way I can do this ? preferably in a lame explanation so i can get the ideea and be able to use it next time. :D

brandor
11th July 2006, 01:27 PM
To get you started, search for traffic shaping with tc and iptables on google.

twist3d
11th July 2006, 01:31 PM

i was thinking at using htb tools. but i'll give your sugestion a try.

farmorg
11th July 2006, 03:25 PM
If it provides any inspiration, I use a Smoothwall 2 box with the QOS mod installed. This way I can dictate how much of my 512k upstream can be used by various services; 200k each for smtp & http, 100k for ssh etc...

I am sure this could be done manually using iptables etc but my iptables knowledge is not very good, this was a much quicker way to do what I wanted, and I get a nice web interface to manage it all - bonus :-)

farmorg

twist3d
11th July 2006, 03:47 PM
hmm even better, thanks for the suggestion. il try it right now.

twist3d
11th July 2006, 05:00 PM
i tried some stuff out with smoothwall but with the express version i can't find where to limit the services and I found out that it's available only in the gpl version that you have to pay for it. so that brings me back to the question, is can someone help me with the thing i wrote up ?

farmorg
11th July 2006, 05:48 PM
The QOS (quality of service) mod is not included in the default express version, you have to install it together with the "super kernel".
Here's a link that should help if you still want to persue it:
http://community.smoothwall.org/forum/viewtopic.php?t=7922&highlight=qos

farmorg