SoftEther VPN Server plist

在Mac OS X裡面建立SoftEther VPN Server的服務,以下內容放到/System/Library/LaunchDaemons/vpnserver.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
 <key>UserName</key>
 <string>root</string>
 <key>GroupName</key>
 <string>wheel</string>
 <key>Label</key>
 <string>vpnserver</string>
 <key>ProgramArguments</key>
 <array>
  <string>/Users/Shared/vpnserver/vpnserver</string>
  <string>start</string>
 </array>
 <key>RunAtLoad</key>
 <true/>
 <key>LaunchOnlyOnce</key>
 <true/>
 <key>OnDemand</key>
 <false/>
</dict>
</plist>
放入後擇下其一動作即可:
  • 執行`launchctl load /System/Library/LaunchDaemons/vpnserver.plist`即可
  • 重新開機

留言

熱門文章