Skip to content

Commit b14bbab

Browse files
committed
Improve QoS settings
1 parent ea5f354 commit b14bbab

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

ansible/roles/pf/templates/firewall-pf_conf.j2

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,17 @@ table <limited-internet-access> persist
1818
# don't filter on the loopback interface
1919
set skip on lo0
2020

21-
# Queues. NBN plan has 20Mb/sec up. Let's cap at 19500Kb/sec
22-
queue ext on $ext_if bandwidth 19500K
21+
# Queues. NBN plan has 20Mb/sec up. Let's cap at 18500Kb/sec (92% of 20M)
22+
# (per Mike Belophuov's 90-95% recommendation)
23+
# https://www.reddit.com/r/openbsd/comments/75ps6h/fqcodel_and_pf/doca4uv/
24+
queue ext on $ext_if bandwidth 18500K
2325
queue ext_dns parent ext bandwidth 100K min 50K
2426
# Low-delay ToS (ACKs and interactive SSH)
2527
queue ext_pri parent ext bandwidth 100K min 50K
26-
queue ext_def parent ext bandwidth 19300K max 19300K flows 1024 default
28+
queue ext_def parent ext bandwidth 18300K max 18300K flows 1024 qlimit 1024 default
29+
30+
# Effective queueing for downloading. 92% of 50M = 47M
31+
queue inbound on $int_if bandwidth 47M max 47M flows 1024 qlimit 1024 default
2732

2833
# scrub incoming packets
2934
match in all scrub (no-df random-id)

0 commit comments

Comments
 (0)