Create OpenVPN Howto - Wildfire Themes and Apps

Because I found nothing about running openvpn on the HTC Buzz i started this thread.
I don't know everything about openvpn on android. pls feel free to answer.
any help is welcome.
Howto:
prerequisites:
openvpn bin (download/installer)
tun/tap (download/installer)
busybox (download/installer)
...
install:
remount
copy x to y
run z
...
configuration:
put remote_vpn.conf in /etc/openvpn/
put remote_ca.crt in /etc/openvpn/
put remote_client.crt in /etc/openvpn/
put remote_client.key in /etc/openvpn/
...
cp libcrypto.so libcrypto-orig.so
cp libssl.so libssl-orig.so

werty1st said:
Because I found nothing about running openvpn on the HTC Buzz i started this thread.
I don't know everything about openvpn on android. pls feel free to answer.
any help is welcome.
Howto:
prerequisites:
openvpn bin (download/installer)
tun/tap (download/installer)
busybox (download/installer)
...
install:
remount
copy x to y
run z
...
configuration:
put remote_vpn.conf in /etc/openvpn/
put remote_ca.crt in /etc/openvpn/
put remote_client.crt in /etc/openvpn/
put remote_client.key in /etc/openvpn/
...
cp libcrypto.so libcrypto-orig.so
cp libssl.so libssl-orig.so
Click to expand...
Click to collapse
HI im trying to setup my openvpn on wildfire but can't figure out how please help

Why not just download openvpn settings from the market, add config file and that's it Job done works a treat, I think the app is in the DK sense rom you can get it from there
Sent from my HTC Wildfire using xda premium

I'm trying to use openvpn installer, it reboots my phone while trying to install the binary. Is there any solution? I'm using RemPuzzle rom 0.10

Related

tun driver for our hero

Hi!
For the ones interested in openvpn or vpnc I attach the tun.ko module.
Have fun.
Here is the tun driver package. Think you should have a rooted device to make use of it.
To install:
1. copy it to your <sdk>/tools folder
2. adb push hero-tun-module-signed.zip /sdcard/update.zip
3. Type 'adb shell reboot bootloader' to enter the bootloader.(or turn it off and then, holding back button, turn it on)
4. Type 'fastboot boot cm-hero-recovery.img' - the device will now boot into the recovery image.
5. Select the option to 'apply update.zip from SD card'. Let it complete.
6. select reboot
Hi!
Good idea and thanks for packaging it. I just made a quick shot ;-)
Will add this to 1.2.
P
get-a-robot-vpnc does not work using the tun driver included in
2.0-update-hero-modacocustomrom-enhanced-signed.zip
The message appears after entering the pasword for sign on.
The application VPN Connections (process org.codeandroid.vpnc_frontend) has stopped unexpectedly.
# insmod /system/lib/modules/tun.ko
insmod /system/lib/modules/tun.ko
insmod: can't insert '/system/lib/modules/tun.ko': invalid module format
whether tun.ko is fron the 2.0 zero,
or installed via update.zip from hero-tun-module-signed.zip - above.
dmesg says
tun: version magic '2.6.27-a5504199 preempt mod_unload ARMv6 ' should be '2.6.27-8dd6deee preempt mod_unload ARMv6 '
the /etc/net folder does not exist, neither does /etc/tun
tun for 2.6.27-8dd6deee
See attachment for tun driver kernel version: 2.6.27-8dd6deee
(MoDaCo 2.0)
Thanks gogh57,
insmod ran OK.
installed to /dev/tun
vpn is now Trying to connect...
I'll have to check the VPN parameters.
Will let you know.
Brilliant work, many thanks.
I've check and verified my vpn parameters, but get a failed to connect. I'll keep reading and trying and will let you all know.
For info, all I have done - just in case I have missed a fundamental step...
1. Installed VPN connections from the market
2. Configured a network to connect to
3. copied tun.ko to SD card
4. ran adb shell to get on phone then insmod tun.ko - no errors, and shows with lsmod
5. tried to connect.
Getting closer....!
Bryan
How to install it on my Hero?
Hi all,
I have the same problem. Currently using Modaco's 1.5.1 and I do not want to move to 2.0 as it seems that it does not offer any advantage and I am happy until now with 1.5.1.
I am trying to install tun.ko which exists in system/lib/modules (installed with Modaco's ROM). When installing the tun.ko, I get "Exec format error" with dmesg:
# dmesg | grep tun
<3>[152396.817749] tun: version magic '2.6.27-a5504199 preempt mod_unload ARMv6
' should be '2.6.27-44690c1a preempt mod_unload ARMv6 '
How can I find the 2.6.27-44690c1a version ?
Or else I will wait for Bryan's tests and if successful, I will move to 2.0
Thanks for any help
Yiannis
<EDIT> - Moved to Modaco 2.1, Insmod runs OK, VPN-Connect does not connect. I'll dig more and let u know
Newby question, but what can you do with it?
YiannisM said:
Hi all,
I have the same problem. Currently using Modaco's 1.5.1 and I do not want to move to 2.0 as it seems that it does not offer any advantage and I am happy until now with 1.5.1.
I am trying to install tun.ko which exists in system/lib/modules (installed with Modaco's ROM). When installing the tun.ko, I get "Exec format error" with dmesg:
# dmesg | grep tun
<3>[152396.817749] tun: version magic '2.6.27-a5504199 preempt mod_unload ARMv6
' should be '2.6.27-44690c1a preempt mod_unload ARMv6 '
How can I find the 2.6.27-44690c1a version ?
Or else I will wait for Bryan's tests and if successful, I will move to 2.0
Thanks for any help
Yiannis
<EDIT> - Moved to Modaco 2.1, Insmod runs OK, VPN-Connect does not connect. I'll dig more and let u know
Click to expand...
Click to collapse
I'm getting nowhere with this. I'll have to look on the phone to see if it logs anywhere to help diagnose
Let use know YiannisM if you get anywhere?!
Bryan
On my HTC Hero
Using Modaco 2.2
tun.zip included in above
VPN Connections installed
and modified scripts described here:
http://techha.us/2009/06/android-vpn-vpnc/
VPN works now,
stared via an adapted 'go' script. (but not using VPN Connections UI)
I use ConnectBot for terminal.
I'll post exact details tonight.
pvlagsma said:
I'll post exact details tonight.
Click to expand...
Click to collapse
Look forward to it, I had a quick go following the link you gave, but it *****ed (unsurprisingly) at the location of the tun device.
Well done for cracking it
So close now!
J-Zeus said:
Newby question, but what can you do with it?
Click to expand...
Click to collapse
From Wiki....
A virtual private network (VPN) is a computer network in which some of the links between nodes are carried by open connections or virtual circuits in some larger networks (such as the Internet), as opposed to running across a single private network. The Link Layer protocols of the virtual network are said to be tunneled through the transport network. One common application is to secure communications through the public Internet, but a VPN does not need to have explicit security features such as authentication or content encryption. For example, VPNs can also be used to separate the traffic of different user communities over an underlying network with strong security features, or to provide access to a network via customized or private routing mechanisms.
Simply put, for most people I imagine, it allows us to connect to work.
Bryan
pvlagsma said:
On my HTC Hero
Using Modaco 2.2
tun.zip included in above
VPN Connections installed
and modified scripts described here:
http://techha.us/2009/06/android-vpn-vpnc/
VPN works now,
stared via an adapted 'go' script. (but not using VPN Connections UI)
I use ConnectBot for terminal.
I'll post exact details tonight.
Click to expand...
Click to collapse
Also looking forward to this.
Installing VPN on the HTC Hero.
References:
----------
A: This thread - http://forum.xda-developers.com/showthread.php?p=4503502
B: vpnc details - http://techha.us/2009/06/android-vpn-vpnc/
C: ROM 2.2 - http://android.modaco.com/content/h...m-is-here-2-versions-based-on-the-new-update/
D: VPN_Connections: - http://code.google.com/p/get-a-robot-vpnc/downloads/list
E: ConnectBot - android market - the terminal app I use on my Hero. You can do all this from an 'adb shell' on your PC.
1. Flash the 2.2 ROM (others probably work, but the correct tun.ko for the linux build is included in the ROM) from Ref C.
2. Download the latest version (VPN_Connections_v09.apk at time of writing) from get-a-robot-vpnc (Ref D), and install on your Hero.
This provides the vpn modules that are needed.
However I could not get this UI to work on the Hero. It kept hanging, sometimes asking for the password, sometimes not.
Note: the android market version is still 0.6
3. Install the tun.ko module with a script, or manually. This needs to be done each time you boot the Hero.
The script is:
'prep' script ( the following 3 lines: )
-----------
insmod /system/lib/modules/tun.ko
mkdir /dev/net
ln -s /dev/tun /dev/net/tun
Install tun by typing:
sh /sdcard/prep
or typing the 3 commands. (you need to be root, to do this)
(I placed my script on the microSD card, /sdcard/prep)
You can call this script anything you like.
4. Make an 'vpn.conf' file .
IPSec gateway vpn.aa.bb.com
IPSec ID youroffice
IPSec secret yourofficepassword
Xauth username youruid
Place it on /sdcard/vpn.conf
See Ref B for details.
You can call this configuration file anything you like.
5. Make a 'go' script, like this (one long line)
/data/data/org.codeandroid.vpnc_frontend/files/vpnc /sdcard/vpn.conf --script /data/data/org.codeandroid.vpnc_frontend/files/vpnc-script --pid-file /sdcard/vpnc-pid --no-detach --debug 1
Put it in a file /sdcard/go .
N.B. The 'go' script refers to the 'vpn.conf' file which you created earlier.
See Ref B for details.
You can call this script anything you like.
(Note: VPN Connections (Ref D) installs its files to /data/data/org.codeandroid.vpnc_frontend )
6. Start VPN by typing:
sh /sdcard/go
hopefully you will see
# sh /sdcard/go
sh /sdcard/go
Enter password for [email protected]: <this is where you type in your password>
vpnc version ERSION
IKE SA selected psk+xauth-3des-sha1
NAT status: no NAT-T VID seen
got address 33.333.333.333
RTNETLINK answers: File exists
backing up dns and resolve.conf
cp: cannot stat '/etc/resolv.conf': No such file or directory
vpnc-script ran to completion
IPSEC SA selected 3des-sha1
VPNC started in foreground...
&. Start an ssh connection, or a browser to an internal website, or whatever
Brilliant, many thanks!!
couldn't find a /etc/resolv.conf have put a couple of address' into /etc/hosts so I can browse my intranet.
How are you doing DNS??
Bryan
Is it possible to configure for IPSec over tcp?
Just an update from me, the VPN Connect frontend does not work, I have used pvlagsm's instructions and worked for me.
Thanks

[BUGLIST] AOSP 2.2 ROM Bugs and Fixes | Post questions here

If you ...
find a bug or problem on 2.2, post here
find a solution on how to fix the bug, post here
want to get help on how to fix the bug, post here
anything else, goes here
This thread are meant for bug/problem solution and reported bug list of 2.2 custom ROM which i will try to manage, so people are not posting same bug, and asking for same solution all over again in X10 Custom ROM AOSP thread.
Limitation
Cannot Mount via USB
2.2 Custom ROM put the SYSTEM partition on your phone memory and the DATA partition in your SD card. That is why you cannot dismount the SD card from Android to mount to your PC.
No App2SD
2.2 Custom ROM is still running on 2.1 Custom Kernel which not supporting this.
Bug list
#0001 - WiFi not working - Fixed on 2.2
#0002 - Random android.process.media force close - Fixed on 2.2
#0003 - Home button not working, and no Lock Screen - Fixed on 2.2
#0004 - Cannot install certain APK (Angry Bird)
#0005 - No radio, no network and flashing Home - New on 0.0.2
#0006 - ADB shell have SU access, but Titanium Backup cannot work - New on 0.0.2
#0007 - SD Card non-ascii folder show as ???
#0008 - Facebook Contact Sync not available
#0009 - CPU Governor set to performance by default
Solutions for bugs
#0001 - How to enable WiFi on 2.2 Custom ROM
1. Try to enable WiFi, of course it will not work.. just do it.
2. WiFi will goes off automatically
3. Run
Code:
adb shell /system/bin/wlan_tool
4. If the adb stucks, just press CTRL+C
5. Repeat step 4 until you crash the phone
6. After reboot, your WiFi will work.
or
Code:
adb shell killall servicemanager
Post Reference
#0002 - android.process.media FC solution
0.0.1 compiled with prefilled databases which invalid for your phone
Code:
adb shell
cd /data/data/com.android.providers.media/databases
rm *
reboot
or this will ensure no invalid data anymore but will remove fixes for bug #0003
Code:
adb shell
cd /data/
rm -r data
mkdir data
reboot
Post Reference
#0003 - Fix Home Button & Lock Screen
Download sqlite here
First pull the db file first.
Code:
adb pull /data/data/com.android.providers.settings/databases/settings.db settings.db
Then add value to its content
Code:
sqlite3.exe settings.db
sqlite> INSERT INTO "secure" VALUES(67,'device_provisioned','1');
sqlite> .exit
Then push back the db
Code:
adb push settings.db /data/data/com.android.providers.settings/databases/settings.db
Then reboot.
Post Reference
#0004 - Solving installing APK problems
Currently the 2.2 Custom ROM does not support app2sd, and some APK may configure it self to be installed in sdcard.
So we force it to install on internal with code below
Code:
adb shell pm setInstallLocation 1
adb install -l com.rovio.angrybirds.apk
Post Reference
#0005 - Fixing radio, wifi and home screen flashing problem
Run this command
Code:
adb shell killall servicemanager
Post Reference
#0006 - Fixing SU access for Titanium Backup
Run this command
Code:
adb shell chmod 4755 /system/bin/su
Post Reference
#0007 - Fixing SD card mount command to show unicode letters
Modify your chargemon file so its enables utf8 for non ascii letter.
You need to do this on 2.1 ROM, not 2.2 ROM. The file is located in /system/bin
look for this
Code:
mount -t vfat -o rw,noatime,nodiratime /dev/block/mmcblk0p1 /sd
and change into this
Code:
mount -t vfat -o rw,noatime,nodiratime,utf8 /dev/block/mmcblk0p1 /sd
Notes:
You must use a Unix/Linux format capable text editor for this. Notepad will not work.
You can try ultraedit for it.
Post Reference
#0008 - Fix Facebook Sync
Download the ContactsProvider.apk here, then install to your Android using push command
Code:
adb push ContactsProvider.apk /system/app/ContactsProvider.apk
adb reboot
Post Reference
#0009 - Using SetCPU
By default is Performance, fast but wasting too much battery.
Use SetCPU and set to OnDemand.
Post Reference
2.2 Custom ROM FAQ
How and what happened if upgrade from 0.0.1 to 0.0.2?
Just copy data.img and system.img replacing your current one in FreeX10 folder.
This will replace all your 0.0.1 data, be sure to back up first with Titanium Backup
WiFi is running and connected, but cannot browser
This problem seems to be occurring on selected few.. You can set static IP to your android.
Go to Settings -> Wireless ... -> WiFi, then press menu button. From there you can se static IP
Is there a possibility of Timescape and Mediascape for 2.2 Custom ROM
The answer is yes, its possible.
I managed to install Mediascape.apk into 2.2 Custom ROM, but cannot run.
The reason it cannot run is because UX is using a lot of things in Framework-res.apk, images, layout, styles, and etc which cannot be copied directly from SE 2.1 into 2.2 AOSP. It requires someone to properly put all values, resolving conflicts inside Framework-res.apk before the UX can run, which will take months or at least weeks if someone dedicated his or her day job for it. Then after that we still need to deal with external files. So in conclusion, while it still possible, i don't think anyone will do it because of the time demanding process.
I want to help devs solving bugs, i found one but i don't know what actually happend.
While usb connected, from command prompt, type
Code:
adb logcat > logcat.txt
This will output a lot of debugging info into logcat.txt file, later if you find bug, you take a look inside the file.
See anything error or info related to the bug, and post here.. When writing the logcat.txt output, but them inside
Code:
brackets.
Do not post everything.. post few lines related to the bugs.
2.2 Custom ROM Testing Tools
Service Menu
WARNING: DO NOT INSTALL THIS UNLESS YOU DO DEVS, END USER DO NOT INSTALL
PURPOSE: MAYBE FOR TESTING DEVICE FEATURE, MIGHT BREAK SYSTEM APPS
Enable SE Service Menu for device testing. For devs only. You need to put adb stuff in the directory for install.bat to run.
Install framework
Code:
adb push permissions /system/etc/permissions
adb push lib /system/framework
adb reboot
Install applications
Code:
adb install app\bootinfo3.apk
adb install app\ServiceMenu2.apk
adb install app\com.laac.launcher.servicemenu.apk
Nice work. THis is handy
As i posted in the Main thread!
I think some of the force closes, (mainly acore and google framework) and the fact that the market crashes, come down to importing a vcard!
I imported vcard, get many force closes, market stops working, I clean install and don't install the vcard. Everything functions fine.
I do believe this is the reason!
Greeet ~~!! but can u tell me the seloution of this proplem :
i was run 2.2 001 ok ? then i back to to SE 2.1 to change old system.img & data.img by the new on FreeX10_alpha-release_0.0.2-UPDATE , ok ? then i reboot my phone into 2.2 , it run but like u make a refresh on computer ! evry 3 second !
thnx
Ahmed radi said:
Greeet ~~!! but can u tell me the seloution of this proplem :
i was run 2.2 001 ok ? then i back to to SE 2.1 to change old system.img & data.img by the new on FreeX10_alpha-release_0.0.2-UPDATE , ok ? then i reboot my phone into 2.2 , it run but like u make a refresh on computer ! evry 3 second !
thnx
Click to expand...
Click to collapse
Please read the main post!
sorry but no one answer me there
Thanks
Thanks for this ,hopefully a post like this is made for the 1st post on 2.1
http://forum.xda-developers.com/showpost.php?p=9134882&postcount=1
awesome thread, very helpful. Hopefully more people will read this rather than constantly posting the same bugs in the main thread.
Ahmed radi said:
sorry but no one answer me there
Click to expand...
Click to collapse
hey ahmed
grb el solution da
#0005 - Fixing radio, wifi and home screen flashing problem
Run this command
Code:
adb shell killall servicemanager
i think en da el 7l
bye
bsthost said:
hey ahmed
grb el solution da
#0005 - Fixing radio, wifi and home screen flashing problem
Run this command
Code:
adb shell killall servicemanager
i think en da el 7l
bye
Click to expand...
Click to collapse
i dont know how to use adb shell is there anythread for newbie user how to use adb ?
angry birds on my x10 is working well....i take it from a previous backup and restrored on 2.2 with mybackup pro
Please post to http://forum.xda-developers.com/showthread.php?t=835308&page=9999 thread instead.
We don't need to create two discussion thread.
i fixed the wifi and flashing problem and i have connected to wifi but i cant access internet or market any it seems i have connected to my modem netwok still cant access to internet any idea how to fix this?
17mayis said:
i fixed the wifi and flashing problem and i have connected to wifi but i cant access internet or market any it seems i have connected to my modem netwok still cant access to internet any idea how to fix this?
Click to expand...
Click to collapse
Code:
setprop ro.kernel.android.ndns 2
setprop net.eth0.dns1 8.8.8.8
setprop net.eth0.dns2 8.8.4.4
New crash this morning : i tried to connect my BT headphone after that i've activated BT => BT has desactivated itself then the phone reboots.
zephyrix said:
Code:
setprop ro.kernel.android.ndns 2
setprop net.eth0.dns1 8.8.8.8
setprop net.eth0.dns2 8.8.4.4
Click to expand...
Click to collapse
i appreciate your answer man if you could tell me how to do this ? through adb shell or something else?
17mayis said:
i dont know how to use adb shell is there anythread for newbie user how to use adb ?
Click to expand...
Click to collapse
Google is your friend!
i have flashPlayer10.1 problem it,s to slow when i play on any website any solution what might be ?

[SOLVED] lsmod - no output

Hi all.
I'm trying to get info from lsmod, but the command returns no output?!?
Here's how I do it
Goto msdos
Goto adb folder
adb shell
su
lsmod
I should get a list of active modules no?
Thanks!
My guess is you are using CM7 and no wifi ? There is only ar6000.ko module(for wifi) in CM7. If you have wifi switched off you wont get output.
Thanks buddy! That's exactly the issue...
Now I'll never know if the UV is working on me phone. (
Which rom are you using? Do a ls /system/lib/modules and post here.
Sent from my X10
Here ya go:
ls /system/lib/modules
wifi.ko
twofish_common.ko
twofish.ko
dm-mod.ko
dm-crypt.ko
data.patch.hw2_0.bin
athwlan.bin.z77
x10uv.ko
It would seem that x10uv.ko is there, but is it loaded, loading etc... ? I don't know.
Thanks for the help. I'm running TW 007 with 2.6.29-zdzihu-mod3.50.1 kernel

[Q] OpenVPN on stock (rooted) 10.1 3G - how to get/create tun.ko

Hi!
I successfully use(d) OpenVPN with the available tun.ko versions on my Galaxy Tab.
I tried to move that to the brand new European version of the 10.1 (no V, GT-P7500, Kernel 2.6.36.3, [email protected] #1, buildnr HMJ37 P7500XXWKG9, baseband XXKG7, ). But obviously, there is no tun.ko in the kernel and the available versions of tun.ko do not work with the 3.1 Honeycomb kernel.
Does anybody has compiled a tun.ko for this kernel already or can guide/tell me, how to do this myself?
Regards,
Questions or Problems Should Not Be Posted in the Development Forum
Please Post in the Correct Forums and Read THIS
Moving to Q&A
I am searching badly for a solution tu use PPTP VPN on my Galaxy Tab 10.1 (no v) 3G, too!
In the meantime, I learned that tun.ko is part even of the stock kernel. Nevertheless, I did not get it running with the setup I used on my Galaxy Tab.
Are you sure? I did a search for the file but nothing was found.
if preshoot already upload his git sources, I can do this for you guys.
Just wait for him,to upload his latest sources...
funky81 said:
if preshoot already upload his git sources, I can do this for you guys.
Click to expand...
Click to collapse
That would be nice.
richardtrip here told me, that tun.ko is already in the stock kernel.
I am presently trying to find out what detail makes problems in the connection to my Linux server. A connection is established, but not fully and yet not useable.
Hi!
I did some experiments with my OpenSuse 10.3 server and the Tab 10.1.
With the tun-device, I can establish a connection. But the 10.1 does not receive its address in the VPN network, ifconfig does not show the tun-device as device.
The same configuration which works flawlessly on my Galaxy Tab does not work on the 10.1.
Perhaps somebody is experienced with the OpenVPN configuration in this case.
Some more findings:
The device used is tap, but tunctl must be called to create a persistent tapx.
tunctl expects /dev/net/tun which must be either created by a symlink (/dev/tun exists, mkdir /dev/net, ln -s /dev/net/tun /dev/tun) or must be added with parameter -f on commandline.
It also seems that ifconfig has different parameters than on my Galaxy Tab. Starting OpenVPN from commandline, it complains about route/ifconfig with wrong parameters.
With special thanks to Amarok, I could get his solution also working on my Tab 10.1:
Install Busybox from Market
Install OpenVPN Installer from Market and install to
binaries: /system/xbin
route/ifconfig: /system/xbin/bb
Create /system/xbin/bb with Root Explorer or from shell
Create link to busybox for ifconfig and route
ln -s /system/xbin/busybox /system/xbin/bb/route
ln -s /system/xbin/busybox /system/xbin/bb/ifconfig
Check permissions for /system/xbin/openvpn, it should be 777 (rwxrwxrwx)
Using the openvpn binary from my galaxy tab (copy into /system/xbin, chmod 777) got OpenVPN finally working.
akxak said:
With special thanks to Amarok, I could get his solution also working on my Tab 10.1:
Install Busybox from Market
Install OpenVPN Installer from Market and install to
binaries: /system/xbin
route/ifconfig: /system/xbin/bb
Create /system/xbin/bb with Root Explorer or from shell
Create link to busybox for ifconfig and route
ln -s /system/xbin/busybox /system/xbin/bb/route
ln -s /system/xbin/busybox /system/xbin/bb/ifconfig
Check permissions for /system/xbin/openvpn, it should be 777 (rwxrwxrwx)
Using the openvpn binary from my galaxy tab (copy into /system/xbin, chmod 777) got OpenVPN finally working.
Click to expand...
Click to collapse
The last step ? From you which tab did you copy openvpn ? Is it possible to get the specific openvpn. Still not working on my side.
Thanks
Nar
Have also a look at this thread:
http://forum.xda-developers.com/showthread.php?t=1185370
Attached the openvpn binary I use.
akxak said:
Have also a look at this thread:
http://forum.xda-developers.com/showthread.php?t=1185370
Attached the openvpn binary I use.
Click to expand...
Click to collapse
So the tun.ko with stock works? When I run openvpn from either cli or openvpn settings tab it'll connect but I get no ip address. The only errors I'm getting are " Options error: Unrecognized option or missing parameter(s) in [PUSH-OPTIONS]:4: route (2.1.1)". So is using the attached openvpn binary all it took?
--
Brad
---------- Post added at 06:49 PM ---------- Previous post was at 06:42 PM ----------
jbaskew said:
So the tun.ko with stock works? When I run openvpn from either cli or openvpn settings tab it'll connect but I get no ip address. The only errors I'm getting are " Options error: Unrecognized option or missing parameter(s) in [PUSH-OPTIONS]:4: route (2.1.1)". So is using the attached openvpn binary all it took?
--
Brad
Click to expand...
Click to collapse
I missed the permissions part in your earlier post. With the openvpn binary you attached to the thread along with changing the perms I'm good to go. Such a relief! Thanks, akxak!
--
Brad
What about tun.ko???? I run the same GT as you though 7500 3.1 ??
As already stated, tun.ko is part of the stock firmware.
Sent from my Galaxy Tab 10.1 using Tapatalk.
I dont find tun.ko on my GT when I search with root explorer..
my tun.ko is located in /data/media/openvpn/openvpn/tun.ko
On my Tab, a separate tun.ko is not required. OpenVPN works anyway, as that seems to be an integral part of the kernel.
I'm trying to use the openvpn settings as well but when I try to connect I get
"Fatal:Cannot allocate TUN/TAP dev dynamically"
and when I try to insmod tun.ko using adb, I get this error:
"init.module 'tun.ko' failed <Exec format error>
I'm using pershoot's most up to date kernel (yesterday) with the tun.ko file that was included with it. I also tried with the one supplied in this thread as a .rar file and I received the same errors.
Any ideas?
Nearly there
Hey everybody.
I also have some problem with openvpn connection.
At first i turn on openvpn the start the configuration (at the same time i started a ping on my server: ping 300.300.300.300 -t)
After that my ping works for 12 - 14 times. After the 12 + 14 times then it shows "out of time" error message.
What have i done wrong? (Every 5 seconds at the bottom of my tab it shows "myvpn.openvpn: Connected"
Preferences:
Samsung Galaxy Tab 10.1 Rooted
Android 3.1
Newest Busybox
Done everything from the tutorial of this topic
Update: When i turn the tun module on then the ping only works for about 9 times.
After about 20 failed pings, the pink works again for the amount i wrote.

[FIX] VPN is working on Simple Streak ROM!

Hello there! After months asking for the developer of Simple Streak Rom for a fix in the VPN connections (and no answer) I have been trying to fix it. Well, I made it! After several days of frustration, I have finally made it work
What do you need:
1. Working VPNServices.apk (I pulled from the PlayDoh ROM, which it is based on 354 ROM which it is supposedly the same of Simple Streak 1.2 Testing V4)
Links:
http://www.multiupload.com/E9RI0XOKCQ
Mirror:
https://sites.google.com/site/ernestovillarreal/home/VpnServices.apk?attredirects=0&d=1
2. Working tun.ko for our devices (thanks gpmg762 for that!)
Link:
http://www.multiupload.com/D3FXAJUC72
Mirror:
https://sites.google.com/site/ernestovillarreal/home/tun.ko?attredirects=0&d=1
3. Need to give special permissions to the VPNServices.apk. In a terminal emulator, or using adb, type:
Code:
su
mount -o remount,rw /dev/null /system
chmod 0644 /system/app/VpnServices.apk
mount -o remount,ro /dev/null /system
sync
reboot
3. Load for the first time the tun.ko. In the same console, type:
Code:
su
insmod /pathofwheretun.kois/tun.ko
4. Edit the init script to load the tun module every boot. Edit this file: "/etc/init.streak.post_boot.sh", adding this line to the last line:
"insmod /system/lib/modules/tun.ko"
ASSUMING you have the tun.ko in /system/lib/modules folder.
And that's it!
**UPDATE: It works! The problem seems to be my router, in 3G is working fine!!
**UPDATE 2: In my case, it is not working on WiFi. I'll try on other ones in the night.
**UPDATE 3: My bad, problem with the chmod. I have fixed it on the thread
**UPDATE 4: In the Simple Streak 1.3 testing 5, Splida added the tun.ko but he didnt add the VpnServices.apk nor the postboot modification. So, just skip step 2. And it is still not working using WiFi.
WiFi problem probably with dd-wrt router. Will test this night.
#Bump
This is awesome! VPN working on Simple Streak?! Downloading now.
Excited to use my blue tooth mouse with windows remote desktop (2x Client) away from the office and secured tunnel.
::EDIT:: working great on my WiFi!
Ok, so how do we script tun.ko? You could figure out how to run the insmod /data/tunko/tun.ko at every boot -TheManii, I'm looking at you
Or create a shortcut that will run tun.ko on demand and preferably connect the VPN with the same single click.
This is more of DJ_Steve's area of expertise I think, I dont really know much in regards to launching scripts on boot.
I guess you could make a script in /system/etc/init.d or just /system/etc
with
Code:
insmod /system/lib/modules/tun.ko
I dont see where streakdroid has it's scripts to run it, mabye it's automatic if it's in that folder? If it does in fact still need to be scripted i believe init.d runs with root privs?
Really I'm just guessing
May be you can try scriptmanager run on boot option
Sent from my Dell Streak using Tapatalk
Guys, you can put the line "/system/bin/insmod /system/lib/modules/tun.ko" into /etc/init.streak.post_boot.sh, that loads it for me after a reboot.
Or you can use GScript from market to load it manually.
Hope that helps.
gpmg762 said:
Guys, you can put the line "/system/bin/insmod /system/lib/modules/tun.ko" into /etc/init.streak.post_boot.sh, that loads it for me after a reboot.
Or you can use GScript from market to load it manually.
Hope that helps.
Click to expand...
Click to collapse
That's right, I figured it out minutes later I posted this post.. but I was lazy to put it here
In my case, I just put on the last line:
insmod /system/lib/modules/tun.ko
i'm testing your method now....
here is the result. ..
terminal emulator:
su
insmod /system/lib/modules/tun.ko
insmod: init_module '/system/lib/modules/tun.ko' failed(Exec format error)
need your expertise. . . .TIA
in init.streak.post_boot.sh
the last line says "esac"
will i put it like this{ esac "insmod /system/lib/modules/tun.ko"}
or like this:
esac
"insmod /system/lib/modules/tun.ko"
noob here....thanks again.
request. . .
gpmg762 said:
Guys, you can put the line "/system/bin/insmod /system/lib/modules/tun.ko" into /etc/init.streak.post_boot.sh, that loads it for me after a reboot.
Or you can use GScript from market to load it manually.
Hope that helps.
Click to expand...
Click to collapse
can you compile a working tun.ko for my device sir?tun attached in this thread didn't work for me...here is the info:
dell streak 5
android 2.2.2
baseband - GAUSB1A134700-EU
kernel - SimpleStreakKernel-bySpidlA
OEM - GAUSB1A135411
build number - Simple Streak 1.3 (4th testing)
TIA XDA MEMBERS...
takoyaki17 said:
can you compile a working tun.ko for my device sir?tun attached in this thread didn't work for me...here is the info:
dell streak 5
android 2.2.2
baseband - GAUSB1A134700-EU
kernel - SimpleStreakKernel-bySpidlA
OEM - GAUSB1A135411
build number - Simple Streak 1.3 (4th testing)
TIA XDA MEMBERS...
Click to expand...
Click to collapse
Try to ask him via PM and then, provide the tun.ko, so I can put it on the mirror server to everyone.
takoyaki17 said:
i'm testing your method now....
here is the result. ..
terminal emulator:
su
insmod /system/lib/modules/tun.ko
insmod: init_module '/system/lib/modules/tun.ko' failed(Exec format error)
need your expertise. . . .TIA
in init.streak.post_boot.sh
the last line says "esac"
will i put it like this{ esac "insmod /system/lib/modules/tun.ko"}
or like this:
esac
"insmod /system/lib/modules/tun.ko"
noob here....thanks again.
Click to expand...
Click to collapse
Thanks right, but without the quotes.
Like this:
esac
insmod /system/lib/modules/tun.ko
Still searching for the right tun.ko to run openvpn in my streak....
Sent from my Dell Streak using XDA Premium App
takoyaki17 said:
Still searching for the right tun.ko to run openvpn in my streak....
Sent from my Dell Streak using XDA Premium App
Click to expand...
Click to collapse
if you trust me, sned me the login details so I can check with my cell phone if I can log in.
hmmm
netomx said:
if you trust me, sned me the login details so I can check with my cell phone if I can log in.
Click to expand...
Click to collapse
log in details of what?my openvpn or my xda account?
takoyaki17 said:
can you compile a working tun.ko for my device sir?tun attached in this thread didn't work for me...here is the info:
dell streak 5
android 2.2.2
baseband - GAUSB1A134700-EU
kernel - SimpleStreakKernel-bySpidlA
OEM - GAUSB1A135411
build number - Simple Streak 1.3 (4th testing)
TIA XDA MEMBERS...
Click to expand...
Click to collapse
try the attached file.
netomx said:
if you trust me, sned me the login details so I can check with my cell phone if I can log in.
Click to expand...
Click to collapse
For your last config file.
takoyaki17 said:
log in details of what?my openvpn or my xda account?
Click to expand...
Click to collapse
Your OpenVPN login details.
thanks but. . .
gpmg762 said:
try the attached file.
Click to expand...
Click to collapse
i think it doesn't work....
i used terminal emulator to test it
and says no such file or directory....
can you take another shot sir....thanks
takoyaki17 said:
i think it doesn't work....
i used terminal emulator to test it
and says no such file or directory....
can you take another shot sir....thanks
Click to expand...
Click to collapse
That seems to be a problem in your terminal emulator.
hmmm
netomx said:
That seems to be a problem in your terminal emulator.
Click to expand...
Click to collapse
i dont think so...at first i thought that's the problem too....
so i tried using openvpn it says FATAL ERROR: cannot allocate tun/tap
you guys are great...so please help me. . .thanks
takoyaki17 said:
i dont think so...at first i thought that's the problem too....
so i tried using openvpn it says FATAL ERROR: cannot allocate tun/tap
you guys are great...so please help me. . .thanks
Click to expand...
Click to collapse
yes it is, that's why openvpn can't open the tun device.
type here what you write on the terminal
netomx said:
yes it is, that's why openvpn can't open the tun device.
type here what you write on the terminal
Click to expand...
Click to collapse
same as your post...
su
mount -o remount,rw /dev/null /system
chmod 0644 /system/app/VpnServices.apk
mount -o remount,ro /dev/null /system
sync
reboot
then after reboot:
su
insmod /system/lib/modules/tun.ko
i tried the one gpmr provided ad the result is:
no such file or directory
then i tried the one that he gave you last:
Failed (file exist)
anyway,what does 0644 do to the vpnservices.apk?

Categories

Resources