You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

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

VPN not working after upgrading to Mavericks

Anyone else having issues? It worked fine with Mountain Lion on my iMac but, after updating to Mavericks today, it won't connect. It says to verify the server's IP number but it's correct.


Thanks,

- s

iMac, OS X Mavericks (10.9)

Posted on Oct 22, 2013 4:28 PM

Reply
170 replies

Oct 28, 2013 4:41 AM in response to jbNco

I just followed the advise of jbNco, and i am now back with VPN, which for sure was getting scary, as i might have been forced back on to my company provided PC!!!


This is related to Safari 6.1 and not specific to Mavericks. I'm building a 10.8.5 image and put Safari 6.1 and ran into the same issue. They have sandboxed off Java which doesn't give access for java based VPN solutions the access it needs to install the required components.


If you go into Safari Prefs, select security, and then select manage website settings. Select Java from the left side and then change "when visiting other websites" to run in unsafe mode, I was able to get further with accessing VPN using Safari 6.1. Can others test this and see if it helps with getting connected?

Oct 28, 2013 9:44 AM in response to DeepEddy

so...once upon a time I evaluated a package called Cocktail (http://www.maintain.se/cocktail). It "disabled' itself at the end of the evaluation period, but disabling does not mean uninstalling and all it's "tuning" was still in place.


I have no memory of doing this, but it was apparently in mid-2011.


If you have this junkware, find all folders that start with "Cocktail" and blow them away.

Oct 28, 2013 11:56 AM in response to DeepEddy

DeepEddy wrote:


hmm.....no /etc/sysctl.conf on my system, but bumping it up by hand allowed me to connect:


bash-3.2# sysctl -a|grep maxsockbuf

kern.ipc.maxsockbuf: 262144

bash-3.2# sysctl -w kern.ipc.maxsockbuf=500000

kern.ipc.maxsockbuf: 262144 -> 500000

bash-3.2# sysctl -w kern.ipc.maxsockbuf=1000000

kern.ipc.maxsockbuf: 500000 -> 1000000



500000 wasn't enough, but 1000000 was.


I'd love to know what the "correct" value is from someone who this works for instead of my guessing various large numbers.

kern.ipc.maxsockbuf: 6291456

Oct 28, 2013 10:35 PM in response to Admetos

I am/was having the same problem with the same error messages as the OP and others. For sh1t and giggles I just tried turning off encryption on the (PPTP) connection and it connected immediately.


This was working with encryption prior to Mavericks (connecting from a MacBook to a remote LAN with the server running on a DD-WRT router) and only with no encryption now.


I am no mega-tech so I have no idea if this is a clue, or totally useless information!


MNX

Oct 28, 2013 10:49 PM in response to mnsaint

Spoke to Apple Enterprise Support this morning and they are aware of the issue now. We spent about 2 hours troubleshooting and trying everything the tech could think of, in the end he gathered logs from my server. At this point they are leaning towards an issues with NAT and Mavericks Server. They're working on it, most likely be addressed in an update to the Server app. Just wanted to share.


^^^This is obviously for the Server issues some of us are seeing.

Oct 30, 2013 3:29 AM in response to JonThorpe

Try select "send all traffic over VPN" in the advanced prefs pane and start connection.


If it works,(I think)you have to contact sysadmin of the server for the script, mine looks like


#!/bin/sh



COUNT=1

while [ $COUNT -lt '255' ] ; do

if [ "${5:-}" = "10.1.15.$COUNT" ]

then

/sbin/route add 192.168.10.0/24 $5

/sbin/route add 192.168.11.0/24 $5

/sbin/route add 192.168.12.0/24 $5

/sbin/route add 192.168.13.0/24 $5

/sbin/route add 192.168.14.0/24 $5

/sbin/route add 192.168.15.0/24 $5

/sbin/route add 10.1.11.0/24 $5

fi


COUNT="$(expr "$COUNT" '+' '1')"

done


and in the /private/etc/hosts file, added lines for the servers, ie


192.168.10.6 svr-xx.xxx.local

Oct 30, 2013 4:27 AM in response to mnsaint

Also struggling to make VPN (Cisco IPsec) work again.


This is my log:


30/10/13 11:02:03,113 configd[18]: IPSec connecting to server vpn.url.nl

30/10/13 11:02:03,113 configd[18]: SCNC: start, triggered by (307) com.apple.prefe, type IPSec, status 0, trafficClass 0

30/10/13 11:02:03,118 configd[18]: network changed: v4(en0:192.168.1.223) DNS Proxy SMB

30/10/13 11:02:03,123 configd[18]: IPSec Phase1 starting.

30/10/13 11:02:03,123 mDNSResponder[56]: Double NAT (external NAT gateway address 192.168.0.11 is also a private RFC 1918 address)

30/10/13 11:02:03,189 racoon[328]: accepted connection on vpn control socket.

30/10/13 11:02:03,189 racoon[328]: IPSec connecting to server x.x.x.x

30/10/13 11:02:03,190 racoon[328]: Connecting.

30/10/13 11:02:03,190 racoon[328]: IPSec Phase 1 started (Initiated by me).

30/10/13 11:02:03,196 racoon[328]: IKE Packet: transmit success. (Initiator, Aggressive-Mode message 1).

30/10/13 11:02:03,196 racoon[328]: >>>>> phase change status = Phase 1 started by us

30/10/13 11:02:03,199 configd[18]: network changed.

30/10/13 11:02:03,874 mDNSResponder[56]: handleLNTPortMappingResponse too many conflict retries 0 0

30/10/13 11:02:04,771 configd[18]: IPSec failed to set port-mapping for en0, errorCode: -65564.

30/10/13 11:02:04,771 configd[18]: IPSec port-mapping for en0 became invalid. is Connected: 1, Protocol: None, Private Port: 0, Previous publicAddress: (c0a8000b), Previous publicPort: (0).

30/10/13 11:02:04,772 configd[18]: IPSec public port-mapping for en0 changed... starting faster probe.

30/10/13 11:02:06,495 racoon[328]: IKE Packet: transmit success. (Phase 1 Retransmit).

30/10/13 11:02:09,791 racoon[328]: IKE Packet: transmit success. (Phase 1 Retransmit).

30/10/13 11:02:13,086 racoon[328]: IKE Packet: transmit success. (Phase 1 Retransmit).

30/10/13 11:02:13,198 configd[18]: IPSec disconnecting from server x.x.x.x

30/10/13 11:02:13,198 racoon[328]: IPSec disconnecting from server x.x.x.x

30/10/13 11:02:13,199 racoon[328]: failed to send vpn_control message: Broken pipe

30/10/13 11:02:13,200 racoon[328]: glob found no matches for path "/var/run/racoon/*.conf"

30/10/13 11:02:13,201 racoon[328]: IPSec disconnecting from server x.x.x.x




Don't have any *.conf file in my var/run/racoon/ folder.


Also don't have the /etc/sysctl.conf file. Don't know what's meant by:

no /etc/sysctl.conf on my system, but bumping it up by hand allowed me to connect:


I have no clue what to try next.

Nov 2, 2013 7:21 AM in response to SewHappy58

I found a solution for this problem, first you need 3 files from your os x Mountain backup:

  1. /usr/sbin/racoon
  2. /System/Library/LaunchDaemons/com.apple.racoon.plist
  3. /System/Library/Sandbox/Profiles/racoon.sb

Then just put those mountain files in your mavericks folder and restart your mac, please make a backup of the 3 files. have fun 🙂

Nov 2, 2013 7:58 AM in response to safimen

Didn't work for me. My last backup was Mar 18 so I don't know if that is why it didn't work. Now when I try to login, I get an error message that says " VPN CONNECTION - An unrecoverable error occurred. Verify your settings and try reconnecting." I verified settings and they are still the same as before for my login info. So I think the files might not be correct of there is a missing element that I'm not sure of. I did back up files so I can recover to Maverick if needed.



UPDATE: Still not connecting but I got rid of that message but going to Terminal and entering sudo /usr/sbin/racoon

VPN not working after upgrading to Mavericks

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