Menu

#25 CBQ upload trafic don't work

open
nobody
None
5
2005-02-24
2005-02-24
Anonymous
No

frist of all, sorry for my english.
Hi to all,

I have instaldo the CBQ v0.7.3 in my server and created
two archives of configuration:

cbq-0002.DOWNLOAD.256K
----------------------------------------
DEVICE=eth1,10Mbit,1Mbit
RATE=256Kbit
WEIGHT=25Kbit
PRIO=5
RULE=192.168.0.10
TIME=09:00-19:00;128Kbit/12Kbit
----------------------------------------

cbq-0002.UPLOAD.256K
----------------------------------------
DEVICE=eth0,10Mbit,1Mbit
RATE=256Kbit
WEIGHT=25Kbit
PRIO=5
RULE=192.168.0.10,
TIME=09:00-19:00;128Kbit/12Kbit
----------------------------------------

but upload this not limiting. I modified the archive of
upload

DEVICE=eth1
BOUNDED=yes
ISOLATED=yes

and upload this not limiting again. I search on google
and found a lot of others similar problems

I hope you understand and waiting for your reply.
my email is leandro@brpulso.com.br.
Thanks

Discussion

  • Nobody/Anonymous

    Logged In: NO

    try modifying your rules

    RULE=192.168.0.10, means traffic flowing to this ip
    RULE=192.168.0.10 means traffic flowing from this ip

    also check if traffic is flowing through your classes with
    ./cbq.init stats

     
  • Nobody/Anonymous

    Logged In: NO

    My configuration for local IP.
    For UPLOAD rule you can't to use RULE line, because
    OUTGOING traffic is going through MASQUERADE and after
    that local IP becomes for CBQ not local, but you shape local
    IP. You need to MARK packets and shape not IP, but
    MARKs.
    Example:

    cbq-a001.down
    #-----------------------------------------------
    DEVICE=eth0,100Mbit,10Mbit
    RATE=256Kbit
    WEIGHT=25Kbit
    TIME=01:00-07:00;512Kbit/51Kbit
    PRIO=5
    ISOLATED=yes
    RULE=,192.168.0.1
    #-----------------------------------------------

    cbq-a001.up
    #-----------------------------------------------
    DEVICE=eth1,100Mbit,10Mbit
    RATE=256Kbit
    WEIGHT=25Kbit
    TIME=01:00-07:00;512Kbit/51Kbit
    PRIO=5
    ISOLATED=yes
    MARK=1
    #-----------------------------------------------

    cbq-a002.down
    #-----------------------------------------------
    DEVICE=eth0,100Mbit,10Mbit
    RATE=256Kbit
    WEIGHT=25Kbit
    TIME=01:00-07:00;512Kbit/51Kbit
    PRIO=5
    ISOLATED=yes
    RULE=,192.168.0.2
    #-----------------------------------------------

    cbq-a002.up
    #-----------------------------------------------
    DEVICE=eth1,100Mbit,10Mbit
    RATE=256Kbit
    WEIGHT=25Kbit
    TIME=01:00-07:00;512Kbit/51Kbit
    PRIO=5
    ISOLATED=yes
    MARK=2
    #-----------------------------------------------

    In IPTABLES add next rules:
    After *filter segment paste this:
    #-----------------------------------------------
    *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 1
    -A PREROUTING -s 192.168.0.2 -j MARK --set-mark 2
    -A PREROUTING -s 192.168.0.3 -j MARK --set-mark 3
    -A PREROUTING -s 192.168.0.4 -j MARK --set-mark 4
    -A PREROUTING -s 192.168.0.5 -j MARK --set-mark 5
    -A PREROUTING -s 192.168.0.6 -j MARK --set-mark 6
    -A PREROUTING -s 192.168.0.7 -j MARK --set-mark 7
    -A PREROUTING -s 192.168.0.8 -j MARK --set-mark 8
    -A PREROUTING -s 192.168.0.9 -j MARK --set-mark 9
    -A PREROUTING -s 192.168.0.10 -j MARK --set-mark 10
    # and go on.....
    COMMIT
    # Completed
    After *mangle goes your *nat segment of IPTABLES.

    Sorry for my english. If you have quastions write my to this
    email: zenja.maximov@mail.ee

     

Log in to post a comment.