diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2002-11-24 20:46:55 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2002-11-24 20:46:55 +0000 |
commit | 2608215fb9819abf2f1565cbaa0c3b1eb0e688d0 (patch) | |
tree | f5e689f5b0e13cf2d1bc2fde2ab0456eff908f49 | |
parent | a24c72a5cd1767fde89763cccd93e024ce42f71f (diff) |
gack.
-rw-r--r-- | regress/sbin/pfctl/pf33.in | 20 | ||||
-rw-r--r-- | regress/sbin/pfctl/pf33.ok | 15 |
2 files changed, 35 insertions, 0 deletions
diff --git a/regress/sbin/pfctl/pf33.in b/regress/sbin/pfctl/pf33.in new file mode 100644 index 00000000000..7647d8bf472 --- /dev/null +++ b/regress/sbin/pfctl/pf33.in @@ -0,0 +1,20 @@ +ext_if = "lo0" + +altq on $ext_if scheduler 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 + + diff --git a/regress/sbin/pfctl/pf33.ok b/regress/sbin/pfctl/pf33.ok new file mode 100644 index 00000000000..94131a189cd --- /dev/null +++ b/regress/sbin/pfctl/pf33.ok @@ -0,0 +1,15 @@ +ext_if = lo0 +altq on lo0 scheduler 1 bandwidth 10.00Mb tbrsize 6000 queue { deflt http ssh mail rsets } +queue deflt bandwidth 1023.99Kb priority 0 cbq( red ecn default ) +queue http bandwidth 1.50Mb priority 3 { http_vhosts http_cust1 } +queue http_vhosts bandwidth 614.38Kb priority 1 cbq( red borrow ) +queue http_cust1 bandwidth 512.00Kb priority 1 +queue mail bandwidth 1023.99Kb priority 1 +queue ssh bandwidth 100.00Kb priority 7 cbq( borrow ) +queue rsets bandwidth 7.32Kb priority 0 cbq( red ) +@0 block return in on lo0 inet all queue rsets +@1 pass in on lo0 inet proto tcp from any to any port = www keep state queue http +@2 pass out on lo0 inet proto tcp from any to any port = ssh keep state queue ssh +@3 pass in on lo0 inet proto tcp from any to any port = ssh keep state queue ssh +@4 pass out on lo0 inet proto tcp from any to any port = smtp keep state queue mail +@5 pass out on lo0 inet all keep state |