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

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

Revision 1.2, 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.1: +1 -0 lines

$OpenBSD$
reminded by Xavier Santolaria

# $OpenBSD: queue3,v 1.2 2003/01/20 16:14:23 henning Exp $
# simple PRIQ example

ext_if="lo0"

altq on $ext_if priq bandwidth 10Mb queue { pri-low pri-med pri-high }
queue pri-low priority 0
queue pri-med priority 1 priq(default)
queue pri-high priority 2

pass out on $ext_if proto tcp from any to any port 22 keep state \
    queue(pri-med, pri-high)
pass out on $ext_if proto tcp from any to any port 80 keep state queue pri-med
pass in  on $ext_if proto tcp from any to any port 80 keep state queue pri-low