9
11

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

コマンドラインからの VPN 接続

Last updated at Posted at 2012-07-27

Mac OS X でコマンドラインから VPN の接続ができないものかと長らく探していたが,ふとした拍子に networksetup という怪しいコマンドを見つけ,それを使うと実現できることがわかったのでメモ.

$ networksetup -listallnetworkservices
KUINS PPTP
Bluetooth DUN
USB Gigabit Ethernet
Wi-Fi
Bluetooth PAN

で VPN のサービス名を確認する.自分の環境だと KUINS PPTP という VPN が確認できる.

$ networksetup -connectpppoeservice "KUINS PPTP"

とすれば,めでたく KUINS PPTP に接続できます.

9
11
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
9
11

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?