Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mobileconfig not working on macOS 10.12.4 #362

Closed
thegranddesign opened this issue Apr 6, 2017 · 8 comments
Closed

mobileconfig not working on macOS 10.12.4 #362

thegranddesign opened this issue Apr 6, 2017 · 8 comments
Labels

Comments

@thegranddesign
Copy link

thegranddesign commented Apr 6, 2017

OS / Environment

macOS 10.12.4
iOS 10.2

Ansible version

2.2.2.0

Summary of the problem

  • I installed the Algo server both as a standalone and also running on an existing server.
  • I retrieved the mobileconfig file and send it to my phone. VPN connects and works great.
  • I opened it on my Mac and approved it. VPN will not connect.

Troubleshooting steps:

  1. I enabled verbose logging for the network extension:
sudo defaults write /Library/Preferences/com.apple.networkextension.control.plist LogToFile 1
sudo defaults write /Library/Preferences/com.apple.networkextension.control.plist LogLevel 6
  1. I attempted to connect to the VPN
  2. Console app shows the following output:
Not hashing value with class __NSDate
NESMIKEv2VPNSession[Algo VPN <myip> IKEv2:<a UUID>]: Received a start command from SystemUIServer[266]
NESMIKEv2VPNSession[Algo VPN <myip> IKEv2:<a UUID>]: status changed to connecting
Failed to find the VPN app for plugin type com.apple.neplugin.IKEv2
pfkey received SA is NULL
Failed to receive IKE SA Init packet
NESMIKEv2VPNSession[Algo VPN <myip> IKEv2:<a UUID>]: status changed to disconnecting
NESMIKEv2VPNSession[Algo VPN <myip> IKEv2:<a UUID>]: status changed to disconnected, last stop reason Plugin initiated

The way of deployment (cloud or local)

Both

Full log

https://gist.github.com/thegranddesign/b8e8f213fcf974d5ec1f1ad28f98e287

@thegranddesign thegranddesign changed the title mobileconfig not working on macOS 10.2.4 mobileconfig not working on macOS 10.12.4 Apr 6, 2017
@dguido
Copy link
Member

dguido commented Apr 8, 2017

10.12.4 is not the issue. It works fine on that OS (using it right now). It's more likely your local install (option 5) didn't go right. Try redeploying to a new cloud server and try it again.

@boriskroeger
Copy link

Same effect here on macOS and iOS with local install.
Any hints on where to start debugging the issue as I need a setup on my machine?

@dguido dguido added the bsd label Apr 8, 2017
@dguido
Copy link
Member

dguido commented Apr 8, 2017

You should make sure that strongswan and iptables are set up correctly on your local install.

@dguido dguido closed this as completed Apr 8, 2017
@thegranddesign
Copy link
Author

@dguido did you not read the issue? This happens on both local install and full install. Please reopen the issue.

@dguido
Copy link
Member

dguido commented Apr 8, 2017

Sorry, I can't reproduce this issue. It's not a problem with 10.12.4. Maybe a conflict with other software on your machine or a broken macOS setting. Try with a friend's computer.

@DazChong
Copy link

my experience deploying at DO (Ubuntu 16 x64 fresh droplet):

1st time setup:

  • mobileconfig work on iOS, work on macos too.
  • Connect on Demand option visible.

After adding more users and ran ./algo update-users

  • old mobileconfig work.
  • updated mobileconfig (timestamp updated) not working on both iOS & macos.
  • all new users mobileconfig not working.
  • Connect on Demand option not visible.

@dguido
Copy link
Member

dguido commented Apr 18, 2017

That's a separate issue. Please file a bug for update-users not producing working mobileconfig files.

@thegranddesign
Copy link
Author

I figured out the issue (for me at least) for those coming after me. My router had IPSec NAT Passthrough disabled. This is required to be enabled when you have NAT enabled. Once I allowed that, the connection worked immediately.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants