Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 Feb 2006 09:01:53 +0100
From:      B H <bernt@bah.homeip.net>
To:        Frank Staals <frankstaals@gmx.net>,  questions@freebsd.org
Subject:   Re: Redirecting Traffic with PF
Message-ID:  <4402B1F1.8080900@bah.homeip.net>
In-Reply-To: <4400CEBC.2010707@gmx.net>
References:  <43FF68DF.4050709@gmx.net>	<cce506b0602241306v605d4b5avc005b1515ad6b986@mail.gmail.com> <4400CEBC.2010707@gmx.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Frank Staals skrev:
> Noel Jones wrote:
> 
>> On 2/24/06, Frank Staals <frankstaals@gmx.net> 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 -> 192.168.2.11 port 
>>> 27902

Portmapping and redirections are set with ipnat.

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

rdr fxp0 0.0.0.0/0 port 80 -> 10.0.0.2 port 80 tcp

Change to suite yor setup.



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