I've got the kernel and QoS stuff built, and I'd like some theoretical
help on syntax of tc, because, well, I can't decipher the example
commands from the README files.

I want three 'realms' I believe it's called. My ADSL has a maximum
upstream of 128 kbps, so I'd like to 'partition' my traffic.

Realm 1: interactive traffic always first priority
Realm 2: default traffic, allotted a maximum 48 kbps
Realm 3: low priority traffic, allotted a maximum of 64 kbps

My impression on this is that what I want to do here should be possible
with the iproute2+tc tools.  So I've got the ipchains commands set...but
the tc qdisc etc stuff is stumping me.  Any help would be greatly
appreciated.

# telnet, ssh in realm 1
ipchains -A output -j ACCEPT --mark 1 -p tcp --dport 22:23 -i eth0

# web server, put it in realm 3
ipchains -A output -j ACCEPT --mark 3 -p tcp --sport 80 -i eth0

# ftp server, also realm 3
ipchains -A output -j ACCEPT --mark 3 -p tcp --sport 20 -i eth0

# default realm 2
ipchains -A output -j ACCEPT --mark 2 -i eth0

-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]

Reply via email to