config root man

Current Path : /usr/src/share/examples/pf/

FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64
Upload File :
Current File : //usr/src/share/examples/pf/queue3

# $FreeBSD: release/9.1.0/share/examples/pf/queue3 173536 2007-11-11 01:16:51Z mlaier $
# $OpenBSD: queue3,v 1.3 2006/10/07 04:48:01 mcbride 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 \
    queue(pri-med, pri-high)
pass out on $ext_if proto tcp from any to any port 80 queue pri-med
pass in  on $ext_if proto tcp from any to any port 80 queue pri-low


Man Man