Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

reptarwilleatu

macrumors 6502
Original poster
Could someone help me understand some parts of this tutorial and what i might be doing wrong in following it to try and set up Server VPN to route my traffic out to the public internet when i use my iPhone remotely to connect to the VPN running on my Mac (like when on public wifi)?

https://macminicolo.net/blog/files/Setup-a-VPN-server-with-El-Capitan-server .html


I'm confused what exactly the purpose of setting up a VLAN is and what i should be putting into the first box where it says "IP Address" when i'm manually configuring it. Also the whole
"nat on en0 from 10.0.0.0/24 to any -> (en0)
pass from {lo0, 10.0.0.0/24} to any keep state"
is really confusing me in terms of, i realize i need to replace "10.0.0.0.24" with what my local setup has, but it would help me greatly if i knew what it was doing. I.E. what each command is saying as far as where X is being routed to Y so i can understand what i need to replace those with. My local setup is using "10.0.0.x" and i have moved my router to 10.0.0.1.

This is what the routing table looks like at the beginning when i run Netstat in Network Utility


Routing tables

Internet:

Destination Gateway Flags Refs Use Netif Expire

default 10.0.0.1 UGSc 209 2 en0

default 10.0.0.1 UGScI 6 0 en1

default 10.0.0.1 UGScI 0 0 vlan0

10/24 link#4 UCS 7 0 en0

10/24 link#5 UCSI 9 0 en1

10/24 link#10 UCSI 0 0 vlan0


The odd thing is that after this, when it gets into the actual IP's of devices on my local network, it shows "/32" at the end instead of "/24" like there at the beginning. I know that is how many bits, but does that mean i need to change the end of "lo0, 10.0.0.0/24" to "/32"?

I do have the latest version of OS X Server installed, but i had first set up the VPN with iVPN which uses the same Apple built in processes as Server to run a VPN.

Any help would be very much appreciated! Thanks
 
Last edited:
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.