OpenVPN defect, bug, on MTU handling - part #2

Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking
Goto page Previous  1, 2
Author Message
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 16758
Location: Texas, USA

PostPosted: Sat Nov 30, 2024 16:07    Post subject: Reply with quote
I'm so glad the experts chimed in. But as I said earlier in this thread, you want to do things your own way. And this is why I would not enter into contractual agreement with Portlandia IT LLC.

https://support.ovpn.com/hc/en-us/articles/18741317398420-How-to-connect-using-MTU
https://support.ovpn.com/hc/en-us/articles/25286421412244-Explanation-MTU
Quote:
The default MTU value of OpenVPN is 1500 and for WireGuard it is 1420. If you have issues with certain websites or your VPN connection occasionally drops, try changing the MTU value. The MTU value you need to set differs depending on OpenVPN or WireGuard. Some common MTU values you can try for WireGuard are 1412, 1400, and 1372.

https://forums.openvpn.net/viewtopic.php?t=25039 (one example query on their forum)
https://forums.openvpn.net/viewtopic.php?t=32309 (your thread on their forum)
And, of course, the DD-WRT docs from this forum.

_________________
"Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT
Pogo - A minimal level of ability is expected and needed...
RSS feed for DD-WRT releases (2025)
RSS feed for DD-WRT releases (2024)
RSS feed for DD-WRT releases (2023)

----------------------
Linux User #377467 counter.li.org / linuxcounter.net
Sponsor
Sp1derman
DD-WRT User


Joined: 16 Jun 2006
Posts: 230
Location: Germany, BW

PostPosted: Mon Dec 02, 2024 1:56    Post subject: Reply with quote
tedm wrote:
I'm no longer seeing the black hole that I was seeing back in 2021, and thus the 1400 probably needs to be defaulted to something else now.

That's because you are now on TCP (proto tcp4-client), in 2021 you were on UDP.
Also because of that it makes no sense to handle with MSSfix and Fragment, that is for UDP.
With tunnel-proto TCP you have no ping black-holes or ghost packets.

Setting tunnel MTU to "0" means server and client try to find best setting by themselfes, what can work.
In your case it works, it looks like you have under Setup/Basic Setup an eth0-MTU of 1500 and for openVPN-tunnel with TCP4 thats the correct value (egc and I myself have 1492, depends on your ISP).

Quote:
PING 172.16.1.16 (172.16.1.16) 1473(1501) bytes of data.
ping: local error: message too long, mtu=1500

Means to send a 1473 data-packet you need a MTU of 1501, but you only have MTU of 1500 so packet is too big.

You mix up MTU und ping-packet-size(= only the data-size).
(in your 2021 posting you know that, but you maybe forgot Wink. )

OK, best you check your ISP-MTU with a don't-fragment ping to internet (maybe 9.9.9.9), if you can go up to 1472, your MTU 1500 is ok (for eth0 and Tunnel MTU).
I have non-fragment ping 1464 so my MTUs are both 1492.

I switched to tunnel proto TCP for the same reason, as MTU-settings with UDP are a pita.
But I'm still on an old 55 build with my site-to-site Bridge (TAP), but will update to newest build soon and then I will give UDP a new try.
Goto page Previous  1, 2 Display posts from previous:    Page 2 of 2
Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum