Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 Dec 2004 20:58:09 -0200
From:      Antonio Torres <antonio.torres@newspace.net.br>
To:        freebsd-pf@freebsd.org
Subject:   Re: NAT works but port forwarding does not
Message-ID:  <20041214205809.5bc3564f.antonio.torres@newspace.net.br>
In-Reply-To: <BAY103-DAV14F692401C0E2E5A4D2083E2AC0@phx.gbl>
References:  <BAY103-DAV17C00EC3123282040DE4DFE2AC0@phx.gbl> <200412141647.01789.pathiaki@pathiaki.com> <c2d45d6e0412141358aeb59da@mail.gmail.com> <BAY103-DAV14F692401C0E2E5A4D2083E2AC0@phx.gbl>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 14 Dec 2004 17:14:08 -0500
"Zeno Lee" <zeno_lee@hotmail.com> wrote:

...
> >> > 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

try a full sintax:

     rdr on $ext_if proto tcp from any to any port 80 -> $webserver port 80

works fine to me.



Antonio Torres
antonio.torres@newspace.net.br



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