webOS Nation Forums >  Stuff for your webOS Device >  webOS Apps & Games > How To Configure OpenVPN
How To Configure OpenVPN
  Reply
 
Thread Tools Display Modes
Old 08/04/2011, 08:12 PM   #1 (permalink)
Member
 
Posts: 26
I know there isn't a GUI for OpenVPN, but I have no idea how to configure this. Could someone please help?

thanks

DC
SithLord is offline   Reply With Quote
Old 08/04/2011, 11:13 PM   #2 (permalink)
etx
Member
 
Posts: 339
OpenVPN for Palm Pre - WebOS Internals
etx is offline   Reply With Quote
Old 08/04/2011, 11:43 PM   #3 (permalink)
Member
 
Posts: 26
thanks etc for the reply however I'm clearly missing something. Exactly what app am I using to configure with?
SithLord is offline   Reply With Quote
Old 09/06/2011, 12:30 AM   #4 (permalink)
Member
 
Posts: 108
Hi

I managed to get OpenVPN to work on my TP everythign is great however when my OpenVPN is connected to the server my browser looses connection. I am guessing that all the traffic is routed through the vpn. What would be the reasonable way to resolve this issue?

thanks
karun is offline   Reply With Quote
Old 09/06/2011, 01:49 AM   #5 (permalink)
Member
 
Posts: 19
Hi Karun, could you explain the steps you took to get it to work? Thanks in advance!
Pillefuss is offline   Reply With Quote
Old 09/06/2011, 03:01 PM   #6 (permalink)
Member
 
Posts: 108
Quote:
Originally Posted by Pillefuss View Post
Hi Karun, could you explain the steps you took to get it to work? Thanks in advance!
I just followed the OpenVPN tuts for linux. I made sure that I have a working client. Once I have a working client and working server, I copied my client files to Touchpad.

You can get more detail here
"http://www.webos-internals.org/wiki/OpenVPN_for_Palm_Pre"

However this is slightly convoluted to me. Just follow any Linux OpenVPN tut to install you server and a client. Once everything is in working order copy your "client" keys and certs to

/opt/etc/openvpn/touchpad

then fire

"openvpn --config /opt/etc/openvpn/touchpad/client.conf"

The tricky thing for me was to actually root the device(I use novaterm, novaproxy and putty) and install the OpenVPN packages via "ipkg-opt install openvpn" and "openssh". installing through via preware did not work that well for me.

I also disabled all the routing stuff in the server.conf file since I cannot get proper routing(which does not have much to do with the TP side). I use"tun" interface under the debian server and that server is just a VirtualBox machine at the moment.


note: However I am not able to connect to internet when the VPN is enabled on TP. So I can use it as private network but not for browsing internet stuff. I would appreciate any help. Other VPN clients can connect to internet.

Last edited by karun; 09/06/2011 at 03:23 PM.
karun is offline   Reply With Quote
Thanked By: Fam Money
Old 10/12/2011, 12:14 PM   #7 (permalink)
Member
 
Posts: 2
I'm having an issue trying to connect my Touchpad to the OpenVPN server I'm running on my router via Tomato RAF. I followed the directions here and was able to successfully connect using my laptop.

I tried installing OpenVPN via Preware and Optware with the same results.

Here is what I did:
1. I copied ca.crt, HP-Touchpad.crt, HP-Touchpad.key, and HP-Touchpad.ovpn to /opt/etc/openvpn/touchpad.

2. I then launch a terminal session via QuickInstall and issue openvpn --config /opt/etc/openvpn/touchpad/HP-Touchpad.ovpn

I then get an error about not being able to open HP-Touchpad.crt due to the file or directory not existing. Here is a shot of the error.


Here is the contents of the ovpn file with the hostname omitted.
Code:
client
dev tun
proto udp
remote REMOVED 1194
resolv-retry infinite
nobind
persist-key
persist-tun

ca ca.crt
cert HP-Touchpad.crt
key HP-Touchpad.key
ns-cert-type server
cipher AES-128-CBC
comp-lzo
verb 4
I also tried the key/certs I created for the laptop and still received the same error. Any help would be most appreciated.

*Edit*
Found the solution to my problem. I had to add the paths to the certs in my config file. SO it now looks like below.

Code:
ca /opt/etc/openvpn/touchpad/ca.crt
cert /opt/etc/openvpn/touchpad/HP-Touchpad.crt
key /opt/etc/openvpn/touchpad/HP-Touchpad.key

Last edited by Fam Money; 10/12/2011 at 07:20 PM. Reason: Found the solution.
Fam Money is offline   Reply With Quote
Old 04/14/2012, 06:25 PM   #8 (permalink)
Member
 
Posts: 11
Just wanted to put my two cents in since I got this working today. I initially tried the Preware GUI installer, but for whatever reason, it does not work and doesn't provide any errors to easily track down why. What I ended up doing, was manually installing the packages. You can read the full right up on my blog - http://www.ticktockcomputers.com/blo...ouchpad-users/

but the quick of it is, open up a terminal, whatever you are using. (For obvious reasons it should go without saying, you need to root the device first)

Enter the following to install all the dependicies:

cd /opt/etc
mkdir openvpn

Code:
ipkg-opt install http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/stable/lzo_2.03-1_arm.ipk
ipkg-opt install http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/stable/ncurses_5.7-1_arm.ipk
ipkg-opt install http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/stable/net-tools_1.60-6_arm.ipk
ipkg-opt install http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/stable/psmisc_22.15-1_arm.ipk
ipkg-opt install http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/stable/openssl_0.9.8p-1_arm.ipk
ipkg-opt install http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/stable/openvpn_2.2.0-1_arm.ipk
Once done, you need to have a valid conf file for openvpn. Create this on your desktop or server first, test it, make sure it works. Then you can just copy it over to /opt/etc/openvpn or wget it from your site/server, etc

Once your conf file is there, just type "openvpn yourconf.conf" and hit enter (where yourconf.conf is your conf file). If you did it correctly, openvpn will start and show you it is connecting to the VPN. If your browser was previously open, close and reopen it and then goto ipchicken to see that your IP has changed to that of your VPN server/service. Reboot and everything goes back to normal. Rerun "openvpn yourconf.conf" to start any time you need it.

Ideally I would like for a way to have an icon on the home screen somehow that runs the shell commands for me, so I can turn it on and off at will, but I haven't figured out to put custom icons/commands on the home screen yet. If anyone knows how to do that, please post links here or contact me via my site. Thanks.
xxdigipxx is offline   Reply With Quote
Old 12/27/2012, 08:43 PM   #9 (permalink)
Member
 
marknyack's Avatar
 
Posts: 23
tried to install OpenVPN on my new 4g touchpad tonight from preware and wasn't able to get it to show up in my downloads. As far as I know I have installed all associated apps and it shows as installed but there is no launch button. Am I missing something (need to configure, install)? Does OpenVPN work on 4g Touchpad? Any ideas?
marknyack is offline   Reply With Quote
Reply

 

Thread Tools
Display Modes



 


Content Relevant URLs by vBSEO 3.6.0