Re: port redirection with natd and ipfw



[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
_______________________________________________
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: correct way to block net access???
    ... machines you want restricted to the DNS server that you setup. ... Internet Zone rule you can define a list of trusted sites and disallow the ... >>> blank gateway address. ...
    (microsoft.public.windows.server.general)
  • Re: DNS replication on 2 domain on 2 forests
    ... the gateway address should be the switch/router address on each side ... These two domain are only on a switch no access to internet ... my server is configure like this ... dns server: 10.10.1.21 ...
    (microsoft.public.win2000.dns)
  • RE: Sudden connection problems on MS Windows Server 2003 SP1
    ... Your VPN clients are getting the wrong gateway. ... server, ... > right though - our public DNS server doesn't have records for the internal ...
    (microsoft.public.windows.server.general)
  • Re: Win2003 DNS issue
    ... Beside default gateway, you can also specify other services (e.g. DNS server ... IP address) on DHCP service. ...
    (microsoft.public.windows.server.setup)
  • Re: Aliasing a site
    ... server to associate training with a particular server. ... you can probably update your DNS server to forward or redirect ... inside your main site to help users. ...
    (microsoft.public.sharepoint.portalserver)