0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

L2TP/IPsec VPNでERR_CONNECTION_RESETエラーを解決する方法

Last updated at Posted at 2025-04-02

問題
IPv6ネットワークを使用し、L2TP/IPsec VPNで社内サーバーに接続してWebプロジェクトを閲覧中、APIが遅くなり、ERR_CONNECTION_RESETエラーが発生する問題がありました。

原因
L2TP/IPsec VPNのMTU(最大伝送単位)設定が原因で、大きなデータパケットが正しく送信されず、接続がリセットされることがあります。特に、IPv6ネットワークではIPv4よりも大きなヘッダが使用され、MTUサイズが適切でないとパケットが断片化され、ネットワーク経路で破棄される可能性があります。

解決策

MTUサイズを小さくする
デフォルトのMTUサイズ(1500)は大きすぎるため、VPNの封装を考慮して1300または1400に設定すると問題が解決しました。

設定方法(Windows)
管理者権限でPowerShellを開き、次のコマンドを実行します:

netsh interface ipv4 set subinterface "VPN接続" mtu=1420 store=persistent
0
0
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
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?