Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 Dec 2004 16:34:22 -0500
From:      "Zeno Lee" <zeno_lee@hotmail.com>
To:        <freebsd-pf@freebsd.org>
Subject:   NAT works but port forwarding does not
Message-ID:  <BAY103-DAV17C00EC3123282040DE4DFE2AC0@phx.gbl>

next in thread | raw e-mail | index | archive | help
I am just starting off with PF.  I had it compiled into the kernel in 5.3 
stable.  I have not setup any rules yet.  I'm just trying to set up NAT and 
forwarding.

My network setup

Internet <----> em0 | FreeBSD | em1 <----->  LAN


my pf.conf file only has:

ext_if="em0"
int_if="em1"
webserver="192.168.1.54"

nat on $ext_if from $int_if:network to any -> ($ext_if)
rdr on $ext_if from any to any port 80 -> $webserver


NAT works, however, I cannot get port forwarding to work.  I am testing it 
vial a remote  computer on the internet whose packets only come through em0.

Am I missing anything here? 



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