Comments (30)
I followed this tutorial to install openVPN files on my device.
http://alldroid.org/threads/15594-OpenVPN-on-Milestone-%5BRoot-amp-Busybox-Requi
red%5D
Before with Tunnel droid, you could specify a path for the tun.ko file.
Now as the tutorial say, everytime you reboot, you have to type the following
command
line : insmod /system/lib/modules/tun.ko
Using "adb shell".
Otherwise you have the error described above.
This cannot be included in the app ?
Thanks in advance
Original comment by [email protected]
on 31 Mar 2010 at 7:20
from android-openvpn-settings.
@celestin.masse
thanx for your help
I've inserted tun.ko file into the /system/lib/modules, thus while I type the
insmod
command line you've mentioned above, it returns: can't insert file
/system/lib/modules/tun.ko file exists.
That means I've acquired the tun.ko in the lib/modules, but still got that
error
while launch the OpevVPN via openvpn settings.
Original comment by [email protected]
on 31 Mar 2010 at 7:25
from android-openvpn-settings.
Here is what I did :
Follow the tutorial
Get the files from the zip package.
When it says : (mtdblock6 might be 7 for some devices)
6 are for EU devices and 7 for US one.
Not sure that it changes anything but it's better to know it.
Then the tutorial have reboot step.
And after that come the command :
insmod /system/lib/modules/tun.ko
After that it was still not OK, but I found from the same developper, an
application
named OpenVPN installer : http://code.google.com/p/android-openvpn-installer/
I installed this app by telling it for the first path : /system/bin
and /system/xbin for the second one.
Reboot the phone, go to adb shell>> su then the magic command line come :
insmod /system/lib/modules/tun.ko
After that I finish the tutorial by creating the links :
mount -o remount,rw -t yaffs2 /dev/block/mtdblock6 /system
mkdir /system/xbin
cd /system/xbin
ln -s /data/busybox/ifconfig ifconfig
ln -s /data/busybox/route route
mount -o remount,ro -t yaffs2 /dev/block/mtdblock6 /system
then it works.
If not, retry the magic command.
But the annoying thing is that you have to type :
the insmod /system/lib/modules/tun.ko command after every reboot using adb shell
And that was done before by tunnel droid but since the merge this feature
disappeared.
Regards
Original comment by [email protected]
on 31 Mar 2010 at 9:52
from android-openvpn-settings.
@celestin.masse
Thx bud
But I managed to find an older version of TunnelDroid to use right now...So I'm
expected to see OpenVPNSettings will get more rich featured.
Thanks in advance!
Original comment by [email protected]
on 31 Mar 2010 at 9:56
from android-openvpn-settings.
Added tun settings with settings for modprobe/insmod and path to tun module.
Could someone please verify it works?
Original comment by friedrich.schaeuffelhut
on 31 Mar 2010 at 9:42
- Added labels: Priority-High
- Removed labels: Priority-Medium
Attachments:
from android-openvpn-settings.
@friedrich.schaeuffelhut
It works
thanx
btw, what's the difference between insmod and modprobe method?
Original comment by [email protected]
on 1 Apr 2010 at 2:34
from android-openvpn-settings.
@ss1271, It works for you ?
What are your settings ?
For me, using insmod and specifying the path /system/lib/modules/tun.ko is not
working.
Really weird.
Original comment by [email protected]
on 1 Apr 2010 at 2:43
from android-openvpn-settings.
@celestin.masse
yup
it works
i'm using modprobe and specifying the path /system/lib/modules/tun.ko .
My devices didn't have the tun.ko file, because it loaded with official rom
only, but I
managed to find an usable one and put into /system/lib/modules after it was
rooted.
Original comment by [email protected]
on 1 Apr 2010 at 2:47
from android-openvpn-settings.
@celestin.masse
UPDATE:
both modprobe and insmod working right now.
Original comment by [email protected]
on 1 Apr 2010 at 2:48
from android-openvpn-settings.
@ss1271
It must be my tun.ko file because none of the modprobe and insmod are working
on my
phone. Where did you get yours ?
Are you also trying to go through the great firewall on your milestone ?
I say that because I saw a twitter app from you including proxy settings
Original comment by [email protected]
on 1 Apr 2010 at 2:54
from android-openvpn-settings.
@celestin.masse
I get my tun.ko from this place: http://orz.se/3Y6
works for my official rom 2.1-update1
As for that twitter app...I must say I have to hault that project because of my
poor
java knowledge , lol :)
Original comment by [email protected]
on 1 Apr 2010 at 3:05
from android-openvpn-settings.
@ss1271
I get mine from this website also.
Weird that it doesn't work on my device which seems to be the same as yours.
Original comment by [email protected]
on 1 Apr 2010 at 3:11
from android-openvpn-settings.
@celestin.masse
Have you set the tun.ko's permission correctly if you put it into
/system/lib/modules?
Original comment by [email protected]
on 1 Apr 2010 at 3:13
from android-openvpn-settings.
That may be the problem, I didn't adjust the permission settings there.
Can you have a look to that log, showing the permission settings for my tun.ko
and a
few command to try to replace it.
Regards
Original comment by [email protected]
on 1 Apr 2010 at 3:20
Attachments:
from android-openvpn-settings.
That may be the problem, I didn't adjust the permission settings there.
Can you have a look to that log, showing the permission settings for my tun.ko
and a
few command to try to replace it.
Regards
Original comment by [email protected]
on 1 Apr 2010 at 3:20
Attachments:
from android-openvpn-settings.
@celestin.masse
seems you are trying to grant 777 permission to this file.
this file's permission should be 644 just as the same as other files in this
folder.
and before you use chmod command, you should remount this folder to make it
writable.
If you feel not convenient to use command line on terminal, why not try root
explorer
(Paid apps)?
Original comment by [email protected]
on 1 Apr 2010 at 3:30
from android-openvpn-settings.
@ss1271
I just tried to chmod it.
I took the 777 permission randomly.
The fact that I can't write is due to the fact that forgot to mount it :(
You are right.
I feel convenient to use command line on the terminal. I use adb shell from my
computer or terminal emulator on the phone.
All right then.
I changed my tun.ko file, mount the folder again, change permission to 644.
Then it's working using insmod.
Perfect !
The version of the file seemed to be wrong.
Original comment by [email protected]
on 1 Apr 2010 at 3:50
from android-openvpn-settings.
Here is a new version of OpenVPN-Settings with tun parameters and fixes in the
shell
communication. Sometimes the modprobe or insmod might have been discarded by
the shell.
Could you please verify it works?
Original comment by friedrich.schaeuffelhut
on 4 Apr 2010 at 9:39
Attachments:
from android-openvpn-settings.
Issue 17 has been merged into this issue.
Original comment by friedrich.schaeuffelhut
on 4 Apr 2010 at 9:41
from android-openvpn-settings.
Seems to be solved now
Original comment by [email protected]
on 5 Apr 2010 at 7:52
from android-openvpn-settings.
@vandeplas.christophe
Well, the VPN connection seemed be disconnected automatically when not use for
a while,
can it be always online?
Original comment by [email protected]
on 5 Apr 2010 at 7:54
from android-openvpn-settings.
There is no feature disconnecting the tunnel. The tunnel should always be
online. If
the problem persists please open a new bug.
Original comment by friedrich.schaeuffelhut
on 25 Apr 2010 at 3:17
- Changed state: Fixed
from android-openvpn-settings.
Hi, please HELP =)!
I just was able to install, and I keep recieving the tun error, maybe is the
wrong tun.ko, I even changed the permisions on it... is in insmod, but no
luck!, im on android 2.1, rooted by paul @ modaco, original firmware...I dont
know if I have busybox intalled, i asume i do because i can use openvpn
settings gui...
Thanks in advance! I have 7 days left before i start paying to strongvpn to try
to bypass the chinese greatwall
Original comment by [email protected]
on 19 Jun 2010 at 1:16
from android-openvpn-settings.
@yojosefo Hello, since this issue was marked as "fixed", would you please send
me an E-mail privately? And I'll help you.
Original comment by [email protected]
on 19 Jun 2010 at 3:03
from android-openvpn-settings.
@yoyosefo : If you want to bypass the Great firewall, I'd suggest to go for
L2TP or PPTP VPN, I am also trying to bypass it, but the openvpn technology is
not working for me.
Original comment by [email protected]
on 20 Jun 2010 at 5:37
from android-openvpn-settings.
this issue is occurring in CyanogenMod 6.0rc1. I'm adjusting a bunch of
settings and will double-check all the permissions when I get a chance tomorrow.
Original comment by [email protected]
on 14 Jul 2010 at 11:06
from android-openvpn-settings.
I had the same issue, installed a Chevyno1 kernel, seems to work now, at least
it gets connected with the config file that I setup. No luck getting OpenVPN to
work over 3G, need to research further.
Original comment by ajayjoseis
on 19 Jul 2010 at 4:01
from android-openvpn-settings.
I have Froyo in my Milestone, can i apply the same procedure? and im also
getting FATAL: cannot allocate TUN/TAP dev dynamically
Original comment by [email protected]
on 16 Dec 2011 at 6:26
from android-openvpn-settings.
I've also seen this and similar issues. Seems that it is quite easy
to get things installed into the wrong path. The only way for me to figure it
out was to install the android development tools, and run adb shell.
This gives a way to test various things:
1. type 'adb shell' from your command line, now you're connected to your phone
2. type 'su'. If this works, your device is succesfully rooted.
3. type 'lsmod'. If this doesn't show something with 'tun', that driver is not
loaded.
4. try out 'insmod /system/modules/tun.ko'. If this works, then you know what
to fill in openVPN-settings/advanced/tun module settings.
5. 'which openvpn'
This gives you the path where openvpn is installed. Fill this in the 'advanced'
menu of openVPN-settings.
6. Test your openvpn by hand:
cd /sdcard/openvpn
openvpn client.conf &
(this runs openvpn in background, so now you can test your connection:)
ping 8.8.8.8 # googles dns server. if it connects you have internet acces
route # shows you some gateways, try to ping them.
Hope this helps someone. I did end up compiling and installing openVPN-settings
from source myself, but that shouldn't make a difference.
So for me the tool works, once I figured out the correct settings.
Original comment by [email protected]
on 24 Dec 2011 at 1:19
from android-openvpn-settings.
Sounds like a plan, but I'm new to Android.
How does one get to a command prompt?
Original comment by [email protected]
on 26 Mar 2012 at 1:56
from android-openvpn-settings.
Related Issues (20)
- In addition to issue 56, there should be an option in configuration preferences to bind vpn configuration with network interface status. HOT 1
- Enable configuration of script-security level HOT 4
- cannot open tun/tap dev /dev/tun0 no such file or directory HOT 3
- No market downloads via openvpn HOT 1
- After tapping the configuration, openvpn connection is established but GUI does not update until tapped again HOT 2
- Connect, ping and mot services work except web browsing HOT 4
- Autostart on boot (or on app start) HOT 1
- Add Tasker hooks for actions HOT 6
- New openvpn route htc desirehd problem HOT 4
- /sdcard/openvpn HOT 1
- VPN comes up, but is not used AFAIK HOT 9
- tun.ko for gt i5510 HOT 1
- Can't start a connection HOT 3
- Repeating notifications when connecting / connected HOT 21
- Add support for small screen device HOT 4
- Connected but can't ping and reach server HOT 8
- FixRoutes fails after network 3G/WiFi change HOT 3
- Honeycomb tablet support HOT 9
- slower speeds while on vpn HOT 2
- ioctl. Device reboot HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from android-openvpn-settings.