Hi everyone,
I recently installed openwrt on a Fritz!Box 4040 to access the Internet. I have a Windows PC with openvpn 2.5 client that I use to access company servers. Before flashing the router, openvpn worked fine. Now I can connect trough the VPN and ping those servers. But when I try to open an rdp connection, the ping fails and the rdp connection becomes unstable and unusable. I use ip addresses so I exclude name resolution problems. The openwrt version is 23.05.0 r23497-6637af95aa / LuCI openwrt-23.05 branch git-23.236.53405-fc638c8. I tried to set the correct mssfix parameter on the openvpn client configuration file, but without success.
I'm a newbie so I apologize in advance for the non-technical explanation.
Please connect to your OpenWrt device using ssh and copy the output of the following commands and post it here using the "Preformatted text </> " button:
Remember to redact passwords, MAC addresses and any public IP addresses you may have:
I assume you have more than one AP... your computer may be roaming across the APs in a sub-optimal way. It's important to make sure the radios are tuned properly.
Remove all of the 802.11r stuff (from all APs). This tends to cause more problems than it solves.
On github I found this issue: FS#3830 - OpenVPN Client Using TCP Connection Has MTU or TCPMSS Issue #8828
weikai:
OpenVPN Client connects to a TCP based OpenVPN server connects fine. However, the connections to remote network servers connect but can't transfer data. The mangle rule with clamp-mss-to-pmtu won't receive any data. Setting tcpmss to something around 1000 will only receive the first 100 - 200 bytes and hang. It's not working until reduced tcpmss to 59.
iptables -t nat -A postrouting_rule -o tun0 -j MASQUERADE
iptables -t mangle -A POSTROUTING -o tun0 -p tcp -m tcp --tcp-flags SYN,RST SYN -j TCPMSS --set-mss 59
#iptables -t mangle -A POSTROUTING -o tun0 -p tcp -m tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu
I don't know if it's related to my problem and I'm not able to test it. If someone could explain to me how to do it, I would gladly test it.
Are you running OpenVPN client on either the router or the PC? I didn't see any indications of this in your OpenWrt config and you haven't mentioned it previously.
PCs are stable. It's the rdp connection via VPN that causes problems: I start the rdp connection to a server and the connection succeeds. But the server immediately stops responding to the ping and the connection via rdp is unusable. When I terminate the rdp connection, after a few minutes the server responds to the ping. This leaving the VPN always active. If I try the rdp connection again, the same story happens. I tried to activate the VPN on one of the two PCs via wifi using my mobile phone as a hotspot: in this case everything works normally.
I am convinced that it is only the VPN connection that is unstable: I also tried to get help from a remote technical friend with teamviewer and during the various tests we had no other problems. Furthermore, at the same time, my family members used their devices without problems.
So if you replace the OpenWrt router with another one (or flash the vendor firmware back onto the OpenWrt device), it works? Can you please confirm that with an actual experiment (rather than the observation from the past)?
Yes I'm sure. I encountered this problem after flashing the Fritz!Box. I already tried with another router without problems a few days ago. I also have no problem via wifi using my cell phone as a hotspot.