Hi all
The weird problem. For the last year or so I have been having this weird networking issue: large https streams (github, file downloads, online gaming, streaming, etc.) randomly fail with a SSL decryption error and need to be restarted, leading to connection interuptions (see below at [1] and [2]). This problem seems to only happen for eth (wired) connections that operate around 300 Mbps. Faster connections (or different network adapters) do not seem to have this issue. I have been able to reproduce the problem consistently between (1) two BPI-R3s connected with Powerlan Adapters (both Devolo and TP-Link); (2) a BPI-R3 and any PC connected through the PowerLan and, most importantly (3) BPI-R3 directly connected to a Cable Matters USB to Ethernet Adapter [3]. Additional relevant system specs below @[4].
The weird solution. As I was trying to diagnose this, I “mistakenly” used the following iptables-nft
rule (note the missing --tcp-flags
option) which seems to “fix” the problem.
iptables-nft -t mangle -A FORWARD -o brlan -p tcp -j TCPMSS --clamp-mss-to-pmtu
As soon as the rule is removed, or the --tcp-flags/--syn
is added the problem reappears. Problem is also manifesting, at all times, with for native nftables
rules (probably because, as far as I can tell, there is no way to create a “partial rule” such as the above).
Help requested.
- Does anyone have any idea/hunch why the above rule addresses the problem?
- So far I have found it quite difficult to debug the issue. Can anyone suggest how they would approach debugging this (tried traffic dumps but not sure exactly what to look for)?
- At this point I am suspecting it might be a driver related issue. Is anyone aware of any patches that are relevant?
Thanks. I can provide additional details if needed.
Extra details:
[1]
$ wget -O /dev/null "https://software.download.prss.microsoft.com/dbazure/Win11_23H2_EnglishInternational_x64v2.iso?t=<RANDOM_TOKEN>"
Loaded CA certificate '/etc/ssl/certs/ca-certificates.crt'
Resolving software.download.prss.microsoft.com (software.download.prss.microsoft.com)... 152.199.21.175, 2606:2800:233:1cb7:261b:1f9c:2074:3c
Connecting to software.download.prss.microsoft.com (software.download.prss.microsoft.com)|152.199.21.175|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 6797694976 (6.3G) [application/octet-stream]
Saving to: ‘/dev/null’
/dev/null 0%[ ] 41.30M 30.1MB/s in 1.4s
2024-02-23 10:23:29 (30.1 MB/s) - Read error at byte 43302901/6797694976 (Decryption has failed.). Retrying.
[2]
curl -o /dev/null "https://software.download.prss.microsoft.com/dbazure/Win11_23H2_English_x64v2.iso"
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
15 6497M 15 1015M 0 0 28.8M 0 0:03:45 0:00:35 0:03:10 31.4M
curl: (56) OpenSSL SSL_read: OpenSSL/3.2.1: error:0A000119:SSL routines::decryption failed or bad record mac, errno 0
[3] https://www.amazon.co.uk/gp/product/B00BBD7NFU
[4] ArchLinuxArm system with variuous 6.x kernels from: