Apple Event: May 7th at 7 am PT

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

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.

User uploaded fileUser uploaded fileUser uploaded fileUser uploaded fileUser uploaded fileUser uploaded fileUser uploaded file

Posted on Apr 16, 2015 12:16 PM

Reply
8 replies

Apr 16, 2015 12:27 PM in response to VitaPrimo®

———SORRY, THE EDITOR SCREWED UP MY TEXT DOODLES———

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:

User uploaded file

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:

User uploaded file

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:

User uploaded file

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.

Apr 16, 2015 3:51 PM in response to amiga1000

The thing is that, on Server.app, the interface serving the Internet and DHCP becomes not available once Internet Sharing is turned on.
The computers connecting to the interface are served with IP addresses in the 192.168.2.0 subnet.



User uploaded fileUser uploaded file

Even the area designated for networking at AppleCare couldn't help me, they elevated me two times until I was speaking to someone in English—my region is in Spanish.

Apr 16, 2015 4:20 PM in response to amiga1000

I connect to several VPN providers and sometimes a router can't make a connection because of some parameter on a remote server. OS X always connects, and in any protocol, what's more, it can switch on the fly and be controlled via access easily on the Finder via Screen Sharing. I remember in previous versions that it specifically asked for two network adapters, now that's gone. I guess I could try downgrading my oldest Mac, setting it up then upgrading it back to Yosemite to see how the Settings migrated but it seems like such a hassle: my oldest Mac is a huge iMac (as newer Macs cannot be downgraded from the OS they came with) and the network closet is not the biggest of spaces. Also, I could just buy a cheap Windows box and tinker with it.


Thanks for your help though.

Set up Yosemite Server as a router/DHCP server with dual NIC adapters

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