OpenVPN and iOS App - TUN Setup Failed
Moderator: Moderators
Re: OpenVPN and iOS App - TUN Setup Failed
you have to edit both the ccd/<client> and server.conf
Re: OpenVPN and iOS App - TUN Setup Failed
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
option checked
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"
Code: Select all
push "route 192.168.100.0 255.255.255.0 vpn_gateway"
-
- Posts: 1
- Joined: Wed Mar 28, 2018 4:56 pm
Re: OpenVPN and iOS App - TUN Setup Failed
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.
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.
Re: OpenVPN and iOS App - TUN Setup Failed
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
OR
Update to the latest snapshot builds and the “client prefers vpn_gateway” option is already there
https://lantisproject.com/downloads/gargoylebuilds for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.
Please be respectful when posting. I do this in my free time on a volunteer basis.