Accessing sites via LAN

Discussion in 'Installation/Configuration' started by rabrol, May 7, 2007.

  1. rabrol

    rabrol New Member

    Hi all.

    I know I read this somewhere, but I can't find where! Hence asking in here....

    How do I access my ISPConfig sites when I am on the same LAN?
    I can access them fine from outside the network via their domain names, and I don't really want to go change the host files on a bunch of PCs.

    The server IP address is 192.168.2.203. If I use the following domain names, how do I see the sites from within the LAN

    1 - mydomain1.dyndns.org
    2 - mydomain2.dyndns.org

    Thanks!
    Rob
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Either you change the hosts file or you configre your router to allow connections to your dyndns domains. This should works with most routers, but some routers have IP spoofing filters activated, that prevent the access of your external IP / domain from internal workstations.
     
  3. rabrol

    rabrol New Member

    Interesting

    So there is no way to get to a site purely via IP? e.g.
    192.168.203/web3/index.php

    I run smoothwall express as my router & firewall. Any hints as to how I ould configure it to allow the domain requests to go through (although it seems a bit of a waste going to the server via the web when it is in the same building!).

    Thanks again,
    Rob
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    No.

    THere is one other possibility that I forgot. Configure all your workstations so that they use one of your own dns servers, e.g. the bind server on the ispconfig server as dns server. Then define domains like mydomain1.int, mydomain2.int etc. on the ispconfig bind server and let them point to the internal IP addresses of the websites. Now assign mydomain1.int as co-domain to the first website and you should be able to access the first website from your internal workstations when you enter mydomain1.int in the browser.
     
  5. Zandooy

    Zandooy New Member

    How I did it

    When I would try to access my domain from within my local network, I would be redirected to my router's settings like I was entering 192.168.1.1 to configure my router. What I did was utilize a feature of my router called "DNS Server" which allowed me to make a list of domains and redirect them to my server's local IP address. For example, I wanted to access zandooy.com from within my network so I added zandooy.com with 192.168.1.21 to the DNS Server list in my router. Now when I browse to http://zandooy.com it redirects to my server inside my LAN located at 192.168.1.21.

    Hope this helps,
    Zandooy
     

Share This Page