Monday, November 18, 2019

#1 2019-09-07 12:59:56 pm

robertfern
Member
Registered: 2011-11-29
Posts: 44

Does anyone have AppleScriptObjC to connect IKEv2 VPN

Since AppleScript can't control an IKEv2 VPN nor can "scutil" command line,
has anyone tried to use AppleScriptObjC to get the similar capabilities.

Similar to "VPNStatus" menubar app from Timac from his blog at
https://blog.timac.org/2018/0719-vpnstatus/

Apple doesn't seem to be in a rush to fix this.
It has been broken since El Capitan.

Last edited by robertfern (2019-09-07 01:23:07 pm)

Offline

 

#2 2019-09-26 08:29:51 am

robertfern
Member
Registered: 2011-11-29
Posts: 44

Re: Does anyone have AppleScriptObjC to connect IKEv2 VPN

WOW!

Not one reply as to where to start.

I was hoping Shane would at least have an inkling.

I was thinking it is part of the Personal VPN section of "NetworkExtension" framework

Any ideas how to start or initialize the NEVPNManager?

Offline

 

#3 2019-09-26 05:34:26 pm

Shane Stanley
Member
From:: Australia
Registered: 2002-12-07
Posts: 6033

Re: Does anyone have AppleScriptObjC to connect IKEv2 VPN

Have you tried using the vpnutil tool from that page via do shell script?


Shane Stanley <sstanley@myriad-com.com.au>
www.macosxautomation.com/applescript/apps/
latenightsw.com

Offline

 

#4 2019-09-26 08:15:15 pm

robertfern
Member
Registered: 2011-11-29
Posts: 44

Re: Does anyone have AppleScriptObjC to connect IKEv2 VPN

Yes, I'm currently using the command line version.

But it is lacking in ability to tell current status of VPN.

It only has 2 commands, Start & stop.

Was hoping i could do similar and get status and uptime using AppleScriptObjC.

Also would like to also do it as a learning experience.

Offline

 

#5 2019-09-26 09:04:59 pm

Shane Stanley
Member
From:: Australia
Registered: 2002-12-07
Posts: 6033

Re: Does anyone have AppleScriptObjC to connect IKEv2 VPN

I suspect you're out of luck.


Shane Stanley <sstanley@myriad-com.com.au>
www.macosxautomation.com/applescript/apps/
latenightsw.com

Offline

 

Board footer

Powered by FluxBB

RSS (new topics) RSS (active topics)