Visit Jeremy's Blog.
Go Back > Forums > Other *NIX Forums > *BSD
User Name
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.


  Search this Thread
Old 01-05-2010, 10:40 AM   #1
Registered: Jan 2004
Location: netherlands, europe, in a crapy house. xD
Distribution: openBSD
Posts: 73

Rep: Reputation: 21
openBSD alt-Q weard isue.

hello, again. xD
1st, happy new year to you all.
2nd, i was experimenting again with alt-q on my openBSD box.
the traffic shaping from internet to lan works like a sharm.

but the trafic shapping from the lan to internet goes wrong.
every user gets the default queuing, what is 128Kbit.
i posten my pf.conf below.
i hope other BSD users who got alt-q working can help me with it.
refering to the man pages on openBSD did not solve my problem.

######## START CONFIG ##########
ext_if = "fxp0"
int_if = "rl0"
local_net = ""
ssh_im_dns_ports = "{ 22,65530,1863,5190,5222,53 }"
# machines
a6000_lan = ""
a6000_wifi = ""
duocore_lan = ""
duocore_wifi = ""
megazeul = ""
server2 = ""
iphone_ton = ""
iphone_frans = ""
table <desktop> { $server2, $megazeul, $duocore_lan, $duocore_wifi, $a6000_lan, $a6000_wifi, $iphone_ton, $iphone_frans }
notebook_jolien = ""
wii_jolien = ""
table <jolien> { $wii_jolien, $notebook_jolien }
set block-policy return
set loginterface $ext_if
set limit { frags 5000, states 2500 }
set state-policy if-bound
set optimization high-latency
set skip on lo
scrub in on $ext_if all fragment reassemble min-ttl 15 max-mss 1400
scrub in on $ext_if all no-df
scrub on $ext_if all reassemble tcp
# intern -> extern
altq on $ext_if cbq bandwidth 1024Kb queue { std_ext, desktop_ext, jolien_ext }
queue std_ext bandwidth 128Kb cbq(default)
queue desktop_ext bandwidth 832Kb cbq
queue jolien_ext bandwidth 64Kb cbq
# extern -> intern
altq on $int_if cbq bandwidth 10240Kb queue { std_int, desktop_int, ssh_im_dns_int, jolien_int }
queue std_int bandwidth 256Kb cbq(default)
queue ssh_im_dns_int bandwidth 256Kb cbq
queue desktop_int bandwidth 7680Kb cbq
queue jolien_int bandwidth 2048Kb cbq
nat on $ext_if from $int_if:network to any -> ($ext_if)
block on { $ext_if, $int_if } all
antispoof for $ext_if inet
# intern -> extern
pass out quick on $ext_if from <jolien> to any flags S/SA keep state queue jolien_ext
pass out quick on $ext_if from <desktop> to any flags S/SA keep state queue desktop_ext
pass out quick on $ext_if from any to any flags S/SA keep state queue std_ext
# extern -> intern
pass in quick on $int_if proto { tcp udp } from any to any port $ssh_im_dns_ports flags S/SA keep state queue ssh_im_dns_int
pass in quick on $int_if from <desktop> to any flags S/SA keep state queue desktop_int
pass in quick on $int_if from <jolien> to any flags S/SA keep state queue jolien_int
pass in quick on $int_if from any to any flags S/SA keep state queue std_int
########## END CONFIG ############


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
openBSD 4.4 dhcpd.conf, weard thing ? spatieman *BSD 2 01-05-2010 10:25 AM
openBSd 4.4 altQ isue,.. spatieman *BSD 0 03-24-2009 08:28 AM
Creative Sound card isue manojrampillai Red Hat 1 03-19-2006 02:58 AM
weard mp3 player anikettheking Linux - General 2 10-18-2005 10:29 PM
ATI Fire GL2 isue aznkwyjibo007 Mandriva 1 12-01-2004 08:24 PM > Forums > Other *NIX Forums > *BSD

All times are GMT -5. The time now is 02:04 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration