j.a.mcguire wroteServer:
[root@diesel /home/diesel/jim]# openvpn --mtu-test --dev tun0 --port 30443
Fri Oct 24 16:14:37 2014 OpenVPN 2.3.4 i386-portbld-freebsd10.0 [SSL (OpenSSL)] [LZO] [MH] [IPv6] built on Jun 8 2014
Fri Oct 24 16:14:37 2014 library versions: OpenSSL 1.0.1j 15 Oct 2014, LZO 2.08
..
Fri Oct 24 16:14:53 2014 NOTE: Beginning empirical MTU test -- results should be available in 3 to 4 minutes.
Fri Oct 24 16:18:34 2014 NOTE: failed to empirically measure MTU (requires OpenVPN 1.5 or higher at other end of connection).
j.a.mcguire wroteClient:
C:\Program Files\OpenVPN\bin>.\openvpn --remote server.ip 30443 --proto u
dp --dev tun --mtu-test --ifconfig 192.168.50.2 192.168.50.1
Fri Oct 24 16:14:42 2014 OpenVPN 2.3.4 x86_64-w64-mingw32 [SSL (OpenSSL)] [LZO]
[PKCS11] [IPv6] built on Aug 7 2014
Fri Oct 24 16:14:42 2014 library versions: OpenSSL 1.0.1i 6 Aug 2014, LZO 2.05
...
Fri Oct 24 16:14:53 2014 NOTE: Beginning empirical MTU test -- results should be available in 3 to 4 minutes.
Fri Oct 24 16:18:34 2014 NOTE: failed to empirically measure MTU (requires OpenVPN 1.5 or higher at other end of connection).
Well .. that is strange.
My result:
Server:
Sat Oct 25 14:43:05 2014 us=25880 [b]OpenVPN 2.3.4 i686-pc-linux-gnu[/b] [SSL (OpenSSL)] [LZO] [EPOLL] [MH] [IPv6] built on May 3 2014
Sat Oct 25 14:43:05 2014 us=25880 library versions: OpenSSL 1.0.1j 15 Oct 2014, LZO 2.08
Client:
Sat Oct 25 14:43:16 2014 us=203125 [b]OpenVPN 2.3.4 i686-w64-mingw32[/b] [SSL (OpenSSL)] [LZO] [PKCS11] [IPv6] built on Aug 7 2014
Sat Oct 25 14:43:16 2014 us=203125 library versions: OpenSSL 1.0.1i 6 Aug 2014, LZO 2.05
...
Sat Oct 25 14:46:33 2014 us=125000 NOTE: Empirical MTU test completed [Tried,Actual] local->remote=[1557,1557] remote->local=[1557,1557]
I have never really had to use this function but it does work for me, perhaps you must only set
--mtu-test from one side, I only set it on the client.