Set up Yosemite Server as a router/DHCP server with dual NIC adapters
Hi,
I'm trying to replace my main router with OS X Server but I can't quite get it to work. My Server has two network adapters, one connects to an actual router that connects to the internet and the other one connects to the intranet. The problem is that I cannot make it to actually pass the internet connection to the intranet while assigning IP addresses. This is something every router does but I can't get my Mac to do it. I tried the Internet Sharing way on System Preferences but then I can't assign fixed IP addresses. OS X does automatic DHCP without possibility to edit the address pool or range.
I need my Mac to be between the networks and not a regular Server connected to another router as it was before because I need it to dial a VPN connection and share it on the Intranet while giving out fixed and disposable IP addresses. My old setup was like this:
******************************************************************************** ******************************************************************************** **********************
[Internet] — — — — [ISP-issued modem] — — — — [DSL dial-up router] — — — — [VPN link router] — — — — [DHCP router] — — — — [Intranet]
|
[OS X Server ]
******************************************************************************** ******************************************************************************** **********************
I have a dedicated VPN router to reduce each router's load and that way I can just easily turn the VPN link on and off as I please without messing with other stuff. DMZs are set in each router as are several rules to forward all traffic correctly. This worked with no issues at all.
Now I'm trying to set it up like this:
******************************************************************************** ******************************************************************************** **********************[Internet] — — — — [ISP-issued modem] — — — — [DSL dial-up router] — — — — [OS X Server] — — — — [Intranet]
******************************************************************************** ******************************************************************************** **********************
Effectively replacing the router that makes the VPN connection and the router that addresses IP distribution with just OS X Server. One DD-WRT or Ubiquiti router can actually replace everything from the Internet to the Intranet on my setup, and I have one of both but I want to use OS X Server and give OS X full control over my network. After digging around and reading several manuals for the software involved I did set up the second adapter to share the IP addresses from the pool on Server.app's DHCP tab but the internet connection won't jump over to the second adapter. As I stated before, I can just turn on Internet Sharing but then it doesn't assign fixed IP addresses or even the subnet. Right now I set up a temporal unsecured network to connect other devices besides the server to the internet while I try to fix this.
It looks like this:
******************************************************************************** ******************************************************************************** **********************[Internet] — — — — [ISP-issued modem] — — — — [DSL dial-up router] — — — — [OS X Server] — — X — — [Intranet]
|
( ( ( [Unsecured AP] ) ) )
******************************************************************************** ******************************************************************************** **********************
I had fun mapping stuff with text though. Anyway, If any of you know how to fix this I'd be grateful forever. I'm attaching screenshots of the configuration so you can point it out where I'm screwing it up.
Thanks again.