QoS script wanted / jdg-qos questions

From: String (String_at_BTInternet.com)
Date: 05/04/05


Date: Wed, 04 May 2005 00:02:38 +0100

Hi, im interested in getting a decent QoS script for linux as im now
using it as a router instead of a hardware based solution.

Ive looked around and havent really found a huge amount of clear
information or resources on this.

A bit of background, im running debian, kernel 2.6.11, iptables 2.3.0
and have applied the qnet patches for QoS. All this compiled ok,
rebooted and works.

The linux box has 2 interaces:- ppp0 being the external facing interface
and eth0 for the LAN. Basically i want QoS applied solely to ppp0.

The slight difference to "normal" in my system is im running "multi-nat"
in that i have a /29 subnet allocated to me and a specific lan IP maps
to a specific external IP, example:
internal > external
192.168.1.1 > 1.2.3.1
192.168.1.2 > 1.2.3.2
192.168.1.3 > 1.2.3.3 and so on.

Im doing the multi NAT via iptables. For each address ive mapped it
using the following:

iptables -t nat -A PREROUTING -d 1.2.3.1 -j DNAT --to 192.168.1.1
iptables -t nat -A POSTROUTING -s 192.168.1.1 -j SNAT --to 1.2.3.1

Im not sure if the above effects QoS hence mentioning it.

I found "jdg-qos" script via google and mentioned on this newsgroup so
decided to try it. Although the script produces 1 error (modprobe cant
find module IMQ) i dont think this is an issue as IMQ is compiled into
the kernel. The script itself other than that appears to run without
any other errors at all.

However, it doesnt appear to actually do anything at all. Some tests
seem to show me getting the same ICMP ping times both with and without
the script whilst testing things such as full upload, full downloading,
mixture of both and so on.

Am i missing anything critical here in this script to get it working? I
assume i should see lower ping times and so on when using it than
without (for example with P2P uploading at full speed) ? Would my
multi-NAT setup above confuse it in some way?

As far as i can tell ive set it up correctly, specific both interfaces,
specified 80% of my bandwidth for their speed, selected NAT=1 and so on.

Failing that does anyone know of other pre-written effective QoS scripts
to work on linux ?

Does anyone have details or examples of how to set up iptables "real
time" rule in this jdg-script ?



Relevant Pages

  • Re: Will Linux become as vulnerable as MS ??
    ... > beeing vulnerable to viruses. ... > that they know are executable, and execute intentionally. ... >> Linux, each distro is a little different, and even within the distro, ... > Since clicking on a script is easier than typing it's name, ...
    (comp.os.linux.security)
  • wonk mode
    ... workable Linux system for my home computer, ... MEPIS release (replacing a much older "Fedora" ... Red Hat Package Monitor formatted software archives ... This little dandy script, line wrapped ...
    (comp.os.linux.misc)
  • Re: Compiling gnuplot with libgd
    ... of running this script. ... installing the gnuplot graphing program ... By building a package for damn small linux I can have it automatically ... install gnuplot and run my required script without having to customize ...
    (comp.graphics.apps.gnuplot)
  • Re: Setting Up NTP for Time Sync
    ... prg wrote: ... >>I've made no changes to the script file that I know of. ... > packet filter facilities included with Linux. ... > This should set up your Linux box for ntp. ...
    (comp.os.linux.networking)
  • Re: Does Suse Suck?
    ... a desktop environment, but turn off all the eye-candy. ... recently switched all my KDE desktops to the KDE classic theme, ... That is also the reason why initialy Linux did not run on 286 machines ... What I would suspect or at leasst try to achive is to write a script ...
    (alt.os.linux.suse)