Hey, I have been looking around everywhere about how to prioritize my
bandwidth for gaming purposes. So far, I have the outgoing bandwidth
working fine, but I cannot throttle the incoming bandwidth to optimize
it for gaming. Whenever I add a rule such as:
pass in on $ext_if from any to $int_if:network port (gaming ports)
it seems to not catch any traffic.
Here are the main parts of my ruleset:
(cs_out) = counter-strike bandwidth
altq on $int_if cbq bandwidth 1.5Mb queue { std_in, ssh_in, dns_in,
fs_in }
queue fs_in bandwidth 10% priority 0 cbq(borrow)
queue std_in bandwidth 80% priority 1 cbq(default,borrow)
queue ssh_in bandwidth 5% priority 4 cbq(red,borrow)
queue dns_in bandwidth 5% priority 5 cbq(borrow)
altq on $ext_if cbq bandwidth 256Kb queue { std_out, ssh_out, dns_out,
ack_out, fs_out, cs_out }
queue fs_out bandwidth 10% priority 0 cbq(borrow)
queue std_out bandwidth 30% priority 1 cbq(default,borrow)
queue ssh_out bandwidth 10% priority 4 cbq(red,borrow)
queue dns_out bandwidth 10% priority 5 cbq(borrow)
queue ack_out bandwidth 10% priority 6 cbq(borrow)
queue cs_out bandwidth 30% priority 7 cbq(borrow)
pass out on $ext_if inet proto tcp from ($ext_if) to any modulate state
queue(std_out,ack_out)
pass out on $ext_if inet proto { udp icmp } all keep state queue
std_out
pass out on $ext_if inet proto { tcp udp } from ($ext_if) to any port
domain keep state queue dns_out
pass out on $ext_if inet proto tcp from ($ext_if) to any port ssh flags
S/SA keep state queue(std_out,ssh_out)
pass out on $ext_if inet proto { udp tcp } from ($ext_if) to any port {
6881:6889 6346 4662 } keep state queue(fs_out)
pass out on $ext_if inet proto { udp tcp } from ($ext_if) to any port {
27000:27020 } keep state queue(cs_out)
I can add more of the ruleset if needed, but I just want to know how to
prioritize the incoming bandwidth for cs.
Thanks,
William