Problem with NAT

Translation of the original in Catalan. Read it in: CatalàCastellano

Next I will try to describe and solve a very specific problem that many of us have with NAT. In fact, on a home network it never becomes a problem but on a corporate network it can become one, as has happened to me....

The idea is:

If I have an intranet with a single IP and my external users access my web services through this IP and by means of a DNAT against the server.

How can I make the internal users also able to access this same IP to consult the services and not do it through the IP of the intranet.

Summarized in one sentence it would be something like:

Accessing an internal IP through an external IP of the Firewall from inside the INTRANet.

Next I give you the URL where I have posted the document in which I try to explain the problem in more detail and the solution:

http://oriol.homeip.net/Documents/NAT\_problema.pdf

4 comments

Comments from the old blog, as they were written. Comments are closed.

  1. natanael

    collons ori, per un moment pensava q era jo el problema.

  2. Oriol Rius

    En la pràctica li he trobat un error en el q no havia caigut a l'hora
    d'implementar la solució. El tema esta en que si usem algun sistema
    d'autenticació q es fixi en la IP aquest no funcionarà
    bé, ja q cada cop ens connectem al servidor al contrari del q podria
    semblar ho fem amb una IP diferent sempre del rang d'ips que em triat,
    però al cap i a la fi diferent.

  3. Oriol Rius

    El pof ha trobat un patch pel netfilter q sembla una solució més
    correcta q la q vaig plantejar jo. Almenys la menjada d'olla és
    més petita. Encara no ho he pogut provar però es pot trobar
    més informació a:



    http://netfilter.samba.org/documentation/HOWTO//netfilter-extensions-HOWTO-4.html#ss4.4

  4. Oriol Rius

    La solució definitiva i més professional q he trobat finalment
    sobre el problema ha estat l'split-dns. O sigui, implmentar una DNS amb vistes
    implementat a la versió 9 del BIND. Mireu-vos la ordre view del
    named.conf i veureu q és trivial implementar-lo.



    Bàsicament del q es tracte és de respondre a la petició q
    ens fan els clients del servei DNS de diferent forma segons d'on ens vingui la
    petició.



    Jo ho he fet amb un cop d'ull ràpid al article q vaig publicar:
    DNS: tot el que s'ha d saber