0
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

ターミナルからVPNに接続する

Posted at

VPNにターミナルから接続できない

macOS(M1、Sequoia環境)でターミナルからVPNを管理しようとしたが、networksetupscutilではVPNの情報が取得できなかった。

しばらくApple Scriptで誤魔化していたが、不安定だしアプデで使えなくなるしでだるかった。

そこで再度調べてみた。どうやらIKEv2だと無理らしい。
VPNStatusを導入して解決した。

VPNStatusの導入

実行例

接続したいときは

vpnutil start "VPN名"

切断したいときは

vpnutil stop "VPN名"
0
3
0

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
0
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?