A partir de la respuesta a esta pregunta, he intentado scutil --nc start 'us.justfreevpn.com'
conectar una VPN PPPT, pero todo lo que aparece es la siguiente ventana emergente:
De manera frustrante, si inicio manualmente la conexión desde la barra de menú, puedo detenerla usandoscutil --nc stop 'us.justfreevpn.com'
scutil --nc list
da lo siguiente:
Available network connection services in the current set (*=enabled):
* (Disconnected) 16DB05C1-0843-447F-9EA0-AD43139270AF PPP --> PPTP "us.justfreevpn.com" [PPP:PPTP]
Y scutil --nc show 'us.justfreevpn.com'
esto:
* (Disconnected) 16DB05C1-0843-447F-9EA0-AD43139270AF PPP --> PPTP "us.justfreevpn.com" [PPP:PPTP]
PPP <dictionary> {
ACSPEnabled : 1
CCPEnabled : 1
CommDisplayTerminalWindow : 0
CommRedialCount : 1
CommRedialEnabled : 0
CommRedialInterval : 5
CommUseTerminalScript : 0
DialOnDemand : 0
DisconnectOnFastUserSwitch : 1
DisconnectOnIdle : 0
DisconnectOnIdleTimer : 600
DisconnectOnLogout : 1
DisconnectOnSleep : 0
IPCPCompressionVJ : 0
IdleReminder : 0
IdleReminderTimer : 1800
LCPEchoEnabled : 1
LCPEchoFailure : 15
LCPEchoInterval : 20
Logfile : /var/log/ppp.log
VerboseLogging : 0
}
El registro solo muestra lo siguiente:
Tue Feb 23 10:18:44 2016 : publish_entry SCDSet() failed: Success!
Tue Feb 23 10:18:44 2016 : publish_entry SCDSet() failed: Success!
Y el último código de salida es 0:
$ echo $?
0
¿Qué estoy haciendo mal?
OS X 10.11.3
Estaba corriendo en el mismo problema. Terminé yendo por la ruta de AppleScript:
tell application "System Events"
tell current location of network preferences
set VPN to service "UniVPN" -- your VPN name here
if exists VPN then connect VPN
repeat while (current configuration of VPN is not connected)
delay 1
end repeat
end tell
end tell
engranaje
MatzFan