[EMAIL PROTECTED] wrote:
> 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.
You cannot limit download rates over the external interface. You can't
tell your ISP to limit download speed per packet-type, and once it
reaches the router, it's reached the router. Your router can only limit
the rate of packets that *leave* it.
What you have to do is limit the rate at which you feed your local
network, using a rule like this:
pass in on $int_if from $games_machine port >1024 to any port
{ gaming ports/ranges } tag $game_traffic keep state queue(game_in,
ack_in)
This rule will allow games packets in from the local network, tag them
with the $game_traffic tag, keep state so that replies are allowed, and
then add replies to the game_in queue (or ack_in for urgent packet types).
For the external interface, a matching rule should go something like:
pass out on $ext_if proto { udp, tcp } from any to any tagged
$game_traffic modulate state queue(game_out, ack_out)
You might want to split the internal-interface rule so that it allows
different ports for udp and tcp, but it depends on the game.
--
Bob