Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 Jul 2005 13:43:04 +0300
From:      vladone <vladone@llwb135.servidoresdns.net>
To:        freebsd-ipfw@freebsd.org
Subject:   can't limit uploading traffic
Message-ID:  <163992892.20050706134304@llwb135.servidoresdns.net>

Next in thread | Raw E-Mail | Index | Archive | Help
 I have this script:
#!/bin/sh
cmd="/sbin/ipfw -q"
#external interface
oif="rl0"
#internal interface
pif="fxp1"
down_bw="100kbit/s"
up_bw="70kbit/s"
#flush rules
$cmd flush
$cmd pipe flush

$cmd pipe 2 config bw $up_bw
$cmd queue 1 config pipe 2 weight 20

$cmd add 100 queue 1 ip from any to any in via $pif

# divert prin natd
$cmd add 10500 divert natd ip from any to any via $oif

If I use: $cmd add 100 queue 1 ip from any to any in via $pif, get an
limit at half bandwith from total (aproximatively 40kbits/s).

If I use: $cmd add 100 queue 1 ip from any to any out xmit $oif, block
my traffic throught gateway.

If I use: $cmd add 100 queue 1 ip from any to any out via $oif , also
block my traffic.

How i can resolv this!




Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?163992892.20050706134304>