Port forwarding.

Daniel A. ldrada at gmail.com
Mon Jan 23 22:10:23 PST 2006


Hello people,
Just yesterday I got my first experience with ipfilter and ipnat. I
followed this guide:
http://www.bsdguides.org/guides/freebsd/networking/ipfilter.php to the
point.

ifconfig -a gives this output about the relevant NIC's:
sis0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=8<VLAN_MTU>
        inet6 fe80::20a:e6ff:fe53:fc1e%sis0 prefixlen 64 scopeid 0x2
        inet 192.168.0.1 netmask 0xffffff00 broadcast 192.168.0.255
        ether 00:0a:e6:53:fc:1e
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
rl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=8<VLAN_MTU>
        inet6 fe80::2b0:2ff:fe00:27f3%rl0 prefixlen 64 scopeid 0x3
        inet 87.50.69.60 netmask 0xffffff80 broadcast 87.50.69.127
        ether 00:b0:02:00:27:f3
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active

I have been googling and reading ifconfig papers all day yesterday, in
the search for how to do simple port-forwarding, but nothing have
worked.
So, this is my final resort: How would I forward the ports 9541 (TCP)
and 9542 (UDP) to 192.168.0.2 on my LAN?


More information about the freebsd-questions mailing list