Need help configuring your VPN? Just post here and you'll get that help.
Moderators: TinCanTech , TinCanTech , TinCanTech , TinCanTech , TinCanTech , TinCanTech
slaver7
OpenVpn Newbie
Posts: 10 Joined: Sun Jan 26, 2020 9:09 am
Post
by slaver7 » Sun Jan 26, 2020 11:04 am
Hi,
If an ios client connect to the server, I get an error
Code: Select all
WARNING: 'link-mtu' is used inconsistently, local='link-mtu 1449', remote='link-mtu 1421'
Option inconsistency warnings triggering disconnect due to --opt-verify
Any reason why the link-mtu differs?
View Original server.conf
3
server 172.31.252.0 255.255.255.0
23
ca /etc/openvpn/keys/ca.crt
25
cert /etc/openvpn/keys/server.crt
27
key /etc/openvpn/keys/server.key
33
crl-verify /etc/openvpn/keys/crl.pem
35
tls-crypt /etc/openvpn/keys/ta.key
63
push "dhcp-option DISABLE-NBT"
77
tls-cipher TLS-ECDHE-ECDSA-WITH-AES-256-GCM-SHA384
89
plugin /usr/lib/openvpn/openvpn-auth-ldap.so /etc/openvpn/auth/auth-ldap.conf login
95
auth-user-pass-verify "/bin/bash -c 'test \"$common_name\" == \"$username\"'" via-env
101
explicit-exit-notify 0
103
remote-cert-tls client
1
server 172.31.252.0 255.255.255.0
8
ca /etc/openvpn/keys/ca.crt
9
cert /etc/openvpn/keys/server.crt
10
key /etc/openvpn/keys/server.key
13
crl-verify /etc/openvpn/keys/crl.pem
14
tls-crypt /etc/openvpn/keys/ta.key
22
push "dhcp-option DISABLE-NBT"
27
tls-cipher TLS-ECDHE-ECDSA-WITH-AES-256-GCM-SHA384
31
plugin /usr/lib/openvpn/openvpn-auth-ldap.so /etc/openvpn/auth/auth-ldap.conf login
33
auth-user-pass-verify "/bin/bash -c 'test \"$common_name\" == \"$username\"'" via-env
View Original client.ovpn
41
tls-cipher TLS-ECDHE-ECDSA-WITH-AES-256-GCM-SHA384
62
--STRIPPED INLINE CA CERT--
69
# 2048 bit OpenVPN static key
73
-----BEGIN OpenVPN Static key V1-----
75
-----END OpenVPN Static key V1-----
80
--STRIPPED INLINE KEY--
84
--STRIPPED INLINE CERT--
15
tls-cipher TLS-ECDHE-ECDSA-WITH-AES-256-GCM-SHA384
23
--STRIPPED INLINE CA CERT--
26
-----BEGIN OpenVPN Static key V1-----
27
-----END OpenVPN Static key V1-----
30
--STRIPPED INLINE KEY--
33
--STRIPPED INLINE CERT--
Should I disable "opt-verify" when ios clients want to connect?
TinCanTech
OpenVPN Protagonist
Posts: 11139 Joined: Fri Jun 03, 2016 1:17 pm
Post
by TinCanTech » Sun Jan 26, 2020 12:51 pm
slaver7 wrote: ↑ Sun Jan 26, 2020 11:04 am
WARNING: 'link-mtu' is used inconsistently
This is a known bug and can be ignored for the most part. Every log will see this message.
slaver7 wrote: ↑ Sun Jan 26, 2020 11:04 am
Option inconsistency warnings triggering disconnect due to --opt-verify
Need to see the full log to explain this ..
Please see:
viewtopic.php?f=30&t=22603#p68963
slaver7
OpenVpn Newbie
Posts: 10 Joined: Sun Jan 26, 2020 9:09 am
Post
by slaver7 » Sun Jan 26, 2020 10:53 pm
Code: Select all
Jan 26 11:45:51 ip-10-124-4-33 ovpn-server[16397]: <IP> TLS: Initial packet from [AF_INET6]::ffff:<IP>:63899, sid=19a5bff2 1d030f40
Jan 26 11:45:51 ip-10-124-4-33 ovpn-server[16397]: <IP> WARNING: Failed to stat CRL file, not (re)loading CRL.
Jan 26 11:45:51 ip-10-124-4-33 ovpn-server[16397]: <IP> VERIFY OK: depth=1, CN=server CA
Jan 26 11:45:51 ip-10-124-4-33 ovpn-server[16397]: <IP> VERIFY KU OK
Jan 26 11:45:51 ip-10-124-4-33 ovpn-server[16397]: <IP> Validating certificate extended key usage
Jan 26 11:45:51 ip-10-124-4-33 ovpn-server[16397]: <IP> ++ Certificate has EKU (str) TLS Web Client Authentication, expects TLS Web Client Authentication
Jan 26 11:45:51 ip-10-124-4-33 ovpn-server[16397]: <IP> VERIFY EKU OK
Jan 26 11:45:51 ip-10-124-4-33 ovpn-server[16397]: <IP> VERIFY OK: depth=0, CN=jkr
Jan 26 11:45:51 ip-10-124-4-33 ovpn-server[16397]: <IP> peer info: IV_GUI_VER=net.openvpn.connect.ios_3.1.1-2819
Jan 26 11:45:51 ip-10-124-4-33 ovpn-server[16397]: <IP> peer info: IV_VER=3.git::2ae73415
Jan 26 11:45:51 ip-10-124-4-33 ovpn-server[16397]: <IP> peer info: IV_PLAT=ios
Jan 26 11:45:51 ip-10-124-4-33 ovpn-server[16397]: <IP> peer info: IV_NCP=2
Jan 26 11:45:51 ip-10-124-4-33 ovpn-server[16397]: <IP> peer info: IV_TCPNL=1
Jan 26 11:45:51 ip-10-124-4-33 ovpn-server[16397]: <IP> peer info: IV_PROTO=2
Jan 26 11:45:51 ip-10-124-4-33 ovpn-server[16397]: <IP> PLUGIN_CALL: POST /usr/lib/openvpn/openvpn-auth-ldap.so/PLUGIN_AUTH_USER_PASS_VERIFY status=0
Jan 26 11:45:51 ip-10-124-4-33 ovpn-server[16397]: <IP> TLS: Username/Password authentication succeeded for username 'jkr'
Jan 26 11:45:51 ip-10-124-4-33 ovpn-server[16397]: <IP> WARNING: 'link-mtu' is used inconsistently, local='link-mtu 1549', remote='link-mtu 1521'
Jan 26 11:45:51 ip-10-124-4-33 ovpn-server[16397]: <IP> Option inconsistency warnings triggering disconnect due to --opt-verify
Jan 26 11:45:51 ip-10-124-4-33 ovpn-server[16397]: <IP> Control Channel: TLSv1.2, cipher TLSv1.2 ECDHE-ECDSA-AES256-GCM-SHA384, 521 bit EC, curve: secp521r1
Jan 26 11:45:51 ip-10-124-4-33 ovpn-server[16397]: <IP> [jkr] Peer Connection Initiated with [AF_INET6]::ffff:<IP>:63899
Jan 26 11:45:51 ip-10-124-4-33 ovpn-server[16397]: <IP> PUSH: Received control message: 'PUSH_REQUEST'
Jan 26 11:45:51 ip-10-124-4-33 ovpn-server[16397]: <IP> Delayed exit in 5 seconds
Jan 26 11:45:51 ip-10-124-4-33 ovpn-server[16397]: <IP> SENT CONTROL [jkr]: 'AUTH_FAILED' (status=1)
Jan 26 11:45:56 ip-10-124-4-33 ovpn-server[16397]: <IP> SIGTERM[soft,delayed-exit] received, client-instance exiting
If opt-verify is set a client with inconsistently config must be reject, right?
TinCanTech
OpenVPN Protagonist
Posts: 11139 Joined: Fri Jun 03, 2016 1:17 pm
Post
by TinCanTech » Sun Jan 26, 2020 11:27 pm
slaver7 wrote: ↑ Sun Jan 26, 2020 11:04 am
Should I disable "opt-verify" when ios clients want to connect?
Or fix the options which you chose to badly configure ..
slaver7
OpenVpn Newbie
Posts: 10 Joined: Sun Jan 26, 2020 9:09 am
Post
by slaver7 » Tue Jan 28, 2020 10:08 pm
How?
How can I fix the link-mtu issues described above if its a known bug? It just happens on the mobile clients
TinCanTech
OpenVPN Protagonist
Posts: 11139 Joined: Fri Jun 03, 2016 1:17 pm
Post
by TinCanTech » Wed Jan 29, 2020 1:04 am
The warning in the log is a known bug .. but it does not interfere with the function of your VPN.
slaver7
OpenVpn Newbie
Posts: 10 Joined: Sun Jan 26, 2020 9:09 am
Post
by slaver7 » Wed Jan 29, 2020 7:49 pm
Okay I get it.
Set
on the server configuration results in a
badly configuration in this case, since
opt-verify thread warnings as a reason to reject such clients?
TinCanTech
OpenVPN Protagonist
Posts: 11139 Joined: Fri Jun 03, 2016 1:17 pm
Post
by TinCanTech » Wed Jan 29, 2020 9:31 pm
I had to test this myself but you are correct, those warnings are not compatible with --opt-verify
slaver7
OpenVpn Newbie
Posts: 10 Joined: Sun Jan 26, 2020 9:09 am
Post
by slaver7 » Fri Jan 31, 2020 8:59 pm
Thanks for the confirmation.
antioch
OpenVpn Newbie
Posts: 9 Joined: Fri Sep 10, 2021 7:17 pm
Post
by antioch » Sun May 29, 2022 5:24 pm
TinCanTech wrote: ↑ Wed Jan 29, 2020 9:31 pm
I had to test this myself but you are correct, those
warnings are
not compatible with --
opt-verify
for clarification, youre saying that theres no way to employ opt-verify when mobile clients are present?
TinCanTech
OpenVPN Protagonist
Posts: 11139 Joined: Fri Jun 03, 2016 1:17 pm
Post
by TinCanTech » Sun May 29, 2022 6:53 pm
antioch wrote: ↑ Sun May 29, 2022 5:24 pm
for clarification, youre saying that theres no way to employ opt-verify when mobile clients are present?
No, that is not the point.
The point is : --
opt-verify will disconnect clients with incompatible settings.
The problem is : All clients will likely have some incompatible settings because Openvpn is free and nobody has the time to make this work as intended.
If you use it then you will have problems.