Best LAN Setup?

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!

Posted on Nov 21, 2012 7:38 AM

Reply
7 replies

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.

Nov 21, 2012 9:44 PM in response to redshift82r

Hi there. Thanks for your reply.


This is what I was more or less challenging, as my current setup is a bit flawed.

redshift82r wrote:


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.


iPad DNS requests aren't working for VHost "domains" (i.e. localtest.local) on my dev box. Not to mention other DNS issues, and some mail things that just aren't good. My new server arrives today, and I'm excited to get past all these items.


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


Cheers

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

Nov 21, 2012 10:13 PM in response to redshift82r

OK I tried that and I was/am still having problems. Secondary zone fully qualified domain name entry for localtest.local, pointing to 192.168.1.15, where Apache directives for VHosts should have taken over. No resolution on the LAN at all, outside of the hosts file pointing to the LAN IP.


What do your DNS entries look like?


In your example above, you're going to a machine, instead of a VHost. I can get to the machine, but it's the wrong location. All of my external queries go to a single box, the server.


Cheers

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?

Nov 21, 2012 10:41 PM in response to redshift82r

OK that's how I thought these would be entered. In Snow Leopard Server 10.5.8, it requires a zone name, fully qualified is forced, and an IP number. Mine isn't working. So, that's why I thought there might have been an issue with machine names, local VHost entries, and DNS settings. I'm going to get up to date and move forward today hopefully. I might have questions, but I think I have my head around it.


Thanks for the notes so far.


Cheers

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Best LAN Setup?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.