Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Tip us?
 
jockyw2001
Old
(Last edited by jockyw2001; 9th July 2007 at 10:25 AM.)
#1  
Recognized Developer - OP
Thanks Meter 15
Posts: 1,499
Join Date: May 2007
Default [APP] OpenVPN for WM5/6 Smartphone

I managed to install and run OpenVPN for PPC on my S710 smartphone. I'm sure it will also work on other WM5/6 smartphones.

Here are the steps to install:
1. Make sure your device is unlocked, otherwise unlock it with Microsoft Security Manager
2. Unzip the attached .zip and copy the OpenVPN directory to \Storage Card\Program Files (you can choose another path but then you will have to modify two shortcuts in \Windows\Start Menu
3. Copy the Windows directory to \ (don't worry, it only adds two files in \Windows and two shortcuts in \Windows\Start Menu)
4. Copy the two registry files form the Registry directory to your device, e.g. to \My Documents and register them. To easily do that, I recommend Resco Registry editor)

To use OpenVPN you must of course have an OpenVPN server where you can connect to. Furthermore you need to create a config file and save it as "smartphone.ovpn" to \Storage Card\Program Files\OpenVPN\config
I have put there an example file which contains a line to write a log file "client.log" to \Storage Card\Program Files\OpenVPN\log. The log file helps you to debug any connection issues.

If you want to connect to your OpenVPN server, first fire up your Wifi or GPRS/Edge/UMTS. Now start the OpenVPN Connection manager, return to the Home screen and start the OpenVPN client by clicking on the white icon in your Start menu (sorry, I didn't bother to create or link it with a nice icon ...). The VPN connection will be established on top of your existing data connection. I noticed that it is sometimes necessary to tweak connection settings in the browser (toggle from Internet to Work or vice versa. It requires some experimenting to get the hang of it).

If you want to disconnect then click on OpenVPN Connection manager and select the VPN tab. In the bottom-right corner you can see just a little part of a button. Use the D-pad to select that button (the border line will become bold if you selected it) and click it. This will send a terminate signal to client and release the TAP network interface.

My mobile operator blocks VoIP ports so I mainly use an OpenVPN connection to tunnel VoIP traffic through an Edge connection

Only if you have smartphone specific feedback post in this thread. Do not ask general OpenVPN questions here. For more info about OpenVPN for PPC see: http://ovpnppc.ziggurat29.com/ovpnppc-main.htm there is a forum as well.

Have fun!
Attached Files
File Type: zip OpenVPN-Smartphone.zip - [Click for QR Code] (849.1 KB, 4160 views)
 
agentdr8
Old
#2  
agentdr8's Avatar
Senior Member
Thanks Meter 136
Posts: 726
Join Date: Mar 2007
Location: Cowtown, CA
Awesome info, thanks!
 
Menneisyys
Old
#3  
Retired Moderator
Thanks Meter 7
Posts: 5,381
Join Date: Jul 2005
Excellent info, will link it in from my forthoing OpenVPN article!
Microsoft MVP - Mobile Devices, 2006, 2007, 2008. Make sure you follow my PPC & SP Mag Expert blog HERE.
 
koxx
Old
#4  
koxx's Avatar
Senior Member
Thanks Meter 4
Posts: 1,812
Join Date: May 2006
Location: Paris
great job !
 
timolthy_keithy
Old
#5  
Junior Member
Thanks Meter 0
Posts: 4
Join Date: Aug 2007
Hi,

I have DASH WM6 from T-Mobile.

4. Copy the two registry files form the Registry directory to your device, e.g. to \My Documents and register them. To easily do that, I recommend Resco Registry editor)

I did save 2 registry files in \My Documents. But I don't know how to register them, I execute TAP Device and TAP Device1 I get "no Application Associate to it"

I downloaded regeditor Rescue, but I get an error says, Unsuccessful install because this app not for this device"

I downloaded the SKTools - Registry Editor, but don't know to to register 2 registry files.

Please help.

I like to use GRPS to VPN back to my office and use VOIP.

Thanks in Advance.
 
timolthy_keithy
Old
#6  
Junior Member
Thanks Meter 0
Posts: 4
Join Date: Aug 2007
Hi,

Also, I have Windows 2003 Radius Server (also VPN Server). Would it work with openVPN client? I see your sample.ovpn with some kind of security certs (TLS). Are there any steps to export the cert from Win-2003 server to this OpenVPN client? [I did copy the server cert on the phone; when I am in office, I can get phone Wi-Fi to auth with WPA TLS - Wi-Fi Access point.]


Thanks,
 
jockyw2001
Old
#7  
Recognized Developer - OP
Thanks Meter 15
Posts: 1,499
Join Date: May 2007
No, unfortunately OpenVPN client only connects to an OpenVPN server.
 
invader zog
Old
#8  
Junior Member
Thanks Meter 0
Posts: 2
Join Date: Feb 2007
Quote:
Originally Posted by timolthy_keithy View Post
Hi,

I have DASH WM6 from T-Mobile.

4. Copy the two registry files form the Registry directory to your device, e.g. to \My Documents and register them. To easily do that, I recommend Resco Registry editor)
I'm having the same problem. I downloaded and installed the PHM registry editor, but I can't seem to figure out how to get it just import the registry entries. I thought about doing it manually, but the .REG files seem to be in a binary format...
 
GnarusLeo
Old
#9  
Junior Member
Thanks Meter 0
Posts: 12
Join Date: Jul 2007
Does anyone know how I can use IPsec VPN? I've got Bluefire VPN wich supports it, but when I try to connect it says

"The Connection Settings do not allow a VPN connection to be established. The device may be configured to use the same network for both The Internet and Work. Please verify the Connection Settings and try again (-71)"

Ive looked all over for this sort of settings, but havent been able to find any. Anyone to help?
 
jockyw2001
Old
#10  
Recognized Developer - OP
Thanks Meter 15
Posts: 1,499
Join Date: May 2007
@invader_zog: it seems you didn't perform step 1.
Quote:
Here are the steps to install:
1. Make sure your device is unlocked, otherwise unlock it with Microsoft Security Manager
@GnarusLeo: no need to hijack this thread, just open a new topic in the networking forum.

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...

XDA PORTAL POSTS

Open Source CPU Info App for Windows

So you’re playing with your shiny new Windows 8 tablet PC, when one of your like-minded geeky … more

Guide to Using Adobe Air on Android

When writing an app with performance in mind, you most likely want to write it native code using the … more