dummynet queue not limiting? - BSD

This is a discussion on dummynet queue not limiting? - BSD ; Basically, I want to limit the upload speed of one computer (192.168.1.64) behind the FreeBSD box when any of the other computers on the network are uploading. The FreeBSD box connects directly to the cable modem through xl0, and connects ...

+ Reply to Thread
Results 1 to 2 of 2

Thread: dummynet queue not limiting?

  1. dummynet queue not limiting?

    Basically, I want to limit the upload speed of one computer (192.168.1.64)
    behind the FreeBSD box when any of the other computers on the network are
    uploading. The FreeBSD box connects directly to the cable modem through
    xl0, and connects to the internal LAN through vr0.

    However, the 192.168.1.64 computer doesn't slow down its uploading much when
    I upload a file from the FreeBSD box to an outside location via ftp. They
    end up somewhat evenly splitting their upload speeds, despite the fact that
    I set the weights much differently.

    The rc.firewall.rules starts out with these lines:
    ipfw -q -f flush
    ipfw pipe 1 config bw 0
    ipfw queue 101 config pipe 1 weight 1
    ipfw queue 102 config pipe 1 weight 100

    Here's an ipfw show:
    00100 allow ip from any to any via lo0
    00200 allow ip from any to any via vr0
    00250 queue 101 ip from 192.168.1.64 to any via xl0
    00255 skipto 300 ip from 192.168.1.64 to any via xl0
    00260 queue 102 ip from any to any via xl0
    00300 divert 8668 ip from any to any via xl0
    00310 allow ip from any to any via xl0

    Any ideas what to try?



  2. Re: dummynet queue not limiting?

    MZ pisze:
    > Basically, I want to limit the upload speed of one computer (192.168.1.64)
    > behind the FreeBSD box when any of the other computers on the network are
    > uploading. The FreeBSD box connects directly to the cable modem through
    > xl0, and connects to the internal LAN through vr0.
    >
    > However, the 192.168.1.64 computer doesn't slow down its uploading much when
    > I upload a file from the FreeBSD box to an outside location via ftp. They
    > end up somewhat evenly splitting their upload speeds, despite the fact that
    > I set the weights much differently.
    >
    > The rc.firewall.rules starts out with these lines:
    > ipfw -q -f flush
    > ipfw pipe 1 config bw 0
    > ipfw queue 101 config pipe 1 weight 1
    > ipfw queue 102 config pipe 1 weight 100
    >
    > Here's an ipfw show:
    > 00100 allow ip from any to any via lo0
    > 00200 allow ip from any to any via vr0
    > 00250 queue 101 ip from 192.168.1.64 to any via xl0
    > 00255 skipto 300 ip from 192.168.1.64 to any via xl0
    > 00260 queue 102 ip from any to any via xl0
    > 00300 divert 8668 ip from any to any via xl0
    > 00310 allow ip from any to any via xl0
    >
    > Any ideas what to try?
    >
    >


    Test so:

    #!/bin/bash
    ipfw -q flush
    ipfw -q pipe flush

    ipfw 1 add allow icmp from any to any

    ipfw 100 add pipe 100 ip from 192.168.1.64/32 to any in recv xl0
    ipfw 101 add pipe 101 ip from any to 192.168.1.64/32 out xmit xl0
    ipfw pipe 100 config bw 134Kbit/s queue 12 #upload
    ipfw pipe 101 config bw 530Kbit/s queue 25 #download




    ps. man ipnat

    Greeting from Poland )

    --
    pozdrawiam
    Damian 'lee' Lipski

    FreeBSD & OpenBSD
    Network administrator
    lee (at) desire24 (dot) com
    www.desire24.com

+ Reply to Thread