Должен быть способ управлять встроенным клиентом VPN в Snow Leopard OS X, я просто не могу найти документацию об этом. Я хочу смочь соединиться и разъединиться, в то время как я - ssh'd в свое поле удаленно. Кто-либо знает, как сделать это?
сохраните следующий AppleScript к gfw.scpt
tell application "System Events"
tell current location of network preferences
set VPNservice to service "The Great Fire Wall" -- name of the VPN service
if exists VPNservice then connect VPNservice
set isConnected to connected of current configuration of VPNservice
if isConnected then
--- do something or nothing
end if
end tell
end tell
используйте osascript gfw.scpt для запуска его с терминала.