Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[How To] Free OpenVPN Connection on Xperia X10

OP jimbo77

18th January 2011, 11:03 PM   |  #1  
jimbo77's Avatar
OP Recognized Contributor
Flag Guatemala
Thanks Meter: 2,146
 
1,476 posts
Join Date:Joined: Nov 2010
Donate to Me
More
So this is my 2nd Thread ... I know a lot of people use their Xperia X10 to surf through the WEB and i'm sure that like me a lot of you also have problems due some sites being blocked or unable to perform certain downloads. My problem is the Second; I can't download from almost any host (Megaupload, Hotfile, Rapidshare...) because my career has set up the same IP address to all Mobile Phones...

To avoid this issue i was using EvoVPN and it was good until 2 weeks ago when the service was shut down. Anyways i've read a lot and probably This has been post before but i found a way to have FreeVPN services working in our beloved X10s....

What do you need?

1. Have SuperUser Access (ROOT).

2. Install Busybox from within the Android Market (Version 1.17).[Mandatory]

UPDATE!!!
[*] Added Tun.ko Working for Android 2.3.3 Update.. Thanks to gergnz

HERE!!

3. Download and unzip this file in the root of your SDCARD
3.1Dropbox
3.2Mirror Mediafire

4. Install OpenVPN Settings from within the Android Market.

5. Install Android Terminal Emulator from within the Android Market.

Procedure:

1. Open Android Terminal Emulator and issue the following Commands:

Code:
mount -o remount,rw -t yaffs2 /dev/block/mtdblock2 /system

busybox insmod /sdcard/openvpn/tun.ko
busybox cp /sdcard/openvpn/openvpn /system/xbin/openvpn
busybox cp /sdcard/openvpn/openvpn /system/xbin/tun.ko
chmod 700 /system/xbin/openvpn
mkdir /system/xbin/bb
busybox ln -s /system/bin/busybox /system/xbin/bb/ifconfig
busybox ln -s /system/bin/busybox /system/xbin/bb/route

busybox mount -o remount,rw /dev/block/mtdblock2 /system
busybox cp /sdcard/openvpn/chargemon /system/bin/chargemon
busybox cp /sdcard/openvpn/busybox /system/bin/busybox
reboot
* Note the last two lines are useful only if you have Xrecovery Installed because it needs this busybox version to work, you can skip it if you don't use Xrecovery....

2. Open VPN Settings and press Menu-->Advanced

3. Check the "Load tun Kernel module" checkbox

4. In TUN module settings select: insmod ; and the path to run module should be: /sdcard/openvpn/tun.ko

5. Path Configurations should be: /sdcard/openvpn

6. Path to openvpn binary should be: /system/xbin/openvpn

7. Back

8. Click on OpenVPN

9. Select freeopenvpn.ovpn

10. This should automatically assign you an IPAddress and you'll be set to use freevpn services.

NOTES!! Please READ BEFORE POSTING/Asking

Thanks to alx5962 for compiling the TUN.KO module!!!

1. Whenever you connect to freeopenvpn.ovpn the web browser will redirect you to http://www.freeopenvpn.com in order to activate the service, you just need to click on the linck and you'll be set.

2. If you don't click on that you won't be able to transfer any data either over WIFI or 3G

3. It's not always but if you can't load the http://www.freeopenvpn.com webpage after clickin on it,please wait while the phone is trying to comunicate with the server, it can take up to 5 Minutes :S but it will eventually load

4. After the webpage loads you'll be redirected to their site but you can start browsing using the assigned IP Address.

5. EVERY time you close the VPN connection and you login again the phone/server will request the process stated above.

6. If you find this useful you can always use the Thanks button and buy me a beer.... HERE

BEFORE:






AFTER:





Downloading

Last edited by jimbo77; 23rd August 2011 at 07:07 PM.
The Following 5 Users Say Thank You to jimbo77 For This Useful Post: [ View ]
19th January 2011, 03:11 AM   |  #2  
WindGhost's Avatar
Senior Member
Flag Penza
Thanks Meter: 14
 
179 posts
Join Date:Joined: Aug 2010
More
All good, but...
Quote:

It's not always but if you can't load the http://www.freeopenvpn.com webpage after clickin on it,please wait while the phone is trying to comunicate with the server, it can take up to 5 Minutes :S but it will eventually load

I'm still waiting about 15 min

Quote:

busybox mount -o remount,rw /dev/block/mtdblock2 /system
busybox cp /sdcard/openvpn/chargemon /system/bin/chargemon
busybox cp /sdcard/openvpn/busybox /system/bin/busybox

NO NEED FOR THESE, EVEN IF YOU GOT xRecovery.

All works good, thnx
Last edited by WindGhost; 19th January 2011 at 03:27 AM.
19th January 2011, 03:35 AM   |  #3  
Junior Member
Thanks Meter: 0
 
24 posts
Join Date:Joined: Oct 2009
hi , which app do u use for browse , thx
19th January 2011, 04:56 AM   |  #4  
jimbo77's Avatar
OP Recognized Contributor
Flag Guatemala
Thanks Meter: 2,146
 
1,476 posts
Join Date:Joined: Nov 2010
Donate to Me
More
@Windgosht is everything working fine? I know is kind of heavy but it's a solution though...

@nini8888 in the screenshots I'm using Miren Browser...

Jim

Sent from my X10a
19th January 2011, 06:37 AM   |  #5  
WindGhost's Avatar
Senior Member
Flag Penza
Thanks Meter: 14
 
179 posts
Join Date:Joined: Aug 2010
More
Yep, works great, but as I said in my post above, no need for those three lines :
Quote:

busybox mount -o remount,rw /dev/block/mtdblock2 /system
busybox cp /sdcard/openvpn/chargemon /system/bin/chargemon
busybox cp /sdcard/openvpn/busybox /system/bin/busybox

xRecovery stopped work (Android 2.1 : 2.0.2.A.0.24 - zdzihu ROM). About the SE ROM, I don't know.
19th January 2011, 07:39 AM   |  #6  
Senior Member
Thanks Meter: 10
 
195 posts
Join Date:Joined: Nov 2010
5. EVERY time you close the VPN connection and you login again the phone/server will request the process stated above.


Does it mean:
1. Whenever you connect to freeopenvpn.ovpn the web browser will redirect you to http://www.freeopenvpn.com in order to activate the service, you just need to click on the linck and you'll be set.

2. If you don't click on that you won't be able to transfer any data either over WIFI or 3G

3. It's not always but if you can't load the http://www.freeopenvpn.com webpage after clickin on it,please wait while the phone is trying to comunicate with the server, it can take up to 5 Minutes :S but it will eventually load

4. After the webpage loads you'll be redirected to their site but you can start browsing using the assigned IP Address.


Or the procedure above, where we need to type in all the command?
I get error when issuing the first line of command. Permission denied
Last edited by gohwh1; 19th January 2011 at 07:53 AM.
19th January 2011, 09:50 AM   |  #7  
WindGhost's Avatar
Senior Member
Flag Penza
Thanks Meter: 14
 
179 posts
Join Date:Joined: Aug 2010
More
Quote:
Originally Posted by gohwh1

5. EVERY time you close the VPN connection and you login again the phone/server will request the process stated above.


Does it mean:
1. Whenever you connect to freeopenvpn.ovpn the web browser will redirect you to http://www.freeopenvpn.com in order to activate the service, you just need to click on the linck and you'll be set.

2. If you don't click on that you won't be able to transfer any data either over WIFI or 3G

3. It's not always but if you can't load the http://www.freeopenvpn.com webpage after clickin on it,please wait while the phone is trying to comunicate with the server, it can take up to 5 Minutes :S but it will eventually load

4. After the webpage loads you'll be redirected to their site but you can start browsing using the assigned IP Address.


Or the procedure above, where we need to type in all the command?
I get error when issuing the first line of command. Permission denied

type first su in command line
19th January 2011, 01:08 PM   |  #8  
khelwani's Avatar
Senior Member
Thanks Meter: 70
 
168 posts
Join Date:Joined: Dec 2010
More
my phone is rooted and everything is done !
but I got Permission denied with the first line , even with su
what to do ?!!


It's working ,, I used the adb on windows ti issue the lines
Last edited by khelwani; 19th January 2011 at 04:07 PM.
20th January 2011, 03:02 AM   |  #9  
WindGhost's Avatar
Senior Member
Flag Penza
Thanks Meter: 14
 
179 posts
Join Date:Joined: Aug 2010
More
Any one get GTalk, Market, Gmail FC???
20th January 2011, 03:18 AM   |  #10  
jimbo77's Avatar
OP Recognized Contributor
Flag Guatemala
Thanks Meter: 2,146
 
1,476 posts
Join Date:Joined: Nov 2010
Donate to Me
More
Quote:
Originally Posted by WindGhost

Any one get GTalk, Market, Gmail FC???

Not me kind sir... See attached...






Sent from my X10a

Post Reply Subscribe to Thread

Tags
openvpn, vpn
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes