Limit only for single connections?
Brought to you by:
pgolubev
Hi,
i've set up a testsystem with cbq.init script.
I have to config files:
DEVICE=eth0,100Mbit,10Mbit
RATE=5Mbit
WEIGHT=0.5Mbit
PRIO=5
RULE=192.168.1.205/32
DEVICE=eth0,100Mbit,10Mbit
RATE=20Kbit
WEIGHT=2Kbit
PRIO=5
RULE=192.168.1.12/32
When I try the shaping on the second machine
(192.168.1.12) with scp and one scp connection
everything works. But when i have several scp
connections each of the connection has a rate of
20Kbit/s.
When I use ftp for testing there isn't any limit at all.
Please help.
Greets
Christoph
Logged In: NO
Create two files for each host (one file for download and one
for upload).
Note: in file with upload rule, use MARK instead of RULE.
In iptables in mangle section use MARK
Example:
#--cut---
*mangle
:FORWARD ACCEPT [0:0]
:INPUT ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
:PREROUTING ACCEPT [0:0]
:POSTROUTING ACCEPT [0:0]
-A PREROUTING -s 192.168.0.1 -j MARK --set-mark 1001
-A PREROUTING -s 192.168.0.2 -j MARK --set-mark 1002
-A PREROUTING -s 192.168.0.3 -j MARK --set-mark 1003
COMMIT
# Completed
In my cbq files with rule for upload:
Name of file:
cbq-1003.up256
#--cut--
DEVICE=eth1,100Mbit,10Mbit
RATE=256Kbit
WEIGHT=25Kbit
#TIME=12:00-18:00;512Kbit/51Kbit
PRIO=5
ISOLATED=yes
MARK=1001
#--cut--
eth1 to Internet
eth0 to LAN