[solved]Re: port redirection with pf

Marc UBM Bocklet ubm at u-boot-man.de
Wed Apr 14 07:26:51 PDT 2004

On Wed, 14 Apr 2004 10:03:50 +0200
Remko Lodder <remko at 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 -> port 21

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


More information about the freebsd-questions mailing list