[SOLVED]OpenVPN Log - N write UDPv4 [EMSGSIZE Path-MTU=1500]

Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking
Author Message
marcus83
DD-WRT User


Joined: 04 Jan 2024
Posts: 229

PostPosted: Wed Feb 21, 2024 14:30    Post subject: [SOLVED]OpenVPN Log - N write UDPv4 [EMSGSIZE Path-MTU=1500] Reply with quote
hi,

I noticed this on the VPN log, I tried all the settings retrieved online, but nothing, I wanted to know is this a problem or can it be ignored?


N write UDPv4 [EMSGSIZE Path-MTU=1500]: Message too large (fd=5 code=90)


Last edited by marcus83 on Thu Feb 22, 2024 3:55; edited 1 time in total
Sponsor
kernel-panic69
DD-WRT Guru


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

PostPosted: Wed Feb 21, 2024 16:41    Post subject: Reply with quote
If your MTU is set to 1500 for OpenVPN, then you didn't read the documentation thoroughly.
_________________
"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...
DD-WRT Releases 2023 (PolitePol)
DD-WRT Releases 2023 (RSS Everything)

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


Joined: 04 Jan 2024
Posts: 229

PostPosted: Wed Feb 21, 2024 16:48    Post subject: Reply with quote
kernel-panic69 wrote:
If your MTU is set to 1500 for OpenVPN, then you didn't read the documentation thoroughly.


yes I set it to the OpenVPN MTU default 1500, everything works fine, except this one I noticed, is it a problem?
Alozaros
DD-WRT Guru


Joined: 16 Nov 2015
Posts: 6447
Location: UK, London, just across the river..

PostPosted: Wed Feb 21, 2024 20:23    Post subject: Reply with quote
marcus83 wrote:
kernel-panic69 wrote:
If your MTU is set to 1500 for OpenVPN, then you didn't read the documentation thoroughly.


yes I set it to the OpenVPN MTU default 1500, everything works fine, except this one I noticed, is it a problem?


KP-69 i guess it is a precedent...inn'it..

kernel-panic69 wrote:
If your MTU is set to 1500 for OpenVPN, then you didn't read the documentation thoroughly.


marcus83 wrote:
yes I set it to the OpenVPN MTU default 1500, everything works fine, except this one I noticed, is it a problem?


you clearly didn't read the OpenVPN documentation...as somewhere there its mentioned, that the default tunnel MTU is set to 1400 and even better use less 1392 and so...you dont read, but set it as default 1500... Laughing

And this is wrong..

Razz Razz

_________________
Atheros
TP-Link WR740Nv1 ---DD-WRT 55630 WAP
TP-Link WR1043NDv2 -DD-WRT 55723 Gateway/DoT,Forced DNS,Ad-Block,Firewall,x4VLAN,VPN
TP-Link WR1043NDv2 -Gargoyle OS 1.15.x AP,DNS,QoS,Quotas
Qualcomm-Atheros
Netgear XR500 --DD-WRT 55779 Gateway/DoH,Forced DNS,AP Isolation,4VLAN,Ad-Block,Firewall,Vanilla
Netgear R7800 --DD-WRT 55819 Gateway/DoT,AD-Block,Forced DNS,AP&Net Isolation,x3VLAN,Firewall,Vanilla
Netgear R9000 --DD-WRT 55779 Gateway/DoT,AD-Block,AP Isolation,Firewall,Forced DNS,x2VLAN,Vanilla
Broadcom
Netgear R7000 --DD-WRT 55460 Gateway/SmartDNS/DoH,AD-Block,Firewall,Forced DNS,x3VLAN,VPN
NOT USING 5Ghz ANYWHERE
------------------------------------------------------
Stubby DNS over TLS I DNSCrypt v2 by mac913
marcus83
DD-WRT User


Joined: 04 Jan 2024
Posts: 229

PostPosted: Thu Feb 22, 2024 3:54    Post subject: Reply with quote
I was finally able to calculate the correct MTU of my connection.

1) Identifying correct MTU:

On Windows
ping -n 1 -l 1500 -f www.example.com

On Linux
ping -M do -s 1500 -c 1 www.example.com

On OSX
ping -D -v -s 1500 -c 1 www.example.com

Decrease the 1500 value by 10 each time, until the ping succeeds. Once the ping succeeds, the value used is the MTU you should use.


2) OpenVPN requires a value called the MSS to be set. The MSS is the value for the MTU minus 40)

Eg. If your MTU is 1460, your MSS is 1420

MSS = MTU - 40
MSS = 1460 - 40
MSS = 1420

then add the following value to the additional configuration:

mssfix 1420

DONE!
Display posts from previous:    Page 1 of 1
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