Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Feb 2006 15:06:22 -0600
From:      "Noel Jones" <noeldude@gmail.com>
To:        questions@freebsd.org
Subject:   Re: Redirecting Traffic with PF
Message-ID:  <cce506b0602241306v605d4b5avc005b1515ad6b986@mail.gmail.com>
In-Reply-To: <43FF68DF.4050709@gmx.net>
References:  <43FF68DF.4050709@gmx.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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 279=
02
>
> I think the problem might have something to do with the different
> network interfaces since the traffic is comming in on $extif and has to
> go to an computer connected to $intif ? And how can I do that ? Can I
> change it to:
>
> rdr on $extif inet proto udp from any port 27902 -> $intif 192.168.2.11
> port 27902
>
> ? Or what do I have to do to fix it.
>
> Thanks in advance,
>
> --
> -Frank Staals
>
>

I think you want something like
rdr on $extif inet proto udp from any to self port 27902 ->
192.168.2.11 port 27902

--
Noel Jones



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