PDA

View Full Version : [ubuntu] 8.04 server and router - set up QOS


slimjim8094
July 2nd, 2008, 05:32 PM
I have an Ubuntu Server 8.04 acting as a DHCP, DNS server, and NAT router for my home LAN. I'd like to set up QoS for it.

I have a general idea as to how it's supposed to work, but no clue how to actually implement it. I know which ports need prioritizing, so I don't need to dynamically examine each packet or anything.

Basically I want games, SSH, etc to be at high priority, FTP/HTTP (preferably only long HTTP sessions) to be low priority, and the rest in the middle.

Is this possible, and more importantly, is it possible easily? If it's hours of work, it's not worth it.

Thanks in advance...

nix4me
July 2nd, 2008, 07:06 PM
You need to use iproute2 and the tc commands. Search for LARTC in google for instructions on how to use. I use a simple script to do traffic shaping for my home network. It works great. Basically I mark packets with iptables and then shape the packets based on port or protocol. It allows my ftp server to use max bw until higher priority traffic needs the bw.

nix4me

slimjim8094
July 4th, 2008, 09:04 AM
ok, thanks