Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 4 May 2000 15:44:04 +0200
From:      "Olivier Cortes" <olivier.cortes@free.fr>
To:        <jesus@correo.futurepicts.com>
Cc:        "FreeBSD Questions" <freebsd-questions@FreeBSD.org>
Subject:   RE: Public access to a port (server) under nat 
Message-ID:  <EJEFLAEIHOBBKCGOKMJJCEGACBAA.olivier.cortes@free.fr>
In-Reply-To: <39116580.BEE862FA@innova.rcanaria.es>

next in thread | previous in thread | raw e-mail | index | archive | help
yes it is possible, using the port_translation feature from natd.

the man is clear on this option.

i've got the same config as you have, here is a part of my rc.conf:

natd_enable="YES"
natd_interface="dc0"
natd_flags="-dynamic -redirect_port tcp syrenna:25 25 -redirect_port tcp syrenna
:21 21 -redirect_port tcp syrenna:80 80 -redirect_port tcp syrenna:110 110"
defaultrouter="62.161.104.1"

COMMENTS: dc0 is my public interface,
		-dynamic is because i'm on the cable, and my ISP uses DHCP
		syrenna is 192.168.0.1 (THE server) and its IP is known from /etc/hosts

this config says that any www/pop/smtp/ftp request on my fiwall is translated to my internal server.

====> if someone has something to say about my config, it will be very welcomed. I'm open source free minded. In particular anything
related on security of this kind of config...

greets

olive
www.Deep-ocean.net

> -----Message d'origine-----
> De : owner-freebsd-questions@FreeBSD.ORG
> [mailto:owner-freebsd-questions@FreeBSD.ORG]De la part de Jesus
> Envoyé : jeudi 4 mai 2000 13:57
> À : freebsd-questions@freebsd.org
> Objet : Public access to a port (server) under nat
>
>
> Hello
>
> I have a freebsd box with two nics fxp0 for public and fxp1 for private
> lan. I have enabled the natd service and it run ok. In private lan I
> have servers web, windows, database ... they actually private but I want
> someone open for public access. It's possible using nat?. It's possible
> view the windows servers?
>
> Thanks.
>
> Jesus Fernandez
> VENTO IP
> Tenerife, Canary Islands Spain
>
>
>
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message
>



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?EJEFLAEIHOBBKCGOKMJJCEGACBAA.olivier.cortes>