https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=210924

--- Comment #4 from Oliver Peter <li...@peter.de.com> ---
(In reply to Kristof Provost from comment #3)
Thanks, of course this is the better approach.
Looks good so far for me:

oliver@wayne pfctl % cat /etc/pf.conf
set timeout interval 5

altq on em0 hfsc bandwidth 1Mb queue { ftp, ssh, icmp, other }
queue ftp bandwidth 30% priority 0 hfsc (upperlimit 99%)
queue ssh bandwidth 30% priority 2 hfsc (upperlimit 99%)
queue icmp bandwidth 10% priority 2 hfsc (upperlimit 99%)
queue other bandwidth 30% priority 1 hfsc (default upperlimit 99%)
pass out quick on em0 inet proto tcp from any port 21 to any queue ftp
pass out quick on em0 inet proto tcp from any port 22 to any queue ssh
pass out quick on em0 inet proto icmp from any to any queue icmp
pass out quick on em0 all

pass keep state

oliver@wayne pfctl % sudo pfctl -f /etc/pf.conf
oliver@wayne pfctl % uname -a
FreeBSD wayne.lab.home.gfuzz.de 12.0-CURRENT FreeBSD 12.0-CURRENT #2
575d5bb(master)-dirty: Mon Jul 18 15:40:49 CEST 2016    
r...@wayne.lab.home.gfuzz.de:/usr/obj/usr/src/sys/WAYNE  i386



However, since I'm not familiar with the new CODELQ syntax, I'm not able to do
extended tests.  Perhaps you could point out some documentation as you
mentioned it has been imported into 10.3 already.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
freebsd-pf@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-pf
To unsubscribe, send any mail to "freebsd-pf-unsubscr...@freebsd.org"

Reply via email to