OpenVPN connection problem on mobile network

Post your questions about SoftEther VPN software here. Please answer questions if you can afford.
Post Reply
AleXSR700
Posts: 19
Joined: Wed Oct 16, 2019 7:35 am

OpenVPN connection problem on mobile network

Post by AleXSR700 » Tue Jun 09, 2020 8:00 am

Hello everyone,
I keep trying to get it to work and it has become frustrating. But I am getting closer.
I have my server setup and can connect as long as I am in my own WiFi. I am using the openvpn_remote_access_l3.ovpn file created by Softether.

But as soon as I try to use the same profile through my mobile network (4G/LTE), it fails to connect.
I have tried the IPv6 adress that OpenVPN connect displays when I connect successfully via WiFi. I tried my testname.softether.net. I tried testname.v6.softether.net.

Somehow it just won't work.

My setup:
- DS-Lite internet connection
- Cable router -> Switch -> NAS running the Softether server (Linux)

Can anybody help me?

Here are the logs created by OpenVPN Connect and by Softether. It seems that when I try to connect from my mobile network I don't even reach the server. No log is being created.
But when I connect my Windows 10 PC to my phone via Hotspot and then connect to my VPN using the Softether client, it works. So same network but Softether Windows client vs. OpenVPN Connect for Android.
By the way, SoftEther does not seem to create a new log file when I connect from my Windows 10 PC from outside the network. That's why it's missing.


Working WiFi OpenVPN Connect log:

Code: Select all

09:25:07.970 -- ----- OpenVPN Start -----

09:25:07.971 -- EVENT: CORE_THREAD_ACTIVE

09:25:07.974 -- OpenVPN core 3.git::f225fcd0:Release android arm64 64-bit PT_PROXY built on Mar  3 2020 21:07:24

09:25:07.975 -- Frame=512/2048/512 mssfix-ctrl=1250

09:25:07.975 -- UNUSED OPTIONS
5 [resolv-retry] [infinite] 
6 [nobind] 
7 [persist-key] 
8 [persist-tun] 
10 [verb] [3] 

09:25:07.976 -- EVENT: RESOLVE

09:25:07.979 -- Contacting [2a02:810d:****:3eb4:****:abff:****:cbd4]:1194 via UDP

09:25:07.980 -- EVENT: WAIT

09:25:07.982 -- Connecting to [2a02:810d:****:3eb4:****:abff:****:cbd4]:1194 (2a02:810d:****:3eb4:****:abff:****:cbd4) via UDPv6

09:25:07.983 -- EVENT: CONNECTING

09:25:07.985 -- Tunnel Options:V4,dev-type tun,link-mtu 1557,tun-mtu 1500,proto UDPv4,cipher AES-128-CBC,auth SHA1,keysize 128,key-method 2,tls-client

09:25:07.985 -- Creds: Username/Password

09:25:07.985 -- Peer Info:
IV_GUI_VER=OC30Android
IV_VER=3.git::f225fcd0:Release
IV_PLAT=android
IV_NCP=2
IV_TCPNL=1
IV_PROTO=2


09:25:08.047 -- VERIFY OK : depth=0
cert. version     : 3
serial number     : 00
issuer name       : CN=****.softether.net, O=****.softether.net, OU=****.softether.net, C=US
subject name      : CN=****.softether.net, O=****.softether.net, OU=****.softether.net, C=US
issued  on        : 2019-10-20 12:00:07
expires on        : 2037-12-31 12:00:07
signed using      : RSA with SHA-256
RSA key size      : 2048 bits
basic constraints : CA=true
key usage         : Digital Signature, Non Repudiation, Key Encipherment, Data Encipherment, Key Cert Sign, CRL Sign
ext key usage     : TLS Web Server Authentication, TLS Web Client Authentication, Code Signing, E-mail Protection, ???, ???, ???, Time Stamping, OCSP Signing


09:25:08.081 -- SSL Handshake: TLSv1.2/TLS-ECDHE-RSA-WITH-AES-256-GCM-SHA384

09:25:08.082 -- Session is ACTIVE

09:25:08.083 -- EVENT: GET_CONFIG

09:25:08.087 -- Sending PUSH_REQUEST to server...

09:25:08.260 -- OPTIONS:
0 [ping] [3] 
1 [ping-restart] [10] 
2 [ifconfig] [192.168.30.17] [192.168.30.18] 
3 [dhcp-option] [DNS] [8.8.8.8] 
4 [dhcp-option] [DNS] [8.8.8.4] 
5 [route-gateway] [192.168.30.18] 
6 [redirect-gateway] [def1] 


09:25:08.261 -- PROTOCOL OPTIONS:
  cipher: AES-128-CBC
  digest: SHA1
  compress: NONE
  peer ID: -1

09:25:08.262 -- EVENT: ASSIGN_IP

09:25:08.295 -- Connected via tun

09:25:08.295 -- EVENT: CONNECTED info='****@[2a02:810d:****:3eb4:****:abff:****:cbd4]:1194 (2a02:810d:****:3eb4:****:abff:****:cbd4) via /UDPv6 on tun/192.168.30.17/ gw=[192.168.30.18/]' trans=TO_CONNECTED
Not working 4G/LTE OpenVPN log:

Code: Select all

09:22:03.291 -- EVENT: RECONNECTING

09:22:03.295 -- EVENT: RESOLVE

09:22:03.297 -- Contacting [2a02:810d:****:3eb4:****:abff:****:cbd4]:1194 via UDP

09:22:03.298 -- EVENT: WAIT

09:22:03.301 -- Transport Error: UDP connect error on '2a02:810d:****:3eb4:****:abff:****:cbd4:1194' ([2a02:810d:****:3eb4:****:abff:****:cbd4]:1194): Network is unreachable

09:22:03.301 -- Client terminated, restarting in 2000 ms...

09:22:05.296 -- EVENT: RECONNECTING

09:22:05.307 -- EVENT: RESOLVE

09:22:05.313 -- Contacting [2a02:810d:****:3eb4:****:abff:****:cbd4]:1194 via UDP

09:22:05.314 -- EVENT: WAIT

09:22:05.320 -- Transport Error: UDP connect error on '2a02:810d:****:3eb4:****:abff:****:cbd4:1194' ([2a02:810d:****:3eb4:****:abff:****:cbd4]:1194): Network is unreachable

09:22:05.321 -- Client terminated, restarting in 2000 ms...

09:22:07.307 -- EVENT: RECONNECTING

09:22:07.313 -- EVENT: RESOLVE

09:22:07.317 -- Contacting [2a02:810d:****:3eb4:****:abff:****:cbd4]:1194 via UDP

09:22:07.318 -- EVENT: WAIT

09:22:07.326 -- Transport Error: UDP connect error on '2a02:810d:****:3eb4:****:abff:****:cbd4:1194' ([2a02:810d:****:3eb4:****:abff:****:cbd4]:1194): Network is unreachable

09:22:07.327 -- Client terminated, restarting in 2000 ms...

09:22:09.326 -- EVENT: RECONNECTING

09:22:09.334 -- EVENT: RESOLVE

09:22:09.345 -- Contacting [2a02:810d:****:3eb4:****:abff:****:cbd4]:1194 via UDP

09:22:09.346 -- EVENT: WAIT

09:22:09.352 -- Transport Error: UDP connect error on '2a02:810d:****:3eb4:****:abff:****:cbd4:1194' ([2a02:810d:****:3eb4:****:abff:****:cbd4]:1194): Network is unreachable

09:22:09.353 -- Client terminated, restarting in 2000 ms...
Working Wifi SoftEther log:

Code: Select all

2020-06-09 09:36:43.366 SecureNAT: The UDP session 62408 has been deleted.
2020-06-09 09:36:47.926 SecureNAT: The UDP session 64937 has been created. Connection source 192.168.30.13:32501, Connection destination 8.8.8.8:53
2020-06-09 09:36:48.006 SecureNAT: The TCP session 64938 has been created. Connection source 192.168.30.13:49550, Connection destination 52.97.186.114:443
2020-06-09 09:36:49.467 SecureNAT: The UDP session 62999 has been deleted.
2020-06-09 09:36:49.467 SecureNAT: The UDP session 63000 has been deleted.
2020-06-09 09:36:50.506 SecureNAT: The TCP session 64939 has been created. Connection source 192.168.30.13:56970, Connection destination 185.60.216.54:443
2020-06-09 09:36:51.146 SecureNAT: The UDP session 64940 has been created. Connection source 192.168.0.101:4172, Connection destination 255.255.255.255:1900
2020-06-09 09:36:51.167 SecureNAT: The UDP session 64940 has been deleted.
2020-06-09 09:36:56.387 The connection "CID-13" (IP address: 2a02:****:9040:****:8906:4428:****:4776, Host name: 2a02:****:9040:****:8906:4428:****:4776, Port number: 36938, Client name: "OpenVPN Client", Version: 4.34, Build: 9745) is attempting to connect to the Virtual Hub. The auth type provided is "External server authentication" and the user name is "Testname".
2020-06-09 09:36:56.387 Connection "CID-13": Successfully authenticated as user "Testname".
2020-06-09 09:36:56.387 Connection "CID-13": The new session "SID-Testname-[OPENVPN_L3]-10" has been created. (IP address: 2a02:****:9040:****:8906:4428:****:4776, Port number: 36938, Physical underlying protocol: "Legacy VPN - OPENVPN_L3")
2020-06-09 09:36:56.387 Session "SID-Testname-[OPENVPN_L3]-10": The parameter has been set. Max number of TCP connections: 1, Use of encryption: Yes, Use of compression: No, Use of Half duplex communication: No, Timeout: 20 seconds.
2020-06-09 09:36:56.406 Session "SID-Testname-[OPENVPN_L3]-10": VPN Client details: (Client product name: "OpenVPN Client", Client version: 434, Client build number: 9745, Server product name: "SoftEther VPN Server (32 bit)", Server version: 434, Server build number: 9745, Client OS name: "OpenVPN Client", Client OS version: "-", Client product ID: "-", Client host name: "", Client IP address: "2a02:****:9040:****:8906:4428:****:4776", Client port number: 36938, Server host name: "2a02:810d:****:3eb4:****:abff:****:cbd4", Server IP address: "2a02:810d:****:3eb4:****:abff:****:cbd4", Server port number: 1194, Proxy host name: "", Proxy IP address: "0.0.0.0", Proxy port number: 0, Virtual Hub name: "Testname", Client unique ID: "****")
2020-06-09 09:36:56.506 SecureNAT: The DHCP entry 8 has been created. MAC address: ****, IP address: 192.168.30.17, host name: , expiration span: 7200 seconds
2020-06-09 09:36:56.506 Session "SID-SECURENAT-1": The DHCP server of host "****" (192.168.30.1) on this session allocated, for host "SID-Testname-[OPENVPN_L3]-10" on another session "****", the new IP address 192.168.30.17.
2020-06-09 09:36:56.626 SecureNAT: The TCP session 64941 has been created. Connection source 192.168.30.17:45530, Connection destination 216.58.207.132:443
2020-06-09 09:36:56.626 SecureNAT: The TCP session 64942 has been created. Connection source 192.168.30.17:50586, Connection destination 52.97.186.98:443
2020-06-09 09:36:56.626 SecureNAT: The TCP session 64943 has been created. Connection source 192.168.30.17:59074, Connection destination 108.128.14.142:5229
2020-06-09 09:36:56.686 SecureNAT: The UDP session 64944 has been created. Connection source 192.168.30.17:34627, Connection destination 8.8.8.8:53
2020-06-09 09:36:56.686 SecureNAT: The TCP session 64945 has been created. Connection source 192.168.30.17:44492, Connection destination 35.167.243.194:7275
2020-06-09 09:36:56.767 SecureNAT: The UDP session 64946 has been created. Connection source 192.168.30.17:9426, Connection destination 8.8.8.8:53
2020-06-09 09:36:56.767 SecureNAT: The TCP session 64947 has been created. Connection source 192.168.30.17:34508, Connection destination 216.58.207.142:80
2020-06-09 09:36:56.786 SecureNAT: The TCP session 64948 has been created. Connection source 192.168.30.17:52230, Connection destination 69.171.250.34:443
2020-06-09 09:36:56.866 SecureNAT: The TCP session 64949 has been created. Connection source 192.168.30.17:60666, Connection destination 157.240.223.61:5222
2020-06-09 09:36:57.546 SecureNAT: The UDP session 64950 has been created. Connection source 192.168.30.17:63477, Connection destination 8.8.8.8:53
2020-06-09 09:36:57.626 SecureNAT: The TCP session 64951 has been created. Connection source 192.168.30.17:42046, Connection destination 142.250.13.188:5228
2020-06-09 09:36:58.726 SecureNAT: The TCP session 64952 has been created. Connection source 192.168.30.17:37116, Connection destination 157.240.223.17:80
2020-06-09 09:37:00.806 SecureNAT: The UDP session 64953 has been created. Connection source 192.168.30.17:29123, Connection destination 8.8.8.8:53
2020-06-09 09:37:00.806 SecureNAT: The UDP session 64954 has been created. Connection source 192.168.30.17:44792, Connection destination 8.8.8.8:53
2020-06-09 09:37:00.886 SecureNAT: The TCP session 64955 has been created. Connection source 192.168.30.17:45150, Connection destination 74.208.5.13:993
2020-06-09 09:37:00.886 SecureNAT: The TCP session 64956 has been created. Connection source 192.168.30.17:56710, Connection destination 62.201.172.16:993
2020-06-09 09:37:01.996 SecureNAT: The TCP session 64957 has been created. Connection source 192.168.30.17:56712, Connection destination 62.201.172.16:993
2020-06-09 09:37:02.576 Session "SID-Testname-[OPENVPN_L3]-9": The session has been terminated. The statistical information is as follows: Total outgoing data size: 2378361 bytes, Total incoming data size: 119530 bytes.
2020-06-09 09:37:02.736 SecureNAT: The TCP session 64958 has been created. Connection source 192.168.30.17:56714, Connection destination 62.201.172.16:993
2020-06-09 09:37:02.916 SecureNAT: The TCP session 64959 has been created. Connection source 192.168.30.17:45158, Connection destination 74.208.5.13:993
2020-06-09 09:37:03.416 SecureNAT: The TCP session 64960 has been created. Connection source 192.168.30.17:56718, Connection destination 62.201.172.16:993
2020-06-09 09:37:04.096 SecureNAT: The TCP session 64961 has been created. Connection source 192.168.30.17:56720, Connection destination 62.201.172.16:993
2020-06-09 09:37:04.476 SecureNAT: The TCP session 64962 has been created. Connection source 192.168.30.17:45164, Connection destination 74.208.5.13:993
2020-06-09 09:37:04.816 SecureNAT: The TCP session 64963 has been created. Connection source 192.168.30.17:56724, Connection destination 62.201.172.16:993
2020-06-09 09:37:05.536 SecureNAT: The TCP session 64964 has been created. Connection source 192.168.30.17:56726, Connection destination 62.201.172.16:993
2020-06-09 09:37:05.876 SecureNAT: The TCP session 64965 has been created. Connection source 192.168.30.17:45170, Connection destination 74.208.5.13:993
2020-06-09 09:37:06.236 SecureNAT: The TCP session 64966 has been created. Connection source 192.168.30.17:56730, Connection destination 62.201.172.16:993
2020-06-09 09:37:06.936 SecureNAT: The TCP session 64967 has been created. Connection source 192.168.30.17:56732, Connection destination 62.201.172.16:993
2020-06-09 09:37:07.256 SecureNAT: The TCP session 64945 has been deleted.
2020-06-09 09:37:07.256 SecureNAT: The TCP session 64968 has been created. Connection source 192.168.30.17:45176, Connection destination 74.208.5.13:993
2020-06-09 09:37:07.676 SecureNAT: The TCP session 64969 has been created. Connection source 192.168.30.17:56736, Connection destination 62.201.172.16:993
2020-06-09 09:37:08.396 SecureNAT: The TCP session 64970 has been created. Connection source 192.168.30.17:56738, Connection destination 62.201.172.16:993
2020-06-09 09:37:08.776 SecureNAT: The TCP session 64971 has been created. Connection source 192.168.30.17:45182, Connection destination 74.208.5.13:993
2020-06-09 09:37:09.136 SecureNAT: The TCP session 64972 has been created. Connection source 192.168.30.17:56742, Connection destination 62.201.172.16:993
2020-06-09 09:37:09.836 SecureNAT: The TCP session 64973 has been created. Connection source 192.168.30.17:56744, Connection destination 62.201.172.16:993
2020-06-09 09:37:10.156 SecureNAT: The TCP session 64974 has been created. Connection source 192.168.30.17:45188, Connection destination 74.208.5.13:993
2020-06-09 09:37:11.236 SecureNAT: The TCP session 64975 has been created. Connection source 192.168.30.17:56748, Connection destination 62.201.172.16:993
2020-06-09 09:37:11.676 SecureNAT: The UDP session 64823 has been deleted.
2020-06-09 09:37:11.699 SecureNAT: The TCP session 64976 has been created. Connection source 192.168.30.17:45192, Connection destination 74.208.5.13:993
2020-06-09 09:37:12.656 SecureNAT: The TCP session 64941 has been deleted.
2020-06-09 09:37:12.856 SecureNAT: The TCP session 64977 has been created. Connection source 192.168.30.17:56752, Connection destination 62.201.172.16:993
2020-06-09 09:37:13.117 SecureNAT: The TCP session 64978 has been created. Connection source 192.168.30.17:45196, Connection destination 74.208.5.13:993
2020-06-09 09:37:13.576 SecureNAT: The TCP session 64979 has been created. Connection source 192.168.30.17:56756, Connection destination 62.201.172.16:993
2020-06-09 09:37:14.277 SecureNAT: The TCP session 64980 has been created. Connection source 192.168.30.17:56758, Connection destination 62.201.172.16:993
2020-06-09 09:37:14.696 SecureNAT: The TCP session 64981 has been created. Connection source 192.168.30.17:45202, Connection destination 74.208.5.13:993
2020-06-09 09:37:14.956 SecureNAT: The TCP session 64982 has been created. Connection source 192.168.30.17:56762, Connection destination 62.201.172.16:993
2020-06-09 09:37:15.096 SecureNAT: The UDP session 64983 has been created. Connection source 192.168.30.17:58273, Connection destination 255.255.255.255:1900
2020-06-09 09:37:15.116 SecureNAT: The UDP session 64983 has been deleted.
2020-06-09 09:37:15.696 SecureNAT: The TCP session 64984 has been created. Connection source 192.168.30.17:56764, Connection destination 62.201.172.16:993
2020-06-09 09:37:20.196 SecureNAT: The UDP session 64985 has been created. Connection source 192.168.30.17:58273, Connection destination 255.255.255.255:1900
2020-06-09 09:37:20.196 SecureNAT: The UDP session 64985 has been deleted.
2020-06-09 09:37:20.577 SecureNAT: The TCP session 62396 has been deleted.
2020-06-09 09:37:21.097 SecureNAT: The TCP session 64939 has been deleted.
2020-06-09 09:37:24.816 SecureNAT: The TCP session 64938 has been deleted.
2020-06-09 09:37:24.877 SecureNAT: The UDP session 64986 has been created. Connection source 192.168.30.17:58273, Connection destination 255.255.255.255:1900
2020-06-09 09:37:24.877 SecureNAT: The UDP session 64986 has been deleted.
2020-06-09 09:37:24.896 SecureNAT: The UDP session 64987 has been created. Connection source 192.168.30.17:58273, Connection destination 255.255.255.255:1900
2020-06-09 09:37:24.918 SecureNAT: The UDP session 64987 has been deleted.
2020-06-09 09:37:25.657 SecureNAT: The UDP session 64988 has been created. Connection source 192.168.30.17:58273, Connection destination 255.255.255.255:1900
2020-06-09 09:37:25.677 SecureNAT: The UDP session 64988 has been deleted.
2020-06-09 09:37:28.816 SecureNAT: The UDP session 64990 has been created. Connection source 192.168.30.17:58273, Connection destination 255.255.255.255:1900
2020-06-09 09:37:28.836 SecureNAT: The UDP session 64990 has been deleted.
2020-06-09 09:37:34.476 SecureNAT: The UDP session 64991 has been created. Connection source 192.168.0.101:4172, Connection destination 255.255.255.255:1900
2020-06-09 09:37:34.476 SecureNAT: The UDP session 64991 has been deleted.
2020-06-09 09:37:34.496 SecureNAT: The UDP session 64992 has been created. Connection source 192.168.0.101:4172, Connection destination 255.255.255.255:1900
2020-06-09 09:37:34.516 SecureNAT: The UDP session 64992 has been deleted.
2020-06-09 09:37:35.356 SecureNAT: The UDP session 64993 has been created. Connection source 192.168.0.101:4172, Connection destination 255.255.255.255:1900
2020-06-09 09:37:35.376 SecureNAT: The UDP session 64993 has been deleted.
2020-06-09 09:37:36.426 SecureNAT: The TCP session 62400 has been deleted.
2020-06-09 09:37:41.166 SecureNAT: The UDP session 64994 has been created. Connection source 192.168.0.101:4172, Connection destination 255.255.255.255:1900
.
.

2020-06-09 09:38:23.566 Session "SID-Testname-[OPENVPN_L3]-10": The session has been terminated. The statistical information is as follows: Total outgoing data size: 2689275 bytes, Total incoming data size: 121668 bytes.

sky59
Posts: 321
Joined: Tue Sep 11, 2018 5:58 pm

Re: OpenVPN connection problem on mobile network

Post by sky59 » Tue Jun 09, 2020 2:28 pm

Network is unreachable

AleXSR700
Posts: 19
Joined: Wed Oct 16, 2019 7:35 am

Re: OpenVPN connection problem on mobile network

Post by AleXSR700 » Tue Jun 09, 2020 9:44 pm

Yes, but why?
I can reach it from my Windows P
Notebook and there I am using the same testname.softether.net address. But on Windows it works and on Android the network is unreachable?
Especially since I tried using my Android Hotspot from my Notebook. So clearly the server is reachable per se just not from Android or the way Android tries to reach the network.

What's the difference between the two? Why would one work but not the other?

Post Reply