Hello.
i am new on this mailing.
but i have a serious problem that i cant fix.
System info: compaq Deskpro.. EN. 1 Ghz 512MB ram, 120GB harddrive.
Nics: FXP0 (onboard) ,ATH0 Atheros whireless (SMC brand) , RE0 ,Realtek
1 GBnic RL0 (Realtek 100Mbit)
OS: OpenBSD5.0

The problem..
i use openBSD now for some years.
works perfect as routerbox, good tweaking ,etc.
but now i am setting up a backup system (with the specs above)
with 3 networkcards (the ATH0 makes the system go hanging, so i wount
count that one)

firewalling is perfect, but i want to make a system with packet queing.
normaly i would say, it should work, but the queing get the default
quing, and that is what i not want.
so, i post my pf.conf below.
can someone take a look at it, i realy tried so many combination.

the purpose is this.
on RE0 full speed should be available for my own lan., 8Mbit down,800Kbs up.
but on rl0, where have connected a accesspoint, should be trottled.
like 512kb down, and 64kbs up.
wel...what ever combination i use, i cant get it work..
upload is a disaster to...
on both nics i get only 64kbs.....
so SSH session are lagging like...

######## START CONFIG ##########
ext_if = "fxp0"
int0_if = "re0"
int2_if = "rl0"
localnet0     = "192.168.0.0/24"
localnet2     = "192.168.2.0/24"
services ="{22,53}"
#
# extern -> intern
altq on $int0_if cbq bandwidth 12Mb queue { localnet0_in, services0_in }
#queue std0_in        bandwidth 64Kb cbq
queue localnet0_in   bandwidth 8Mb cbq
queue services0_in   bandwidth 128Kb cbq(default)
#
# extern -> intern
altq on $int2_if cbq bandwidth 2Mb queue { localnet2_in, services2_in }
#queue std2_in        bandwidth 64Kb cbq
queue localnet2_in   bandwidth 128Kb cbq
queue services2_in   bandwidth 128Kb cbq(default)
#
# intern -> extern
altq on $ext_if cbq bandwidth 2Mb queue { localnet0_out,localnet2_out,
services_out }
#queue std_out        bandwidth 32Kb cbq
queue localnet0_out  bandwidth 800Kb cbq
queue localnet2_out  bandwidth 64Kb cbq
queue services_out   bandwidth 128Kb cbq(default)
#
match out on egress inet from !(egress) to any nat-to (egress:0)
block all
#
# extern -> intern
pass in on $int0_if from $localnet0 queue localnet0_in
pass in on $int0_if proto { tcp,udp } from $localnet0 port $services
queue services0_in
pass in on $int2_if from $localnet2 queue localnet2_in
pass in on $int2_if proto { tcp,udp } from $localnet2 port $services
queue services2_in
#
# intern -> extern
pass out on $ext_if to $int0_if queue localnet0_out
pass out on $ext_if to $int2_if queue localnet2_out
pass out on $ext_if proto { tcp,udp } from any to any port $services
queue services_out
#
pass out quick keep state
pass in  on $int0_if
pass in  on $int2_if
#
########## END CONFIG ############

sorry if the stuff is messed up..
but i would be realy thankfully.
Tony.

Reply via email to