Hi,
I´m trying to set up OpenVPN on my ASUS RT-AC66U router. Into the house I have fibre and then I have a router (not wireless) from the fibre company with 8 LAN ports. I attach the ASUS router to one of these ports via a Netgear switch.
Yesterday I logged into the ASUS router setup menu and activated OpenVPN and exported the client file to the iOS app OpenVPN, while I was connected wirelessly to the Asus router. Then it workes fine to connect to the VPN from my iPhone. However, if I turn of wifi on my iPhone or are connected to another wifi (e.g. at work) i can not access the VPN at my home network. I´m not an expert in this topic, but could you give me a hint on what to do? For info, I have tried to turn off the firewall on the Asus router with no success.
This is the log from the iPhone for one successful connection (from inside network) and one unsuccessful from (outside network).
2020-03-29 22:12:39 ----- OpenVPN Start -----
OpenVPN core 3.git::2ae73415 ios arm64 64-bit PT_PROXY built on Dec 2 2019 14:44:28
2020-03-29 22:12:39 OpenVPN core 3.git::2ae73415 ios arm64 64-bit PT_PROXY built on Dec 2 2019 14:44:28
2020-03-29 22:12:39 Frame=512/2048/512 mssfix-ctrl=1250
2020-03-29 22:12:39 UNUSED OPTIONS
2 [nobind]
5 [sndbuf] [0]
6 [rcvbuf] [0]
2020-03-29 22:12:39 EVENT: RESOLVE
2020-03-29 22:12:39 Contacting [100.77.30.222]:1194/UDP via UDP
2020-03-29 22:12:39 EVENT: WAIT
2020-03-29 22:12:39 Connecting to [A64960B991DD333CF2B4EC5304A4019BC.asuscomm.com]:1194 (100.77.30.222) via UDPv4
2020-03-29 22:12:39 EVENT: CONNECTING
2020-03-29 22:12:39 Tunnel Options:V4,dev-type tun,link-mtu 1542,tun-mtu 1500,proto UDPv4,comp-lzo,cipher BF-CBC,auth SHA1,keysize 128,key-method 2,tls-client
2020-03-29 22:12:39 Creds: Username/Password
2020-03-29 22:12:39 Peer Info:
IV_GUI_VER=net.openvpn.connect.ios 3.1.1-2819
IV_VER=3.git::2ae73415
IV_PLAT=ios
IV_NCP=2
IV_TCPNL=1
IV_PROTO=2
IV_LZO_STUB=1
IV_COMP_STUB=1
IV_COMP_STUBv2=1
IV_BS64DL=1
2020-03-29 22:12:39 VERIFY OK : depth=0
cert. version : 3
serial number : 01
issuer name : C=TW, ST=TW, L=Taipei, O=ASUS, CN=RT-AC66U, emailAddress=me@myhost.mydomain
subject name : C=TW, ST=TW, L=Taipei, O=ASUS, CN=RT-AC66U, emailAddress=me@myhost.mydomain
issued on : 2019-09-28 08:46:30
expires on : 2029-09-25 08:46:30
signed using : RSA with SHA1
RSA key size : 1024 bits
basic constraints : CA=false
cert. type : SSL Server
key usage : Digital Signature, Key Encipherment
ext key usage : TLS Web Server Authentication
2020-03-29 22:12:40 SSL Handshake: TLSv1.0/TLS-DHE-RSA-WITH-3DES-EDE-CBC-SHA
2020-03-29 22:12:40 Session is ACTIVE
2020-03-29 22:12:40 EVENT: GET_CONFIG
2020-03-29 22:12:40 Sending PUSH_REQUEST to server...
2020-03-29 22:12:40 OPTIONS:
0 [route] [192.168.2.0] [255.255.255.0] [vpn_gateway] [500]
1 [redirect-gateway] [def1]
2 [dhcp-option] [DNS] [192.168.2.1]
3 [route] [10.8.0.1]
4 [topology] [net30]
5 [ping] [15]
6 [ping-restart] [60]
7 [ifconfig] [10.8.0.6] [10.8.0.5]
2020-03-29 22:12:40 PROTOCOL OPTIONS:
cipher: BF-CBC
digest: SHA1
compress: LZO_STUB
peer ID: -1
2020-03-29 22:12:40 EVENT: ASSIGN_IP
2020-03-29 22:12:40 NIP: preparing TUN network settings
2020-03-29 22:12:40 NIP: init TUN network settings with endpoint: 100.77.30.222
2020-03-29 22:12:40 NIP: adding IPv4 address to network settings 10.8.0.6/255.255.255.252
2020-03-29 22:12:40 NIP: adding (included) IPv4 route 10.8.0.4/30
2020-03-29 22:12:40 NIP: adding (included) IPv4 route 192.168.2.0/24
2020-03-29 22:12:40 NIP: adding (included) IPv4 route 10.8.0.1/32
2020-03-29 22:12:40 NIP: redirecting all IPv4 traffic to TUN interface
2020-03-29 22:12:40 NIP: adding DNS 192.168.2.1
2020-03-29 22:12:40 Connected via NetworkExtensionTUN
2020-03-29 22:12:40 Per-Key Data Limit: 48000000/48000000
2020-03-29 22:12:40 LZO-ASYM init swap=0 asym=1
2020-03-29 22:12:40 Comp-stub init swap=0
2020-03-29 22:12:40 EVENT: CONNECTED magnushofwing@A64960B991DD333CF2B4EC5304A4019BC.asuscomm.com:1194 (100.77.30.222) via /UDPv4 on NetworkExtensionTUN/10.8.0.6/ gw=[/]
2020-03-29 22:12:48 EVENT: DISCONNECTED
2020-03-29 22:12:48 Raw stats on disconnect:
BYTES_IN : 7142
BYTES_OUT : 4406
PACKETS_IN : 61
PACKETS_OUT : 63
TUN_BYTES_IN : 740
TUN_BYTES_OUT : 1577
TUN_PACKETS_IN : 11
TUN_PACKETS_OUT : 10
2020-03-29 22:12:48 Performance stats on disconnect:
CPU usage (microseconds): 237892
Tunnel compression ratio (uplink): 5.95405
Tunnel compression ratio (downlink): 4.52885
Network bytes per CPU second: 48543
Tunnel bytes per CPU second: 9739
2020-03-29 22:12:52 1
2020-03-30 06:17:38 ----- OpenVPN Start -----
OpenVPN core 3.git::2ae73415 ios arm64 64-bit PT_PROXY built on Dec 2 2019 14:44:28
2020-03-30 06:17:38 OpenVPN core 3.git::2ae73415 ios arm64 64-bit PT_PROXY built on Dec 2 2019 14:44:28
2020-03-30 06:17:38 Frame=512/2048/512 mssfix-ctrl=1250
2020-03-30 06:17:38 UNUSED OPTIONS
2 [nobind]
5 [sndbuf] [0]
6 [rcvbuf] [0]
2020-03-30 06:17:38 EVENT: RESOLVE
2020-03-30 06:17:39 Contacting [100.77.30.222]:1194/UDP via UDP
2020-03-30 06:17:39 EVENT: WAIT
2020-03-30 06:17:39 Connecting to [A64960B991DD333CF2B4EC5304A4019BC.asuscomm.com]:1194 (100.77.30.222) via UDPv4
2020-03-30 06:17:49 Server poll timeout, trying next remote entry...
2020-03-30 06:17:49 EVENT: RECONNECTING
2020-03-30 06:17:49 EVENT: RESOLVE
2020-03-30 06:17:49 Contacting [100.77.30.222]:1194/UDP via UDP
2020-03-30 06:17:49 EVENT: WAIT
2020-03-30 06:17:49 Connecting to [A64960B991DD333CF2B4EC5304A4019BC.asuscomm.com]:1194 (100.77.30.222) via UDPv4
2020-03-30 06:17:59 Server poll timeout, trying next remote entry...
2020-03-30 06:17:59 EVENT: RECONNECTING
2020-03-30 06:17:59 EVENT: RESOLVE
2020-03-30 06:17:59 Contacting [100.77.30.222]:1194/UDP via UDP
2020-03-30 06:17:59 EVENT: WAIT
2020-03-30 06:17:59 Connecting to [A64960B991DD333CF2B4EC5304A4019BC.asuscomm.com]:1194 (100.77.30.222) via UDPv4
2020-03-30 06:18:09 EVENT: CONNECTION_TIMEOUT [ERR]
2020-03-30 06:18:09 Raw stats on disconnect:
BYTES_OUT : 406
PACKETS_OUT : 29
CONNECTION_TIMEOUT : 1
N_RECONNECT : 2
2020-03-30 06:18:09 Performance stats on disconnect:
CPU usage (microseconds): 59829
Network bytes per CPU second: 6786
Tunnel bytes per CPU second: 0
2020-03-30 06:18:09 EVENT: DISCONNECTED
2020-03-30 06:18:09 Raw stats on disconnect:
BYTES_OUT : 406
PACKETS_OUT : 29
CONNECTION_TIMEOUT : 1
N_RECONNECT : 2
2020-03-30 06:18:09 Performance stats on disconnect:
CPU usage (microseconds): 82443
Network bytes per CPU second: 4924
Tunnel bytes per CPU second: 0
2020-03-30 06:46:27 1
2020-03-30 06:46:27 ----- OpenVPN Start -----
OpenVPN core 3.git::2ae73415 ios arm64 64-bit PT_PROXY built on Dec 2 2019 14:44:28
2020-03-30 06:46:27 OpenVPN core 3.git::2ae73415 ios arm64 64-bit PT_PROXY built on Dec 2 2019 14:44:28
2020-03-30 06:46:27 Frame=512/2048/512 mssfix-ctrl=1250
2020-03-30 06:46:27 UNUSED OPTIONS
2 [nobind]
5 [sndbuf] [0]
6 [rcvbuf] [0]
2020-03-30 06:46:27 EVENT: RESOLVE
2020-03-30 06:46:29 Contacting [100.77.30.222]:1194/UDP via UDP
2020-03-30 06:46:29 EVENT: WAIT
2020-03-30 06:46:29 Connecting to [A64960B991DD333CF2B4EC5304A4019BC.asuscomm.com]:1194 (100.77.30.222) via UDPv4
2020-03-30 06:46:37 Server poll timeout, trying next remote entry...
2020-03-30 06:46:37 EVENT: RECONNECTING
2020-03-30 06:46:37 EVENT: RESOLVE
2020-03-30 06:46:37 Contacting [100.77.30.222]:1194/UDP via UDP
2020-03-30 06:46:37 EVENT: WAIT
2020-03-30 06:46:37 Connecting to [A64960B991DD333CF2B4EC5304A4019BC.asuscomm.com]:1194 (100.77.30.222) via UDPv4
2020-03-30 06:46:48 Server poll timeout, trying next remote entry...
2020-03-30 06:46:48 EVENT: RECONNECTING
2020-03-30 06:46:48 EVENT: RESOLVE
2020-03-30 06:46:48 Contacting [100.77.30.222]:1194/UDP via UDP
2020-03-30 06:46:48 EVENT: WAIT
2020-03-30 06:46:48 Connecting to [A64960B991DD333CF2B4EC5304A4019BC.asuscomm.com]:1194 (100.77.30.222) via UDPv4
2020-03-30 06:46:58 EVENT: CONNECTION_TIMEOUT [ERR]
2020-03-30 06:46:58 Raw stats on disconnect:
BYTES_OUT : 406
PACKETS_OUT : 29
CONNECTION_TIMEOUT : 1
N_RECONNECT : 2
2020-03-30 06:46:58 Performance stats on disconnect:
CPU usage (microseconds): 59874
Network bytes per CPU second: 6780
Tunnel bytes per CPU second: 0
2020-03-30 06:46:58 EVENT: DISCONNECTED
2020-03-30 06:46:58 Raw stats on disconnect:
BYTES_OUT : 406
PACKETS_OUT : 29
CONNECTION_TIMEOUT : 1
N_RECONNECT : 2
2020-03-30 06:46:58 Performance stats on disconnect:
CPU usage (microseconds): 82997
Network bytes per CPU second: 4891
Tunnel bytes per CPU second: 0