Openvpn client not work on ipad

Official client software for OpenVPN Access Server and OpenVPN Cloud.
Post Reply
tqb
OpenVpn Newbie
Posts: 15
Joined: Fri May 08, 2020 6:36 am

Openvpn client not work on ipad

Post by tqb » Sat Jan 13, 2024 8:16 pm

viewtopic.php?t=26855

This thread. Same problem.
My system is site-to-site-vpn. Openvpn server found from virtual ubuntu. System work well.

Network 10.15 is my home. 10.16 workplace. 10.17 secretary office other city. And many "roadwarrior" computers.

System is quite transparent: Eg. I can ping my work-computer (10.16.0.102) from home. Or from roadwarrior computers. Also RDP work. I can use this .102 computer from home etc.

BUT now I add one Ipad as "roadwarrior". Openvpn works- but only private network. So, from Ipad I can ping ALL 10.8.... eg. ping 10.8.0.1 is server and it answer. 10.8.0.16 is workplace router, and it answer etc. BUT ping 10.16.0.102 not work. AND RDP 10.16.0.102 not work. So- route not work on ipad.

Code: Select all

route 10.15.0.0 255.255.252.0 10.8.0.15
route 10.16.0.0 255.255.252.0 10.8.0.16
route 10.17.0.0 255.255.252.0 10.8.0.17
 
route 10.18.0.0 255.255.252.0 10.8.0.18
route 10.19.0.0 255.255.252.0 10.8.0.19
route 10.20.0.0 255.255.252.0 10.8.0.20
 
route 10.21.0.0 255.255.252.0 10.8.0.21
route 10.22.0.0 255.255.252.0 10.8.0.22
route 10.23.0.0 255.255.252.0 10.8.0.23
 
push "route 10.15.0.0 255.255.252.0 10.8.0.15 1000"
push "route 10.16.0.0 255.255.252.0 10.8.0.16 1000"
push "route 10.17.0.0 255.255.252.0 10.8.0.17 1000"
 
push "route 10.18.0.0 255.255.252.0 10.8.0.18 1000"
push "route 10.19.0.0 255.255.252.0 10.8.0.19 1000"
push "route 10.20.0.0 255.255.252.0 10.8.0.20 1000"
 
push "route 10.21.0.0 255.255.252.0 10.8.0.21 1000"
push "route 10.22.0.0 255.255.252.0 10.8.0.22 1000"
push "route 10.23.0.0 255.255.252.0 10.8.0.23 1000"
Thread I paste is same problem with ipad but very simple system. In my system ipad is this last ".23"; route 10.23.0.0 255.255.252.0 10.8.0.23 AND push "route 10.23.0.0 255.255.252.0 10.8.0.23 1000". I try it same jinx: "push route 10.20.0.0 etc" WITHOUT 10.8.0.23 (push "route 10.23.0.0 255.255.252.0"). Of course it not work.

So- how I can add ipad? It thread tell "do not add route"- so it is, "if you add ipad, you must use any miracle"?

I test this also: This "23" is ipad as I wrote. I put just same settings to windows computer. All works. So, this is: Ipad need any magic it works. But what it spell must be?

tqb
OpenVpn Newbie
Posts: 15
Joined: Fri May 08, 2020 6:36 am

Re: Openvpn client not work on ipad

Post by tqb » Mon Jan 15, 2024 7:17 am

Additional information...
route 10.20.0.0 255.255.252.0 10.8.0.20
push "route 10.23.0.0 255.255.252.0 10.8.0.23 1000"

And ccd:
ifconfig-push 10.8.0.23 255.255.255.0
iroute 10.23.0.0 255.255.252.0
push-remove redirect-gateway


So: It is not enough information in original thread. It told this push must be without this "10.8....". But my brains cannot understand, how this can be work. I test, and it not work. So: other solution? Maybe I must make any special route also inside ipad settings? But how?

tqb
OpenVpn Newbie
Posts: 15
Joined: Fri May 08, 2020 6:36 am

Re: Openvpn client not work on ipad

Post by tqb » Mon Jan 15, 2024 7:49 am

Problem solved.

Server configuration is ok: No difference between client. So, not need any special configuration on server.

I explain my problem to chatgpt. It tell many way how to fix, and most clever is "add own route inside ipad".

So: simply I add line
<code>
route 10.16.0.0 255.255.252.0
</code>

to client.ovpn. Very simple: route, network and mask.

This is important reason now it is possible make server settings without any jinx. Server side is "standard".

So: Now I can use RDP from my ipad.

Ipad is stupid, so openvpn-configuration file must contain this route. I am quite sure this same way work also with iPhone. (But who want use rdp with tiny screen...)

Post Reply