Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 12 Nov 2000 18:44:16 -0800
From:      Chip <chip@wiegand.org>
To:        Justin Thomas <justin@jdthomas.net>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Port Forwarding
Message-ID:  <3A0F5580.15136507@wiegand.org>
References:  <3A0F4B2E.ED0F8AE9@jdthomas.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Justin Thomas wrote:
> 
> How do I enable port forwarding using FreeBSD?  I am using NATD and
> IPFW for my home network for connection over a cable modem.  I would
> like to route packets coming into a particular port on my BSD box to
> reroute to an IP Address on my local network.  How do I enable this?
> 
> Thanks,
> Justin
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message

I do this on my home network, to forward incoming http requests
to my
web server. I changed the natd.conf to this -

use_sockets yes
port 8668
alias xxx.xxx.xxx.xx           (enter your ipaddr provided by
your isp)
interface xxx                  (enter your nic with the above ip
addr)
redirect_port tcp xxx.xxx.xxx.xx:http 0:0 http   (enter ipaddr of
the server the 
                                                  requests are
sent to)

You will want to make this for whatever port you want to forward,
in my case
it's port80, http.
And of course you'll need the necessary lines in rc.conf
regarding natd. But
if you already have natd running that should be done.

-- 
Chip W.	
www.wiegand.org
Alternative Operating Systems


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?3A0F5580.15136507>