iOS OpenVPN Broke after latest update ipv4/ipv6 error

Official client software for OpenVPN Access Server and OpenVPN Cloud.
Post Reply
MisterSurface
OpenVPN User
Posts: 34
Joined: Wed May 10, 2017 10:08 pm

iOS OpenVPN Broke after latest update ipv4/ipv6 error

Post by MisterSurface » Wed Oct 25, 2023 8:25 pm

Hello

iOS phone on T-Mobile plan in the USA. No longer working on Mobile networks since a change, either to T-Mobile or with the recent OpenVPN Connect iOS update.

iOS 17.1
iPhone 14 Pro
Outer error on client

Code: Select all

Error: remote_list_error: Current remote server endpoint is undefined
Both client and server configurations are specifying udp protocol and udp4 version. It's been working for years with the same configurations.

Now the iOS phone connecting while only on T-Mobile Network is throwing an inner error as seen below (on wi-fi IPv4 it works fine). I have IPv6 disabled inbound to my network 100%.

Code: Select all

Endpoint address family (IPv6) is incompatible with transport protocol (udp4)
Zero packets make it to the VPN server from the iphone while on T-Mobile network. For what it's worth I have an Android phone that works on T-Mobile network and connects fine with the OpenVPN Connect (Android app).

here is the client config - this was working for years:

client

Code: Select all

dev tun
proto udp4
remote SCRUBBED_IP SCRUBBED_PORT
redirect-gateway def1
dhcp-option DNS 208.67.222.222
remote-cert-tls server
tls-version-min 1.2
auth SHA512
cipher AES-256-GCM
nobind
float
key-direction 1
<ca>
-----BEGIN CERTIFICATE-----
RUBBED
-----END CERTIFICATE-----
</ca>
<cert>
-----BEGIN CERTIFICATE-----
SCRUBBED
-----END CERTIFICATE-----
</cert>
<key>
-----BEGIN ENCRYPTED PRIVATE KEY-----
SCRUBBED
-----END ENCRYPTED PRIVATE KEY-----
</key>
<tls-auth>
#
# 2048 bit OpenVPN static key
#
-----BEGIN OpenVPN Static key V1-----
SCRUBBED
-----END OpenVPN Static key V1-----
</tls-auth>
below are the relevant lines in the server.conf

Code: Select all

local SCRUBBED_IP
port SCRUBBED_PORT
proto udp4
push tun-ipv4
dev tun
mssfix 1400
tun-mtu 1400
replay-window 64 30
ca SCRUBBED.crt
cert SCRUBBED.crt
key SCRUBBED.key
crl-verify SCRUBBED.pem
dh SCRUBBED.pem
server SCRUBBED_IP SCRUBBED_NETMASK
ifconfig-pool-persist SCRUBBED.txt
push "redirect-gateway def1"
push "dhcp-option DNS 208.67.222.222"
keepalive 10 120
tls-auth SCRUBBED.key 0
chroot jail
auth-nocache
prng blake2b512 64
askpass SCRUBBED
cipher AES-256-GCM
tls-version-min 1.2
auth SHA512
tls-server
key-direction 0
max-clients 10
user SCRUBBED
group SCRUBBED
persist-key
persist-tun
status SCRUBBED.log
log SCRUBBED.log
verb 6
remote-cert-eku "TLS Web Client Authentication"

jkoh
OpenVpn Newbie
Posts: 1
Joined: Sat Oct 28, 2023 7:28 am

Re: iOS OpenVPN Broke after latest update ipv4/ipv6 error

Post by jkoh » Sat Oct 28, 2023 7:31 am

Two workarounds I think....

1) "I checked the "Legacy Client" checkbox in the pfSense OpenVPN Client Export Utility and re-imported the generated profile into iOS OpenVPN Connect"

2) Edit .ovpn file with Notepad++
not working
remote f.q.d.n 1194 udp4

working
remote f.q.d.n 1194 udp

This worked for me... iPhone15, ios 17.0.3, version 3.4.0 (5457)

Post Reply