Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 Nov 2000 22:20:40 -0800
From:      "Crist J . Clark" <cjclark@reflexnet.net>
To:        Fabrizzio Batista <Fabrizzio.Batista@lojasobino.com.br>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: NAT with redirect_port
Message-ID:  <20001117222040.H9740@149.211.6.64.reflexcom.com>
In-Reply-To: <000701c050d1$afc84ae0$65010180@lojasobino.com.br>; from Fabrizzio.Batista@lojasobino.com.br on Fri, Nov 17, 2000 at 06:05:06PM -0200
References:  <000701c050d1$afc84ae0$65010180@lojasobino.com.br>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Nov 17, 2000 at 06:05:06PM -0200, Fabrizzio Batista wrote:
> 
>     Hi gurus,
> 
>     Iīm using NAT with redirect_port in SMTP and everything is fine when the
> clients are out of my internal net. But when I try to access my internal
> Server from a internal client, the redirect_port in natd not work.
> 
> 200.12.1.1   200.12.1.2        192.168.1.2                192.168.1.1
> Internet -------> Server With NAT ---------> SMTP Server
>     From 200.12.1.1 : telnet 200.12.1.2 25 -> Itīs Works
> 
> 200...    192.168.1.2/ ----------Internal Client
> Server With NAT -----------> SMTP Server  -> NOT WORK
>     From 192.168.1.3: telnet 200.12.1.2 25 -> Itīs not work
> 
> natd -n rl0 -redirect_port 192.168.1.1:25 25
> 
> So, anybody help me ???

When someone tries to access the internal server from the internal
network, it goes to the NAT machine which accepts the packet. It is
never run through the natd(8) process since the packet never gets
processed on the external interface (the one with the divert(4) rule).

It is very ugly to try to fix this. It is much easier to use the
local name on the internal machines. If you really want to go the
other way, it involves running another instance of natd(8) on the
internal interface.
-- 
Crist J. Clark                           cjclark@alum.mit.edu


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?20001117222040.H9740>