[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Prioritizing empty TCP ACKs with pf and ALTQ with exemptions?

On Tuesday, Apr 8, 2003, at 01:15 US/Pacific, Erik Paulsen Skålerud wrote:

Or, well, it works, in a way. The prioritizing of empty TCP ACKS stops to
work, the bandwith to the servers are running at 10mbit again.

# ACK queues
altq on $ext_if cbq queue { q_servers, q_outside }
queue q_servers priority 0
queue q_outside priority 7 bandwidth 210Kb { q_pri, q_def }
queue q_pri priority 7
queue q_def priority 1 cbq(default)

# ALTQ Tuning
pass out on $ext_if proto tcp from any to any flags S/SA \
        keep state queue q_outside

pass in on $ext_if proto tcp from any to $ext_if flags S/SA \
        keep state queue q_outside

You should keep using "queue (q_def, q_pri)" here, as you did before. q_outside's main purpose in this case is to establish a bandwidth limit for q_def and q_pri; nothing should be assigned to q_outside itself.