OpenVPN and iOS App - TUN Setup Failed

If your problem doesn't fall into one of the other categories, report it here.

Moderator: Moderators

maihacke
Posts: 11
Joined: Sun Sep 23, 2012 7:51 am

Re: OpenVPN and iOS App - TUN Setup Failed

Post by maihacke »

you have to edit both the ccd/<client> and server.conf

marcinkk
Posts: 7
Joined: Sun Mar 05, 2017 5:09 pm

Re: OpenVPN and iOS App - TUN Setup Failed

Post by marcinkk »

The same problem exist for Android OpenVPN client.

The solution for me is edit files in ccd directory and change IP of the gateway to text vpn_gateway. I had to do it each time after clicking Save Changes in OpenVPN Configuration. It is not a big problem but it is a little inconvenient.

I have an idea to make a little fix, but coding it at this moment seems a little complicated for me. Maybe somebody else will make the following change:
1) In the form for add/edit OpenVPN Client add checkbox "Android/iOS Client" (default: unchecked).
2) The script which creates files in ccd directory should check this option and: if it is checked then instead of writing gateway IP address to the client file the text vpn_gateway should be put there.

Example:
option unchecked

Code: Select all

push "route 192.168.100.0 255.255.255.0 10.8.0.1"
option checked

Code: Select all

push "route 192.168.100.0 255.255.255.0 vpn_gateway"

Pepper Breath
Posts: 1
Joined: Wed Mar 28, 2018 4:56 pm

Re: OpenVPN and iOS App - TUN Setup Failed

Post by Pepper Breath »

So to clarify, I'm altering files on the router itself, not the .opvn files that it's popping out?

I managed to setup the OpenVPN server on my router, setup DDNS, and grabbed a .opvn file for my laptop. Worked like a charm when I was on the road. However, the Android OpenVPN client keeps giving me an error that there's a configuration error in the .opvn file I made for my phone.

Not super critical since I have mobile data, but would be nice if I could get this to work, particularly for banking stuff.

Lantis
Moderator
Posts: 6753
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: OpenVPN and iOS App - TUN Setup Failed

Post by Lantis »

Yes the modification is to the script on the router and files on the router.
OR
Update to the latest snapshot builds and the “client prefers vpn_gateway” option is already there
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

Post Reply