Date: Mon, 19 Jan 2004 22:38:19 +0200 From: Ion-Mihai Tetcu <itetcu@apropo.ro> To: "Shawn Guillemette" <shawn@guillemette.org> Cc: freebsd-questions@freebsd.org Subject: Re: port redirect Message-ID: <20040119223819.77754934@it.buh.cameradicommercio.ro> In-Reply-To: <000801c3debf$839c3c40$6a01a8c0@tacstation> References: <000801c3debf$839c3c40$6a01a8c0@tacstation>
next in thread | previous in thread | raw e-mail | index | archive | help
wrap please, tnx. On Mon, 19 Jan 2004 14:07:35 -0500 "Shawn Guillemette" <shawn@guillemette.org> wrote: > I have a freebsd machine set in place to do NAT for my local network. > I am now currently forwarding one port. I would like to forward > another port as well to the same address. This is what im using in > rc.conf to forward a single port to a single address. > > /sbin/natd -redirect_port tcp 192.168.1.106:XXXX XXXX -n sis0 > > where XXXX is the port number. > > > This also brings up another question. If was to find a need to port > forward to more then one address inside my netwrok. What would the > syntax look like. Something like: **buh*|>/home/itetcu# cat /etc/rc.conf | grep natd: natd_enable="YES" natd_flags="-f /etc/natd.conf -l -log_denied -m -u" **buh*|>/home/itetcu# cat /etc/natd.conf interface rl0 redirect_port tcp 192.168.0.10:80 80 redirect_port udp 192.168.0.13:110 110 log_ipfw_denied See natd(8) fro details. If you want to forward one port to more that one address, that is another question. -- IOnut Unregistered ;) FreeBSD user
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040119223819.77754934>