From owner-freebsd-questions Sun Nov 12 18:41:44 2000 Delivered-To: freebsd-questions@freebsd.org Received: from pioneernet.net (pop3.pioneernet.net [208.240.196.25]) by hub.freebsd.org (Postfix) with ESMTP id 8ABC437B479 for ; Sun, 12 Nov 2000 18:41:38 -0800 (PST) Received: from wiegand.org [208.194.173.26] by pioneernet.net with ESMTP (SMTPD32-6.03) id A8F46D0290; Sun, 12 Nov 2000 18:59:00 -0800 Message-ID: <3A0F5580.15136507@wiegand.org> Date: Sun, 12 Nov 2000 18:44:16 -0800 From: Chip X-Mailer: Mozilla 4.74 [en] (X11; U; FreeBSD 4.0-RELEASE i386) X-Accept-Language: en MIME-Version: 1.0 To: Justin Thomas Cc: freebsd-questions@freebsd.org Subject: Re: Port Forwarding References: <3A0F4B2E.ED0F8AE9@jdthomas.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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