Redirecting Traffic with PF

B H bernt at
Mon Feb 27 00:01:58 PST 2006

Frank Staals skrev:
> Noel Jones wrote:
>> On 2/24/06, Frank Staals <frankstaals at> wrote:
>>> Hey,
>>> I have an FreeBSD server/firewall running 5-Stable with PF. I want to
>>> redirect all udp traffic on port 27902 from the internet to a computer
>>> in my network. I used this rule but I have some problem with it:
>>> sometimes connections on that port are refused and I can't connect with
>>> other players ( it's for a online game ) :
>>> rdr on $extif inet proto udp from any port 27902 -> port 
>>> 27902

Portmapping and redirections are set with ipnat.

In your ipnat.rules - or whatever you call it - put something like this:

rdr fxp0 port 80 -> port 80 tcp

Change to suite yor setup.

More information about the freebsd-questions mailing list