Aus der Antwort auf diese Frage habe ich versucht scutil --nc start 'us.justfreevpn.com'
, ein PPPT-VPN zu verbinden, aber alles, was ich bekomme, ist das folgende Popup:
Frustrierend, wenn ich die Verbindung manuell über die Menüleiste starte, kann ich sie dann stoppenscutil --nc stop 'us.justfreevpn.com'
scutil --nc list
gibt folgendes:
Available network connection services in the current set (*=enabled):
* (Disconnected) 16DB05C1-0843-447F-9EA0-AD43139270AF PPP --> PPTP "us.justfreevpn.com" [PPP:PPTP]
Und scutil --nc show 'us.justfreevpn.com'
das:
* (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
}
Das Log zeigt nur folgendes:
Tue Feb 23 10:18:44 2016 : publish_entry SCDSet() failed: Success!
Tue Feb 23 10:18:44 2016 : publish_entry SCDSet() failed: Success!
Und der letzte Exit-Code ist 0:
$ echo $?
0
Was mache ich falsch?
OS X 10.11.3
Hatte das gleiche Problem. Am Ende ging ich die AppleScript-Route:
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
Ich hatte ein ähnliches Problem unter macOS 10.12.6.
Die Hauptursache war, dass ich auch den Konfigurationsnamen des VPN geändert habe
Nach dem Entfernen des alten VPN und Erstellen eines VPN mit anderem Namen und Konfiguration „Default“ funktioniert es sowohl mit dem Befehl scutil als auch mit networksetup
ngang
MatzFan