Re: nat and ipfw, port forwarding



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"



Relevant Pages

  • Re: Ports / internal sbs website
    ... you have opened FTP for access from the internet with that option. ... internal use you don't need port 21 inbound open at all. ... >> Regards, ...
    (microsoft.public.windows.server.sbs)
  • VC++ Com and Port 445?
    ... Does VC++ COM over internet allow to use PORT no 445??? ... With Thanks and regards, ... Prev by Date: ...
    (microsoft.public.vc.language)
  • VC++ Com and Port 445?
    ... Does VC++ COM over internet allow to use PORT no 445??? ... With Thanks and regards, ... Prev by Date: ...
    (microsoft.public.vc.atl)
  • RE: Using RWW to access companyweb
    ... I have checked from another computer with a direct connection to the ... internet. ... So clearly it is a problem with port 444 on the ... Regards, ...
    (microsoft.public.windows.server.sbs)
  • Re: Linux als Router
    ... # Enter all trusted network interfaces here. ... # which should be available to the internet and set FW_ROUTE to yes. ... space separated list of ports, ... # Packets to silently reject without log message. ...
    (de.comp.os.unix.linux.misc)