Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Apr 2004 16:31:49 +0200
From:      Marc "UBM" Bocklet <ubm@u-boot-man.de>
To:        questions@freebsd.org
Subject:   [solved]Re: port redirection with pf
Message-ID:  <20040414163149.466483e7.ubm@u-boot-man.de>
In-Reply-To: <407CF066.80804@elvandar.org>
References:  <20040414031512.58c59a08.ubm@u-boot-man.de> <407CF066.80804@elvandar.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 14 Apr 2004 10:03:50 +0200
Remko Lodder <remko@elvandar.org> wrote:

> > 
> > pf.conf:2: syntax error
> > pfctl: Syntax error in config file: pf rules not loaded
> > 
> 
> rdr on $nic proto tcp from any to $my_ext port $portext -> $int_host 
> port $portint
> 
> Your rdr rule however seems ok. Try using my version and report back..
> Note that he example is a real-working rule on my firewall (OpenBSD
> with pf).
> 
> cheers

Ok, I solved it.

The interface I do the redirection for needs to be the same as the
interface the traffic is going to.

For example:

rdr on tun0 proto tcp from any to tun0 port 21 -> 192.168.0.200 port 21


Thanks for your help, Remko and BSD Neophyte ;-)

Bye
Marc



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