IPFW portforwarding / kernel question
Chuck Swiger
cswiger at mac.com
Sun Aug 22 10:08:23 PDT 2004
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
More information about the freebsd-questions
mailing list