Date: Sun, 22 Aug 2004 13:08:13 -0400 From: Chuck Swiger <cswiger@mac.com> To: Henk <dontspamhenk@xs4all.nl> Cc: freebsd-questions@freebsd.org Subject: Re: IPFW portforwarding / kernel question Message-ID: <4128D2FD.9060707@mac.com> In-Reply-To: <Pine.LNX.4.58.0408221535430.18816@yafa.dds.nl> References: <Pine.LNX.4.58.0408221535430.18816@yafa.dds.nl>
next in thread | previous in thread | raw e-mail | index | archive | help
Henk wrote: > My wish is to forward all incoming tcp traffic that arrives on > 192.168.1.1:4265 to 10.0.10.151:4265 in the local network. > > Question 1: > Can somebody help me out with the right ipfw command to achieve this (or a > link to where *forwarding* is explained). ipfw fwd 10.0.10.151 ip from any to 192.168.1.1 4265 If you do this, you also need to convince the machine at 10.0.10.154 to accept traffic addressed for 192.168.1.1, or you need to use NAT instead. > Question 2: > Do I need to recompile my kernel with the IPFIREWALL_FORWARD option? Yes. -- -Chuck
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4128D2FD.9060707>