サイト間VPN:Pingはうまく機能しますが、データ転送はランダムに片側にのみ行われます。

サイト間VPN:Pingはうまく機能しますが、データ転送はランダムに片側にのみ行われます。

VPN接続(Wireguard)を介して2つのネットワークが接続されています。彼らに電話しましょうサイトAそしてサイトB

VPN接続が良好でルーティングが確立され、サイトAとサイトBのすべてのコンピュータが問題なく互いにpingできます。ウェブサイトにアクセスサイトB~からサイトA最近までは正常に戻り(時々動作し、突然再び停止した)、サイトBで訪問したすべてのページは永久にロードされ、ロードが終了しない白いページにつながりました。

Webページの画像や大量のHTMLファイル(1 KB以上)など、より大きなデータチャンクを転送する必要がありますが、応答が完全に届かない場合に問題が発生します。

非常に小さなページを読み込みます。それぞれの場合、サーバーは要求が行われたことを確認しますが、クライアントは応答を受け取りません。

IPERF3を実行すると、問題がより詳細に表示されます。

サイトA:

root@aligator:~# iperf3 -c 192.168.178.254 -R
Connecting to host 192.168.178.254, port 5201
Reverse mode, remote host 192.168.178.254 is sending
[  4] local 192.168.250.254 port 53480 connected to 192.168.178.254 port 5201
[ ID] Interval           Transfer     Bandwidth
[  4]   0.00-1.00   sec  1.03 MBytes  8.64 Mbits/sec
[  4]   1.00-2.00   sec  1.17 MBytes  9.80 Mbits/sec
[  4]   2.00-3.00   sec   870 KBytes  7.12 Mbits/sec
[  4]   3.00-4.00   sec   477 KBytes  3.91 Mbits/sec
[  4]   4.00-5.00   sec   325 KBytes  2.66 Mbits/sec
[  4]   5.00-6.00   sec   407 KBytes  3.34 Mbits/sec
[  4]   6.00-7.00   sec   454 KBytes  3.72 Mbits/sec
[  4]   7.00-8.00   sec   556 KBytes  4.55 Mbits/sec
[  4]   8.00-9.00   sec   633 KBytes  5.19 Mbits/sec
[  4]   9.00-10.00  sec   442 KBytes  3.62 Mbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth       Retr
[  4]   0.00-10.00  sec  7.03 MBytes  5.90 Mbits/sec   25             sender
[  4]   0.00-10.00  sec  6.39 MBytes  5.36 Mbits/sec                  receiver

iperf Done.
root@aligator:~# iperf3 -c 192.168.178.254
Connecting to host 192.168.178.254, port 5201
[  4] local 192.168.250.254 port 53484 connected to 192.168.178.254 port 5201
[ ID] Interval           Transfer     Bandwidth       Retr  Cwnd
[  4]   0.00-1.00   sec  88.2 KBytes   721 Kbits/sec    1   1.34 KBytes
[  4]   1.00-2.00   sec  0.00 Bytes  0.00 bits/sec    1   1.34 KBytes
[  4]   2.00-3.00   sec  0.00 Bytes  0.00 bits/sec    1   1.34 KBytes
[  4]   3.00-4.00   sec  0.00 Bytes  0.00 bits/sec    0   1.34 KBytes
[  4]   4.00-5.00   sec  0.00 Bytes  0.00 bits/sec    1   1.34 KBytes
[  4]   5.00-6.00   sec  0.00 Bytes  0.00 bits/sec    0   1.34 KBytes
[  4]   6.00-7.00   sec  0.00 Bytes  0.00 bits/sec    0   1.34 KBytes
[  4]   7.00-8.00   sec  0.00 Bytes  0.00 bits/sec    0   1.34 KBytes
[  4]   8.00-9.00   sec  0.00 Bytes  0.00 bits/sec    0   1.34 KBytes
[  4]   9.00-10.00  sec  0.00 Bytes  0.00 bits/sec    1   1.34 KBytes
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth       Retr
[  4]   0.00-10.00  sec  88.2 KBytes  72.2 Kbits/sec    5             sender
[  4]   0.00-10.00  sec  0.00 Bytes  0.00 bits/sec                  receiver

iperf Done.

サイトB:

root@baloon:~# iperf3 -s
-----------------------------------------------------------
Server listening on 5201
-----------------------------------------------------------
Accepted connection from 192.168.250.254, port 53506
[  5] local 192.168.178.254 port 5201 connected to 192.168.250.254 port 53508
[ ID] Interval           Transfer     Bandwidth       Retr  Cwnd
[  5]   0.00-1.00   sec   688 KBytes  5.63 Mbits/sec    3   58.8 KBytes
[  5]   1.00-2.00   sec   541 KBytes  4.43 Mbits/sec    3   33.4 KBytes
[  5]   2.00-3.00   sec   502 KBytes  4.12 Mbits/sec    0   41.4 KBytes
[  5]   3.00-4.00   sec   251 KBytes  2.06 Mbits/sec    2   37.4 KBytes
[  5]   4.00-5.00   sec   502 KBytes  4.12 Mbits/sec    0   41.4 KBytes
[  5]   5.00-6.00   sec   377 KBytes  3.09 Mbits/sec    0   48.1 KBytes
[  5]   6.00-7.00   sec   502 KBytes  4.12 Mbits/sec    1   41.4 KBytes
[  5]   7.00-8.00   sec   377 KBytes  3.09 Mbits/sec    1   36.1 KBytes
[  5]   8.00-9.00   sec   502 KBytes  4.12 Mbits/sec    1   28.1 KBytes
[  5]   9.00-10.00  sec   251 KBytes  2.06 Mbits/sec    0   34.7 KBytes
[  5]  10.00-10.09  sec   126 KBytes  11.4 Mbits/sec    0   34.7 KBytes
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth       Retr
[  5]   0.00-10.09  sec  4.51 MBytes  3.75 Mbits/sec   11             sender
[  5]   0.00-10.09  sec  0.00 Bytes  0.00 bits/sec                  receiver
-----------------------------------------------------------
Server listening on 5201
-----------------------------------------------------------
Accepted connection from 192.168.250.254, port 53510
[  5] local 192.168.178.254 port 5201 connected to 192.168.250.254 port 53512
[ ID] Interval           Transfer     Bandwidth
[  5]   0.00-1.00   sec  0.00 Bytes  0.00 bits/sec
[  5]   1.00-2.00   sec  0.00 Bytes  0.00 bits/sec
[  5]   2.00-3.00   sec  0.00 Bytes  0.00 bits/sec
[  5]   3.00-4.00   sec  0.00 Bytes  0.00 bits/sec
[  5]   4.00-5.00   sec  0.00 Bytes  0.00 bits/sec
[  5]   5.00-6.00   sec  0.00 Bytes  0.00 bits/sec
[  5]   6.00-7.00   sec  0.00 Bytes  0.00 bits/sec
[  5]   7.00-8.00   sec  0.00 Bytes  0.00 bits/sec
[  5]   8.00-9.00   sec  0.00 Bytes  0.00 bits/sec
[  5]   9.00-10.00  sec  0.00 Bytes  0.00 bits/sec
[  5]  10.00-10.09  sec  0.00 Bytes  0.00 bits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth
[  5]   0.00-10.09  sec  0.00 Bytes  0.00 bits/sec                  sender
[  5]   0.00-10.09  sec  0.00 Bytes  0.00 bits/sec                  receiver
-----------------------------------------------------------
Server listening on 5201
-----------------------------------------------------------

したがって、両方のテスト実行でサーバーとクライアントの両方に新しい要求があることを確認しましたが、サイトBからサイトAにデータが送信されませんでした(少なくとも数バイト以下)。

また、この問題は消えてランダムに再現されるように見えるため、時には双方向通信がしばらくうまく機能して再びクラッシュすることがあります。ただし、Pingは常に動作します(通常SSHと同様)。

これは問題を解決するのに十分ではないかもしれませんが、問題の検索をどこから始めるべきかわかりません(ルーティング、VPN、信頼できないネットワーク?)。どのような問題が原因でこれらの動作が発生するのかを指摘できる人はいますか?原因を探し始めるのに最適な場所はどこですか?

ベストアンサー1

おすすめ記事