1
1

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 1 year has passed since last update.

GlobalProtect端末のWSL2からインターネットへ出る方法

Posted at

GlobalProtect端末にインストールしたWSL2からインターネットに出ようとしても以下のようにアクセスできません。

$ curl https://www.google.com
curl: (6) Could not resolve host: www.google.com

PowerShellを管理者として実行し、以下コマンドを実行するとWSL2からインターネットに出られるかもしれません。

Get-NetAdapter | Where-Object {$_.InterfaceDescription -Match "PANGP Virtual Ethernet Adapter"} | Set-NetIPInterface -InterfaceMetric 6000

ただ、上記コマンドを実行すると本来GlobalProtect経由でアクセスしたいページ(社内WEBサービス等)にWindowsからもアクセスできなくなります。そういったページにアクセスしたい時は上記コマンドのメトリクス値を「1」に変えて再実行するとアクセスできると思います。

1
1
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
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?