I have a freebsd 7.1 box. It has two interfaces both have puclic ips. Both nics are connected two different network segments.
The problem is when I use the dummynet in bridge mode its working fine but if I disable bridge and use routing (freebsd) the bandwidth rule seems to be applying 4 times and when I aslo define the interface name in rule I am getting half bandwidth.
Here are my config. (half bandwidth)
The problem is when I use the dummynet in bridge mode its working fine but if I disable bridge and use routing (freebsd) the bandwidth rule seems to be applying 4 times and when I aslo define the interface name in rule I am getting half bandwidth.
Here are my config. (half bandwidth)
Code:
#$cmd add pipe 78 ip $src 203.90.14.120 $dest any
$cmd add pipe 79 ip $src any $dest 203.90.14.120 out via le1
can# more /etc/ipfw.rules
#!/bin/sh
######################
# ipfw Firewall Commands
######################
cmd="ipfw -q"
bwd="config bw"
qip="config pipe"
dest="to"
src="from"
lod="weight"
######################
$cmd flush
$cmd pipe flush
#$cmd add deny all from any to any
#$cmd add allow all from any to any
$cmd pipe 78 $bwd 512kbits/s
$cmd pipe 79 $bwd 512kbits/s
#$cmd add pipe 78 ip $src 203.90.14.120 $dest any
$cmd add pipe 79 ip $src any $dest 203.90.14.120 out via le1
can# more /etc/ipfw.rules
#!/bin/sh
######################
# ipfw Firewall Commands
######################
cmd="ipfw -q"
bwd="config bw"
qip="config pipe"
dest="to"
src="from"
lod="weight"
######################
$cmd flush
$cmd pipe flush
#$cmd add deny all from any to any
#$cmd add allow all from any to any
$cmd pipe 78 $bwd 512kbits/s
$cmd pipe 79 $bwd 512kbits/s
#$cmd add pipe 78 ip $src 203.90.14.120 $dest any
$cmd add pipe 79 ip $src any $dest 203.90.14.120 out via le1