Re: nat and ipfw, port forwarding
- From: usleepless@xxxxxxxxx
- Date: Sat, 27 Dec 2008 17:40:53 +0100
Hi Ricard,
On Fri, Dec 26, 2008 at 9:27 PM, Richard Yang <kusanagiyang@xxxxxxxxx>wrote:
hi,
i have a ssh machine behind a freebsd firewall with nat and ipfw.
how do i make port forwarding so internet can access the ssh machine?
thanx
i think you need to configure /etc/ipnat.conf ( read 'man ipnat' ). this is
a example definition:
rdr em1 0.0.0.0/0 port 2223 -> 192.168.1.96 port 22
( this redirects incoming traffic on outside-interface em1 port 2223 to an
internal machine on port 22 )
also, include "firewall_nat_enable" in your rc.conf ( read 'man rc.conf' )
to configure the settings from ipnat.conf, run "ipnat -C -f /etc/ipnat.conf"
regards,
usleep
--_______________________________________________
Best Regards
Richard Yang
richardyang@xxxxxxxxxxxxxxx
kusanagiyang@xxxxxxxxx
_______________________________________________
freebsd-questions@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "
freebsd-questions-unsubscribe@xxxxxxxxxxx"
freebsd-questions@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"
- Follow-Ups:
- Re: nat and ipfw, port forwarding
- From: Richard Yang
- Re: nat and ipfw, port forwarding
- References:
- nat and ipfw, port forwarding
- From: Richard Yang
- nat and ipfw, port forwarding
- Prev by Date: Re: strange fsck results
- Next by Date: Re: Wireless router?
- Previous by thread: Re: nat and ipfw, port forwarding
- Next by thread: Re: nat and ipfw, port forwarding
- Index(es):
Relevant Pages
|