Trouble connecting to VPN while outside local network

Hi,


I have setup a VPN on OS X Server and opened all the ports (Airport had this already put in for some reason) and I am using No-IP as the address and I can connect to the VPN within the local network using the No-IP address but when I go outside of the address and I have the ports point towards my Mac Mini running OS X Server (with Mavericks) but when I try to connect outside of the local network I get "The PPTP-VPN server did not repond. Try reconnecting. If the problem continues, verify your settings and contact your Administrator." this also happens for L2TP-VPN aswell.


Any help would be greatly apreciated I need this setting up ASAP as I need to be able to have an external office connecting to here so I can back up their Mac's locally.


Thanks,

Bruce

Mac mini, OS X Mavericks (10.9.1), OS X Server

Posted on Feb 12, 2014 1:25 AM

Reply
44 replies

Mar 17, 2014 7:55 AM in response to William Bowden1

Thats one thing, to ask about VPN passthrough, but I can't emagine that they would block it.


For me it sounds strange that your IPv4 address is the same as your public IP.

Usually you have a public IP thats reflected by the no-ip app. And the you build a private network inside your home with other ip addresses.

For me it really helped to watch the youtube sessions from Todd Olthoff. Check it out:

http://www.youtube.com/watch?v=xVfEicYfMTE&list=PLbR1g3FxrfmJ22SLY0W8OJ6_WDdhviK rU

He has several sessions about setting up your Apple Server.

Mar 17, 2014 8:15 AM in response to bruce00j

Well satalite puts a different light on this the only thing i can say is in racoon the unix program that deals with VPN you can change the time it waits for a reply but it is a dangerous thing to play with these settings

below is the part of the /etc/racoon/racoon.conf file if you note by default both phase one and 2 wait for 30 seconds if the logs show a hang up then its good to assume the client failed to respond within 30 seconds.


racoons own default is 10 seconds but apple upped it to 30

timer

{

# These value can be changed per remote node.

counter 10; # maximum trying count to send.

interval 3 sec; # interval to resend (retransmit)

persend 1; # the number of packets per a send.


# timer for waiting to complete each phase.

phase1 30 sec;

phase2 30 sec;


# Auto exit delay timer - for use when controlled by VPN socket

auto_exit_delay 3 sec;

}

Mar 18, 2014 2:50 AM in response to bruce00j

Her is a solution if you travel with a laptop

it does require comandline but its simple

Install Brew if you have not done so http://brew.sh

once installed the do this is comandline brew install sshuttle

once installed you will need to reboot

now all you have to do is any time you want to vpn in from terminal go


sshuttle --dns -r any.address.com 0/0 -vv


from there all your traffic will go over ssh so to connect to remote mac type its ip in screen sharing and there you go

Mar 18, 2014 3:49 AM in response to William Bowden1

I don't do much travelling really I wont be needing accsess to the computer outside office hours that much all I want to be able to do is connect the office I work in to the head office we have via a VPN and now I have found out I can not because of the satalite router we have been provided and the only way to change this is either change broadband provider (which may be happening anyway its just there is no good ones via good old fasioned cabling) or pay more for an account which allows us to modify ports in the satalite router.

Mar 18, 2014 9:14 AM in response to William Bowden1

I know of teamviewer but this would not let me transfer a large amount of files would it? My primary use for a VPN is file transfer of documents at the end of the week the controlling of the macs is secondary really.


Is it possible to host an SSL VPN from my Mac mini at all? I have done some google(-ing) and come accross that SSL VPN can bypass blocked ports which is what I have and this would be of great use to me if it was possible!


Thanks,

Bruce

Apr 14, 2014 8:13 PM in response to Heinz Hegnauer

I had that same "invalid address parameter ... for ms-dns option" trouble. It cropped up when my server started getting a valid (globally routable) IPv6 address.


I found a fix. I go to the Server app VPN section. Click "Edit..." on DNS settings. Prior to this all was empty in the VPN DNS settings. I enter my one valid IPv4 DNS server address (just IPv4, no IPv6). It asks to restart VPN and I let it.


After this VPN connections work and no more of the "invalid address ... ms-dns option" in the log.

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.

Trouble connecting to VPN while outside local network

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