Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Nov 2006 02:16:25 -0300
From:      "Nilton Volpato" <nilton.volpato@gmail.com>
To:        freebsd-questions@freebsd.org, ipfw@freebsd.org
Subject:   Re: port redirection with natd and ipfw
Message-ID:  <27fef5640611232116o6e26cbcbx230d13981270bb89@mail.gmail.com>
In-Reply-To: <D6B5375CBC761B4BAD78E414B4BB55724A21F9@mercury.rac.com.au>
References:  <D6B5375CBC761B4BAD78E414B4BB55724A21F9@mercury.rac.com.au>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
[Fratiman Vladut]
> This is because u try to access an ip that have same ip like your
> gateway, but from internal lan, so packets are sends to gateway but
> cannot be redirected back to the http server according with redirect
> rules.
> To resolve this situation, configure a simple dns server on your
> gateway, and make a zone with your domain pointed to the internal ip.
> Then configure the computers clients to ask your dns server. This is
> easily done via dhcp.
> Your dns server need to be configured to forward request's for unknow
> domains to the autoritarive public dns servers.
> --
> Best regards,
>  Fratiman

[Russell Wood]
> I had a similar setup once and used Split DNS with BIND. So, if you
> requested example.com on 192.168.0.0/24 then you'd get the internal IP,
> otherwise you got the external IP.
>
> Regards,
> Russell Wood

Thanks guys,

But Split DNS does not work in my case. Because I have different
services on different machines, and the dns will map one name (and all
ports associated to it) to one machine.

Is there any solution that will work without using split dns?

Thanks,
-- Nilton



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?27fef5640611232116o6e26cbcbx230d13981270bb89>