Menu

#7 Shapper outgoing band using MASQ IP.

open
nobody
None
5
2003-03-01
2003-03-01
No

Hi,

Im using CBQ to shapper bandwidth in my small
network. In the same srv I have IPMASQ and CBQ,
two network cards (eth0, eth1).
The shapper from INCOMING BAND is working ok. The
problem is in OUTGOING BAND... whats necessary to
do to make it work.... :)

Thanks for anyhelp.
Jozeph

Discussion

  • Nobody/Anonymous

    Logged In: NO

    I have the same problem -outgoing band is not working

     
  • Nobody/Anonymous

    Logged In: NO

    you need too just add the IP address out like

    RULE=10.10.1.123 # from this address
    RULE=10.10.1.123, # to this address

    if you do a dump you would see that only the internal IP
    address show up on 1 interface.

    tcpdump -i eth1 | grep -i -I 10.10.1.*

    would show all the traffic going on the eth1 interface
    if the outside interface was eth0, you would not see any of
    the 10.10.1.* addresses. so any RULE on eth0 would fail to
    happen

     
  • Nobody/Anonymous

    Logged In: NO

    I will try to share some test I made here!

    I'm using Redhat... I tried in 7.3/8.0 and 9.0 versions and all
    of them has the same problem.

    My computer is a Athlon XP2000+/2 x 3Com 3c905BTX
    cards/Asus A7N266 motherboard/256mb DDR/ Kernel 2.4.9,
    2.4.18-9 and 2.4.20....

    First I configured my interfaces with NAT'ed ip address... like

    200.200.200.200 (for example) --- eth0 (linux) eth1 -----
    192.168.1.1

    iptables -A POSTROUTING -t nat -o eth0 -j MASQUERADE

    CBQ version 0.72 and Download shapping works fine... and
    upload was not shaped... (yes! I configured corretly with ","
    at end of RULE in cbq config file).

    After many tests..... I tested using valid IP Address...

    200.200.200.200 --- eth0 (linux) eth1 200.200.201.1 -----
    200.200.201.2 (notebook workstation)

    And upload works fine!!!

    Well... After many many many many tests ;) When iptables
    with nat command is executed the CBQ is not shaping
    bandwidth of upload connections..... Even if the notebook use
    the valid IP... just execute iptables -t nat... and upload shape
    stops work.

    I'm thinking that this problem is with tc and not with CBQ...

    Anyone has the same problem??? Anyone has any solution?

     
  • Nobody/Anonymous

    Logged In: NO

    I have this same problem :((. Please help me. djduke@o2.pl

     
  • Nobody/Anonymous

    Logged In: NO

    does anyone solve problem with outgoing traffic shape from
    internal network (10.1.1.0/24) to internet ?

    Maris

     
  • Ventsislav Genchev

    Logged In: YES
    user_id=1010275

    check out request id: 964549 ...

    the comment I gave there might help you..

    upload shaper won't work after NAT... it's so obvious... you
    guys try to shape the upload on the same server you do the
    NAT... well.. on the outgoing interface the local addresses
    are already translated to the server's ip address... the
    shaping is impossible, cuz there are no local addresses on
    the outgoing interface...

    check ID: 964549 for a solution ...

    Regards,
    Ventsi

     
  • Nobody/Anonymous

    Logged In: NO

    see http://www.netpro.co.yu/cbqnat.html for the solution.

     
  • guille4

    guille4 - 2005-05-01

    Logged In: YES
    user_id=1270318

    My solution is rshaper.o working togheter cbq.init. BUT its it a
    solution that ONLY works in 2.4 kernels. (rshaper.o do not
    compiles in 2.6 kernels :-( )
    Please Kutsnetzov give us a better solution in cbq ! We love
    cbq.init !

     

Log in to post a comment.