[BACK]Return to queue1 CVS log [TXT][DIR] Up to [local] / src / share / pf

File: [local] / src / share / pf / Attic / queue1 (download)

Revision 1.3, Mon Jan 20 16:14:23 2003 UTC (21 years, 4 months ago) by henning
Branch: MAIN
CVS Tags: OPENBSD_4_0_BASE, OPENBSD_4_0, OPENBSD_3_9_BASE, OPENBSD_3_9, OPENBSD_3_8_BASE, OPENBSD_3_8, OPENBSD_3_7_BASE, OPENBSD_3_7, OPENBSD_3_6_BASE, OPENBSD_3_6, OPENBSD_3_5_BASE, OPENBSD_3_5, OPENBSD_3_4_BASE, OPENBSD_3_4, OPENBSD_3_3_BASE, OPENBSD_3_3
Changes since 1.2: +2 -0 lines

$OpenBSD$
reminded by Xavier Santolaria

# $OpenBSD: queue1,v 1.3 2003/01/20 16:14:23 henning Exp $

ext_if = "dc0"

altq on $ext_if cbq bandwidth 10Mb \
    queue { deflt, http, ssh, mail, rsets }
queue	deflt bandwidth 10% priority 0 cbq(default ecn)
queue	http bandwidth 1.5Mb priority 3 { http_vhosts, http_cust1 }
queue	 http_vhosts bandwidth 40% cbq(borrow red)
queue	 http_cust1 bandwidth 0.5Mb
queue	mail bandwidth 10% priority 1
queue	ssh bandwidth 100Kb priority 7 cbq(borrow)
queue	rsets bandwidth 7500b priority 0 cbq(red)

block return in on $ext_if inet all queue rsets
pass in on $ext_if inet proto tcp from any to any port 80 keep state queue http
pass out on $ext_if inet proto tcp from any to any port 22 keep state queue ssh
pass in  on $ext_if inet proto tcp from any to any port 22 keep state queue ssh
pass out on $ext_if inet proto tcp from any to any port 25 keep state queue mail
pass out on $ext_if inet all keep state