port redirection with pf

Remko Lodder remko at elvandar.org
Wed Apr 14 01:03:55 PDT 2004

> 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 



Kind regards,

Remko Lodder
www.mostly-harmless.nl A Dutch community for helping newcomers on the 

More information about the freebsd-questions mailing list