1

I would like to be able to use my home server (2012 Mac Mini) as a OpenVPN client with two network interfaces. My plan is to connect a small switch with an Apple TV and Roku to one thunderbolt ethernet port and then connect the internal ethernet port to my wider network for internet access, sort of like this;

Apple TV 3>>>
              dumb switch >>> eth1 >>> Mac Mini > OpenVPN > eth0 >>> fibre router
Roku 2 XS >>>

Any ideas what I would need to do to make this work?

1 Answer 1

1

Mostly, you can just overload the one ethernet hardware port with two or more IP settings. As long as your switch can handle things, this works the simplest.

Or you could drop an thunderbolt to ethernet adapter on the back of the Mac Mini and have two hardware interfaces to let the Mac Mini sit between the two networks and route as needed. You would run OpenVPN on the adapter en0 which connects to fiber.

All of this is controllable over the normal system preferences for networking but I've been able to accomplish all of what you describe without needing the unix command line. Just drag the default route interface to the top of the service order listing and you should be good to go.

2
  • Really? So as long as en0 is above en1, when I connect to the VPN it'll choose en0 as the default? I didn't know you could do that through sys prefs. Amazing, thanks very much!
    – sgtbeano
    Commented Feb 24, 2013 at 15:56
  • Yes - and you can use netstat -nr or the network utility to examine the routing table. But, when you order the interfaces, traffic goes to the default route interface unless there is a specific routing rule for a smaller subnetwork. Choosing your networks appropriately will let you do exactly what you choose.
    – bmike
    Commented Feb 24, 2013 at 16:20

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .