Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Sep 2000 23:37:12 -0700
From:      "Crist J . Clark" <cjclark@reflexnet.net>
To:        "Thomas T. Veldhouse" <veldy@veldy.net>
Cc:        "FreeBSD-Questions, " <freebsd-questions@FreeBSD.ORG>
Subject:   Re: Port Forwarding
Message-ID:  <20000926233712.A81242@149.211.6.64.reflexcom.com>
In-Reply-To: <00c201c0281e$ab3b6420$0100a8c0@veldy.net>; from veldy@veldy.net on Tue, Sep 26, 2000 at 08:02:55PM -0500
References:  <00c201c0281e$ab3b6420$0100a8c0@veldy.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Sep 26, 2000 at 08:02:55PM -0500, Thomas T. Veldhouse wrote:
> I am having a very tough time finding any information on port fowarding.  I
> am trying to forward the incoming requests on the 8080 port of a FreeBSD 4.1
> machine to the 80 port of a Windows machine on the LAN.  I have been
> attempting this with
> 
> $fwcmd add fwd 192.168.0.3,80 tcp from any to any 8080 via rl0
> 
> to no avail.  It does not want to work.

And will not. This is not what ipfw fwd is for. Read ipfw(8),

             fwd ipaddr[,port]
                     .
                     .
                     .                         This is intended for use with
                     transparent proxy servers.

> Can anybody give me a suggestion as to how to do this?

If you are already doing NAT with natd(8), as the address you used
implies, see redirect_port on that manpage.
-- 
Crist J. Clark                           cjclark@alum.mit.edu


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




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