Skip navigation

Best LAN Setup?

3513 Views 7 Replies Latest reply: Nov 21, 2012 11:53 PM by redshift82r RSS
BioRich Level 1 Level 1 (65 points)
Currently Being Moderated
Nov 21, 2012 7:38 AM

Hi folks.

 

Well, I'm upgrading to Mountain Lion Server.  Still using Snow Leopard Server until I get the new Mini Server.  Excited. 

 

Reason I'm moving is that I'm having DNS issues with the current system, and the technologies have changed where I can't edit things like hosts files on my iPad. 

 

So I have an opportunity to change how my whole LAN is set up.  I think I am going to go with subdomain machine names, and for my web development, apache directives for domains.

 

Is there a better way to do this?  I'm having problems having my iPad find a Virtual Host on my workstation.  I have static internal IP's, but that doesn't provide a targeted realm on my workstation.  I also park multiple domains on my static IP on the outside. 

 

Any insight? 

 

Cheers

Mac Pro, OS X Mountain Lion (10.8.2), Hypercard UG!
  • redshift82r Level 2 Level 2 (325 points)
    Currently Being Moderated
    Nov 21, 2012 9:25 PM (in response to BioRich)

    Well, heres my two cents worth with an explanation up front.

     

    ADSL2+ with Dynamic IP Address coming into a Billion 7800N Wireless ADSL2+ Modem / Router

     

    Mac Pro  , 2 iMac's, MacBook, 2 x windows laptops ( school supplied for kids!), 1 Ubuntu laptop, 2 iPads, 3 Ipod Touches, 3 iPhones and other ancillary stuff!

     

    1 Ethernet Bridge

    1 Powerline Bridge

    1 Netgear Wireless Router providing wireless lan

    1 TimeCapsule providing wireless lan

    1 Netgear NAS

    2 x Powerware 5110 UPS

     

    Mac Pro runs

    OS X Server with 3 public domains running Mail / Web / Wiki / DNS / Address Book / Calendar / OD / Profile Manager and two Minecraft Servers for my son ( !)

     

    Web sites served on OS X

    1st domain -  OSSEC ( via webapp and directory alias) , Webmail ( via webapp and directory alias) , Wiki, 

    2nd domain - Drupal CMS, SugarCRM CE,  Drupal Dev site.

    3rd domain - HTML site

    1st Domain also has webapps that point to the Ubuntu VM and redirect mycomain.com/OpenNMS etc as well as an R Server (RStudio) on one of the iMac's and the Netgear NAS.

     

     

    Ubuntu Server running  under a VM on the OS X Server with separate tcp address

    1. Runs NetworkUPSTools for UPS Monitoring and auto shutdown of all equipment  (problem with the NUT USB driver for OS X, but works perfectly under Ubuntu)  Has a html / CGI interface for graphical monitoring

    2. Runs OPENNMS and Cacti - also both addressable via http.

     

    DNS has 3 Zones with 1 nameserver and MX record per zone pointing to the OS X server + machine records for the iMacs and the Netgear NAS.

     

    Each Zone has an alias for any web site served by Web Sites in OS X Server

     

    OS X Server DNS serves all client requests in the house so that I dont need different setups for the 3G iPads and iPhones outside of the house.  (i.e. mail server address is a fqdn of the server) VNC apps work inside or outside the house with the same host address etc.

     

    Multiple webapps for apache redirects within the network for the above

    Here's an example of one of the webapps for proxy requests to a different machine ( actually the Ubuntu VM).

    It puts a dinky little Webapp selector within the Server.app Website tabs.

     

     

     

    <?xml version="1.0" encoding="UTF-8"?>

    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">

    <plist version="1.0">

    <dict>

              <key>name</key>

              <string>com.mydomain.moria.proxy</string>

              <key>displayName</key>

              <string>MoriaProxy</string>

              <key>proxies</key>

              <dict>

                        <key>/moria</key>

                        <dict>

                                  <key>path</key>

                                  <string>/moria</string>

                                  <key>urls</key>

                                  <array>

                                  <string>http://10.0.0.89</string>

                                  </array>

                        </dict>

              </dict>

              <key>installationIndicatorFilePath</key>

              <string>/var/moriaproxy.flag</string>

              <key>requiredModuleNames</key>

              <array>

                        <string>proxy_module</string>

              </array>

              <key>requiredWebAppNames</key>

              <array/>

              <key>sslPolicy</key>

              <integer>0</integer>

    </dict>

    </plist>

     

    Hope that helps.

  • redshift82r Level 2 Level 2 (325 points)
    Currently Being Moderated
    Nov 21, 2012 10:08 PM (in response to BioRich)

     

    Do you have your iPad seeing realms inside your dev box? 

     

     

    Because I use the OS X Server as the DNS provider for the internal network, it works seamlessly as long as you have a machine record set up in the zone.  e.g.

     

    Primary Zone  1 - mydomain.com

    Nameserver Rec - server.mydomain.com

    Machine Rec - server.mydomain.com   10.0.0.80

    Machine Rec - moria.mydomain.com     10.0.0.89

    Machine Rec - nas.mydomain.com       10.0.0.100

    Machine Rec - myimac.mydomain.com  10.0.0.90

     

    My Network Setup for everything is:

     

    Manual IP address for those machinres that need a static IP

    DHCP and Router/Gateway 10.0.0.125

    DNS 10.0.0.80  mydomain.com

     

    Because I have apache proxy's setup (like my example) when I am connected to wifi with the iPad I can type

     

    http://moria.local ( DNS Lookup) or http://server.local/moria or http://mydomain.com/moria (DNS Lookup + apache Proxy redirect)

     

    Outside the wifi network I type http://mydomain.com/moria to get to 10.0.0.89:80 or http://mydomain.com/nas to get to 10.0.0.100:80

     

     

    Cheers

    Gerry

  • redshift82r Level 2 Level 2 (325 points)
    Currently Being Moderated
    Nov 21, 2012 10:31 PM (in response to BioRich)

    OK, back up a step - I was just editing my response re the VHost issue.

     

    So I also have multiple Vhosts running under OS X Server.

     

    ie.  crm.mydomain.com - SugarCRM

    crm2.mydomain.com - SugarCRM DEV

    ossec.mydomain.com - OSSEC Web Interface via cgi

    www.mydomain.com - Drupal CMS

    www2.mydomain.com - Drupal CMS DEV

    webmail.mydomain.com - Roundcube

     

    Each one of these requires an alias entry in the Server DNS setup like:

     

    Domain - mydomain.com

    Host - crm

    Destination - server.mydomain.com

     

     

    Does that answer the question?

  • redshift82r Level 2 Level 2 (325 points)
    Currently Being Moderated
    Nov 21, 2012 11:53 PM (in response to BioRich)

Actions

More Like This

  • Retrieving data ...

Bookmarked By (0)

Legend

  • This solved my question - 10 points
  • This helped me - 5 points
This site contains user submitted content, comments and opinions and is for informational purposes only. Apple disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. All postings and use of the content on this site are subject to the Apple Support Communities Terms of Use.