I just bought OS X server (Maverickes) with the target of being able to setup a VPN Server on my local Macbook Pro laptop. I have done the required steps but I'm not able to do a VPN from my iPhone to my VPN server.
My objective is that I want to be able to VPN from any device to may Macbook Pro mainly for internet browsing, mail.
Here is what I have done:
1- Installed OS X server on my Mabckook Pro
2- They only services that is set to ON is VPN
3- Here are the settings for VPN:
5- Now I go to my iPhone and setup VPN as follows:
I have also forwarded the following ports from my internet router to my Macbook Pro's local IP address:
Protocol Port Range
TCP 1723 - 1723
UDP 500 - 500
UDP 1701 - 1701
UDP 4500 - 4500
When I set VPN on on my iPhone I get the following error: "The L2TP-VPN server did not respond..."
Here is my VPN service log:
#Start-Date: 2013-10-27 15:16:26 CET
#Fields: date time s-comment
2013-10-27 15:16:26 CET Loading plugin /System/Library/Extensions/L2TP.ppp
2013-10-27 15:16:26 CET Listening for connections...
And here is my System Log when I do a VPN from the iPhone:
Oct 27 15:41:09 macbookpro.lan racoon[3222]: >>>>> phase change status = Phase 1 started by us
Oct 27 15:41:09 macbookpro.lan racoon[3222]: IKE Packet: transmit success. (Responder, Main-Mode message 2).
Oct 27 15:41:09 macbookpro.lan racoon[3222]: IKE Packet: receive success. (Responder, Main-Mode message 3).
Oct 27 15:41:09 macbookpro.lan racoon[3222]: IKE Packet: transmit success. (Responder, Main-Mode message 4).
Oct 27 15:41:09 macbookpro.lan racoon[3222]: Connecting.
Oct 27 15:41:12 macbookpro.lan racoon[3222]: IKE Packet: transmit success. (Phase 1 Retransmit).
Oct 27 15:41:46 --- last message repeated 3 times ---
Oct 27 15:41:46 macbookpro.lan racoon[3222]: IKE Packet: transmit success. (Phase 1 Retransmit).
Oct 27 15:42:04 macbookpro.lan racoon[3222]: IKE Packet: transmit success. (Phase 1 Retransmit).
Oct 27 15:42:49 --- last message repeated 1 time ---
Oct 27 15:42:49 macbookpro.lan racoon[3222]: IKE Packet: transmit success. (Phase 1 Retransmit).
Oct 27 15:43:46 --- last message repeated 1 time ---
Oct 27 15:43:46 macbookpro.lan racoon[3222]: IKEv1 Phase 1: maximum retransmits. (Phase 1 Maximum Retransmits).
Oct 27 15:43:46 macbookpro.lan racoon[3222]: Phase 1 negotiation failed due to time up. dfec20fdf9615471:b34d569a7e265609
I would appreciate if you tell me what am I doing wrong?
My objective is that I want to be able to VPN from any device to may Macbook Pro mainly for internet browsing, mail.
Here is what I have done:
1- Installed OS X server on my Mabckook Pro
2- They only services that is set to ON is VPN
3- Here are the settings for VPN:
- Status is green and it says 'Available at macbookpro.lan'
- Configure VPN for: 'L2TP'
- VPN Host Name: I have provided the IP address of my Macbook Pro that it gets form my local internet router, it does have green status
- Shared Secret: I have given a shared secret
- Client address: allowed 5 devices
- DNS setting: One question I have is what DNS should I provide here? My internet router's DNS? or my internet routers's default gateway?
- Routers: Do I need to provide any routes?
5- Now I go to my iPhone and setup VPN as follows:
- Server: I provide my public IP address that I get from www.google.com
- Account: I enter the user name of the account I just created in my Macbook Pro
- RSA SecurID: is set to off
- Password: I provide the password of the account I created on my Macbook Pro
- Secret: I enter the shared secret key
- Send All Trafic: is set to On
I have also forwarded the following ports from my internet router to my Macbook Pro's local IP address:
Protocol Port Range
TCP 1723 - 1723
UDP 500 - 500
UDP 1701 - 1701
UDP 4500 - 4500
When I set VPN on on my iPhone I get the following error: "The L2TP-VPN server did not respond..."
Here is my VPN service log:
#Start-Date: 2013-10-27 15:16:26 CET
#Fields: date time s-comment
2013-10-27 15:16:26 CET Loading plugin /System/Library/Extensions/L2TP.ppp
2013-10-27 15:16:26 CET Listening for connections...
And here is my System Log when I do a VPN from the iPhone:
Oct 27 15:41:09 macbookpro.lan racoon[3222]: >>>>> phase change status = Phase 1 started by us
Oct 27 15:41:09 macbookpro.lan racoon[3222]: IKE Packet: transmit success. (Responder, Main-Mode message 2).
Oct 27 15:41:09 macbookpro.lan racoon[3222]: IKE Packet: receive success. (Responder, Main-Mode message 3).
Oct 27 15:41:09 macbookpro.lan racoon[3222]: IKE Packet: transmit success. (Responder, Main-Mode message 4).
Oct 27 15:41:09 macbookpro.lan racoon[3222]: Connecting.
Oct 27 15:41:12 macbookpro.lan racoon[3222]: IKE Packet: transmit success. (Phase 1 Retransmit).
Oct 27 15:41:46 --- last message repeated 3 times ---
Oct 27 15:41:46 macbookpro.lan racoon[3222]: IKE Packet: transmit success. (Phase 1 Retransmit).
Oct 27 15:42:04 macbookpro.lan racoon[3222]: IKE Packet: transmit success. (Phase 1 Retransmit).
Oct 27 15:42:49 --- last message repeated 1 time ---
Oct 27 15:42:49 macbookpro.lan racoon[3222]: IKE Packet: transmit success. (Phase 1 Retransmit).
Oct 27 15:43:46 --- last message repeated 1 time ---
Oct 27 15:43:46 macbookpro.lan racoon[3222]: IKEv1 Phase 1: maximum retransmits. (Phase 1 Maximum Retransmits).
Oct 27 15:43:46 macbookpro.lan racoon[3222]: Phase 1 negotiation failed due to time up. dfec20fdf9615471:b34d569a7e265609
I would appreciate if you tell me what am I doing wrong?