This version of the manual is designed to get you up and running with out any knowledge of traffic shaping
Using this version of the manual will allow you to get traffic shaping working on your IPCop firewall with out any knowledge of QoS. You will however need knowledge of the following:
Once you have a copy now connect to your IPCop machine using winscp, if you are connecting from a windows machine. Although SSH is done over port 22, IPCop uses port 222. Once you have connected to the firewall navigate first to the root of the file system then into the folder marked "tmp". Once inside transfer the qos tar file that you obtained from Source Forge.
OK, we really need to help people here - I know I spent about a day searching for how to do this and this is roughly correct - use something like:
scp -v -P 222 /home/downloads/pathtofile/filename root@hostname:/tmp/
After three hours of wasted time, I found here:http://ipcops.com/faq/ipcop_faq.html#1.2.7
that one has to "enable SSH via the web interface"
Addition: Make sure you run the install from the directory of the installer! i.e. "./install" and not "qos/install" There is a friendly line at the end of the installer that nukes the current directory. I have just lost my root dir... - benaiah
Using a web browser navigate to your IPCop router/firewall and from there using the "Services" menu, select "QoS".
The first thing that needs to be defined is the root class for out going traffic on the red device, this will be either:
This is the class that will used to channel relatively time dependent protocols like, MSN, IRC and SSH.
This class is used for RTP data and anything that is very time dependent like online games and VoIP
This class is used for all the traffic that isn't time dependent, traffic like P2P and FTP.
This class is used for all the traffic that isn't covered by a rule. i.e. undefined traffic.
ACK is a part of the TCP protocol, giving ACK packets high priority will speed up all TCP connections. And thus should assigned to the 101 class.
So in the QoS page on the IPCop do the following:
Now that all the classes have been defined, you now need to choose what traffic goes through which class. This is done using Rules. Rules are either defined using ports or by using the Layer-7 filters.
Different applications use different port numbers or ranges of port numbers. They also use different packet protocols, such as TCP and UDP. To define a traffic rule you will need to find out what port numbers the application uses and what packet protocol it uses. This information is usual either in the applications manual or in the configuration selection of the application. Failing thatgoogle is your friend.To add a port based rule do the following:
Layer-7 filters allows the identification of protocols independent of port. This is beneficial if you can not predict what ports will be used by users. There is a cost of CPU time, but this is proportional to the flow of network traffic and shouldn't be a problem with a home or office net work on the minimum hardware specification requirements for IPCop.
To add a Layer-7 based rule do the following:
Using the imq0 dummy device will allow you to control the priority of downloaded packets, as opposed to the uploaded packets so far looked at.
Setting up this device is much the same as the previous one but with ADSL connections the bandwidth is greater down stream so this needs to be adjusted in the classes.
The setup precedes as before:
To uninstall just do the following:
IPCOP will require an updated kernel in order for the QOS package to work, after the installing QOS,follow this linkMHADDONS, and download and install the kernel, following the associated instructions.A newer kernel version may be available, look throughDownloads, under Addons.
CBQ – Class Based Queuing.
HFSC – Hierarchical Fair Service Curve
HTB – Hierarchical Token Bucket – A packet scheduler
IMQ – A dummy device which intercepts all packets just before they are queued into the real device.
L7-filter – Application Layer Packet Classifier
RTP – Real-time Transfer Protocol
qdisc – Queuing Discipline.
VoIP – Voice over IP