Difference between revisions of "OpenVPN on iOS"

From Amahi Wiki
Jump to: navigation, search
 
(17 intermediate revisions by 6 users not shown)
Line 1: Line 1:
From the original [http://forums.amahi.org/viewtopic.php?f=3&t=1508&start=0 iPhone VPN] thread in the forums:
+
There is now an [https://itunes.apple.com/us/app/openvpn-connect/id590379981?mt=8 OpenVPN iOS] app in the Apple app store.
  
For all of you out there that have an iPhone or any other mobile "idevice" And want VPN access I have found a way. The catch is, you have to have a jail broken device. If you do have a jail broken device and want the openvpn app on the phone you will want to check out www.guizmovpn.com  it's about 4€. The evaluation period is a full week. But the price is worth it.
+
To setup your connection to your HDA, perform the following steps:
  
To configure the client you will need to follow the guide on the www.guizmovpn.com. The client info you will need to get from the wiki here http://wiki.amahi.org/index.php/VPNLinux also you will need to hit the FAQ on guizmovpn to setup the login info for your hda.
+
First create your ovpn file using the following (the order that these items come in is VERY important) configuration:
  
If your interested and want some help setting it up let me know. Once I'm back from vacation I will setup a small guide for setting it up with everything you will need to know.
+
<pre><nowiki>
 +
client
 +
dev tun
 +
proto udp
 +
remote XXXX.yourhda.com 1194
 +
resolv-retry infinite
 +
nobind
 +
persist-key
 +
persist-tun
 +
auth-user-pass
 +
ca ca.crt
 +
cert Amahi-Client-OpenVPN.crt
 +
key Amahi-Client-OpenVPN.key
 +
comp-lzo
 +
verb 3
 +
</nowiki></pre>
  
For anyone that is interested i have provided a link to a pdf guide i created. It might seem like a little to much or a hassle but its really simple. It just takes the time to read. http://home.mchsi.com/~irish-link/GuizmOVPN.pdf
+
Copy and paste the above into the text file. Be sure to replace the XXXX to whatever your ddns name for your HDA is. Save this file as whatever you want with the .ovpn file extension. The next step is to download the certificates. They can be found on the [[OpenVPN Client Certificates]] download page.
  
My mind is a little random some times, so if you do want to set yourself up and have problems or any other issues with the guide let me know and i will do my best to clarify. If you do end up setting it up, let me know how it works for you.
+
:'''NOTE:''' In OS X create a new text file with Textedit. To change the Textedit file from .txt to .ovpn, hold down the option key whilst clicking on file. Choose save as and change file extension to .ovpn.<br>
 +
If you rename these certificates you will need to modify the ovpn file with the names that you saved your certs as. You are now ready to copy your files over to your iOS device.  To import the certificates to your device, perform the following:
  
NOTE I can now verify that it does in fact work with Jailbroken IOS4.
+
1) Connect your mobile device to your computer to sync<br>
 +
2) Open Apple iTunes<br>
 +
3) Select your device from the device list<br>
 +
4) Click 'Apps'<br>
 +
5) Scroll down to 'File Sharing', click OpenVPN, then click 'Add' on the right<br>
 +
4) Add the OVPN file and the certificates to your device<br>
 +
5) Sync your device<br>
 +
<br>
  
NOTE: The "credentials.txt" is not needed anymore (since 0.9.8).
+
After syncing the device, upon opening the OpenVPN app you will be prompted to allow the new VPN connection.
Simply replace "auth-user-pass credentials.txt" by "auth-user-pass", and you'll get prompt for username/password on connection.
+
 
The pass-file is still supported, but the prompt makes more sense for security...
+
Congrats!  You are now connecting to your HDA via an OpenVPN connection!

Latest revision as of 20:32, 21 June 2017

There is now an OpenVPN iOS app in the Apple app store.

To setup your connection to your HDA, perform the following steps:

First create your ovpn file using the following (the order that these items come in is VERY important) configuration:

client
dev tun
proto udp
remote XXXX.yourhda.com 1194
resolv-retry infinite
nobind
persist-key
persist-tun
auth-user-pass
ca ca.crt
cert Amahi-Client-OpenVPN.crt
key Amahi-Client-OpenVPN.key
comp-lzo
verb 3

Copy and paste the above into the text file. Be sure to replace the XXXX to whatever your ddns name for your HDA is. Save this file as whatever you want with the .ovpn file extension. The next step is to download the certificates. They can be found on the OpenVPN Client Certificates download page.

NOTE: In OS X create a new text file with Textedit. To change the Textedit file from .txt to .ovpn, hold down the option key whilst clicking on file. Choose save as and change file extension to .ovpn.

If you rename these certificates you will need to modify the ovpn file with the names that you saved your certs as. You are now ready to copy your files over to your iOS device. To import the certificates to your device, perform the following:

1) Connect your mobile device to your computer to sync
2) Open Apple iTunes
3) Select your device from the device list
4) Click 'Apps'
5) Scroll down to 'File Sharing', click OpenVPN, then click 'Add' on the right
4) Add the OVPN file and the certificates to your device
5) Sync your device

After syncing the device, upon opening the OpenVPN app you will be prompted to allow the new VPN connection.

Congrats! You are now connecting to your HDA via an OpenVPN connection!