Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 6 Jun 2008 14:56:06 +0100
From:      RW <fbsd06@mlists.homeunix.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: Queuing and Prioritization with PF
Message-ID:  <20080606145606.7f5aee82@gumby.homeunix.com.>
In-Reply-To: <8d23ec860806051807p719f8ea4mfb70ed107539ecc2@mail.gmail.com>
References:  <8d23ec860806051807p719f8ea4mfb70ed107539ecc2@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 5 Jun 2008 21:07:49 -0400
Schiz0 <schiz0phrenic21@gmail.com> wrote:

> Hey,
> 
> I have pf running as the firewall on a web and IRC box. I'd like to
> setup a bit of prioritization. I want ssh to be a higher priority than
> any other traffic. I've read up on Class Based Queuing and Priority
> Queuing.  If I understand it correctly, priority queuing will transfer
> ALL packets with higher priority before ANY of the lower-priority
> packets. So if I'm transferring a file via SCP, all other traffic will
> stop until the transfer is complete? I don't want other traffic to
> stop completely, I just want ssh to have a higher priority. Should I
> use class-based then?


Possibly, but from what you have said I think you can get away with
priority queueing using TOS. ALTQ allows you to specify two queues per
rule. The first is for normal traffic, and the second is for empty acks
and packets with a "low-delay" TOS.  If you specify the same two
queues for all TCP traffic then you should get prioritization for
interactive SSH, but not SCP. Take a look at pf.conf(5) for examples.







Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080606145606.7f5aee82>