yashsingh1/xdaforums huggingface dataset:
[Droid Incredible Themes and Apps] PokerMunkee:
OK, had a misspell in the tun.ko file.

I'm connected now. But unable to connect to anything on my network. Still looking into it.

Any ideas? I've restarted the phone. I'm connected to my OpenVPN server. I cannot ping the IP assigned to it (from OpenVPN status page). I cannot ping anything on my internal network from the shell. Shows no data moving. Do I need to do something?

I did a netconf and i have this:

tap0 UP 172.30.100.255 255.255.0.0 0x00001043
[Droid Incredible Themes and Apps] fang0654:
Sounds like something isn't set up right with your routing rules.

You may want to run openvpn manually from adb shell just to see if anything funky is happening.

adb shell

su

/data/openvpn/openvpn --config /sdcard/openvpn/client.conf

This will let you see if anything is failing.
[Droid Incredible Themes and Apps] PokerMunkee:
This is what I get using the command line:

# /data/openvpn/openvpn --config /sdcard/openvpn/FW1.config

/data/openvpn/openvpn --config /sdcard/openvpn/FW1.config

Mon Jun 21 07:28:52 2010 OpenVPN 2.1.1 i686-pc-linux-gnu [SSL] [LZO2] [EPOLL] bu

ilt on Jun 14 2010

Enter Auth Username:eharris

eharris

Mon Jun 21 07:28:54 2010 WARNING: No server certificate verification method has

been enabled.

Mon Jun 21 07:28:54 2010 NOTE: OpenVPN 2.1 requires '--script-security 2' or hig

her to call user-defined scripts or executables

Mon Jun 21 07:28:54 2010 LZO compression initialized

Mon Jun 21 07:28:54 2010 UDPv4 link local: [undef]

Mon Jun 21 07:28:54 2010 UDPv4 link remote: 72.16.x.x:1194

Mon Jun 21 07:28:54 2010 WARNING: this configuration may cache passwords in memo

ry -- use the auth-nocache option to prevent this

Mon Jun 21 07:28:56 2010 [127.0.0.1] Peer Connection Initiated with 72.16.x.x

:1194

Mon Jun 21 07:28:58 2010 AUTH: Received AUTH_FAILED control message

Mon Jun 21 07:28:58 2010 SIGTERM[soft,auth-failure] received, process exiting

#

Doesn't prompt me for a password. I get prompted and connected using the GUI. Any ideas?

When connecting with OpenVPN Settings, it connects to the server just fine. Seems like a routing issue. Is there no route or ifconfig on the device? (doesn't work from the shell). I get a Desination Host Unreachable when trying to ping my OpenVPN's internal IP from the adb shell.
[Droid Incredible Themes and Apps] PokerMunkee:
It's me again. I'm desperate to get this working.....losing sleep over it :D

Here is the routing tables on my android when i'm connected:

# ip route

ip route

97.185.13.204/30 dev rmnet0 proto kernel scope link src 97.185.13.206

172.30.20.0/24 via 172.30.100.150 dev tap0

172.30.100.0/24 via 172.30.100.150 dev tap0

172.30.30.0/24 via 172.30.100.150 dev tap0

192.168.157.0/24 via 172.30.100.150 dev tap0

172.30.10.0/24 via 172.30.100.150 dev tap0

172.30.0.0/16 dev tap0 proto kernel scope link src 172.30.100.255

default via 97.185.13.205 dev rmnet0

#

I'm unable to ping 172.30.100.150 which is my openvpn server.

:(
[Droid Incredible Themes and Apps] fang0654:
Do you have /system/bin/ifconfig and /system/bin/route?

Try this:

adb shell

su

busybox which ifconfig

busybox which route
[Droid Incredible Themes and Apps] PokerMunkee:
Yes, both ifconfig and route are in /system/bin.

If I type in busybox, I get "not found".

I believe busybox was installed when I first rooted the phone, since I pushed a busybox.zip file.

C:\sdk\tools>adb shell

$ su

su

# busybox which ifconfig

busybox which ifconfig

busybox: not found
[Droid Incredible Themes and Apps] fang0654:
I got busybox from the latest payload, but this was working before hand, so it shouldn't matter.

I'm not too familiar with the tap interface. Is it supposed to have an ip address?

For me, ip route gives my tun0 device the following:

10.112.0.69 dev tun0 proto kernel scope link src 10.112.0.70

10.112.0.70 being the local ip.

What does the following yield:

ifconfig tap0
[Droid Incredible Themes and Apps] PokerMunkee:
# ifconfig tap0

ifconfig tap0

tap0: ip 172.30.100.255 mask 255.255.0.0 flags [up broadcast running multicast]

#

It's not getting a valid IP?

Hrm.
[Droid Incredible Themes and Apps] PokerMunkee:
I typed in "ifconfig tap0 172.30.100.199 255.255.255.0" and i was able to connect to my LAN instantly.

Any ideas why it's doing this? Is there an easy way to make a script that does this from my phone?

Sooooooooooo CLOSE!
[Droid Incredible Themes and Apps] fang0654:
Can you post a censored version of your config?

When I was recompiling the OpenVPN Settings app, it said something about the default ifconfig not being feature rich enough, and needing to use the busybox version, but I didn't have any problem. Maybe that is the issue?
[Droid Incredible Themes and Apps] PokerMunkee:
I really appreciate your help!!

Here is my client config

Server config

I'm using ENDIAN 2.2 that OpenVPN built into it.
[Droid Incredible Themes and Apps] fang0654:
Looks fine to me. Do you have any other clients connected? (Only 10 addresses in range, run out perhaps?) When you try to connect, anything regarding remote ip in the openvpn.log?
[Droid Incredible Themes and Apps] PokerMunkee:
I installed GScript and just run a script with "ifconfig tap0 172.30.100.199 255.255.255.0" and I can then RDP into my work computer. I'm happy with that!

I do wish I couild find out why it doesn't assign the correct IP, but I'm not going to waste anymore time on it.

Thanks for your help, I am so relieved to again have access to work on my phone. No more stressing out when I don't bring the laptop!
[Droid Incredible Themes and Apps] fang0654:
Ok, glad you got it working!
[Droid Incredible Themes and Apps] wraithdu:
I had the same problem, and it's due to the built in versions of ifconfig and route I think. I did this:

1) installed busybox 1.15.3 to /system/xbin and installed the links (busybox --install .)

2) reboot into recovery

3) mount /system and adb shell:

# cd /system/bin

mv ifconfig ifconfigoff

mv route routeoff

ln -s /system/xbin/busybox ./ifconfig

ln -s /system/xbin/busybox ./route

4) reboot

This creates the busybox ifconfig and route symlinks in /system/bin. After this, OpenVPN Settings works perfectly. Since OpenVPN uses hardcoded paths, this is the only workaround I can think of.
[Droid Incredible Themes and Apps] wraithdu:
Modified instructions above to create symlinks instead of hardlinks. I'm not sure if it matters, but it's how the ifconfig links are done in CM.
[Droid Incredible Themes and Apps] PokerMunkee:
Could you explain how you installed busybox? I can only find the source (tar). If I try to install it from the Market, it faills.
[Droid Incredible Themes and Apps] wraithdu:
busybox is installed by the latest rooting process, but it's not a full install, ie it does not create all the command links. I got the file from the Titanium Backup site:

www.matrixrewriter.com/android/files/busybox-1.15.3.zip

To install:

1) extract and push busybox to your sdcard, reboot into recovery

2) mount /system

3) if you don't have /system/xbin (you should), create it

adb shell:

# mkdir /system/xbin (if necessary)

dd if=/sdcard/busybox of=/system/xbin/busybox

cd /system/xbin

chmod 755 busybox

./busybox --install .

4) reboot and done

OPTIONAL - before rebooting replace the busybox installed by the root process in /system/bin

1) mv /system/bin/busybox /system/bin/busybox.bak

2) cp /system/xbin/busybox /system/bin/busybox
[Droid Incredible Themes and Apps] PokerMunkee:
Well done!

Thank you for your help. Works great now :)
[Droid Incredible Themes and Apps] fang0654:
I can upload another version of openvpn pointing to /system/xbin instead of /system/bin. The path for ifconfig and route are hardcoded into the binary, so have to be set before compile. I just moved, so my main machine is still in boxes, but once it is back up I'll update the first post with an updated binary and your additional instructions.
[Droid Incredible Themes and Apps] ksizzle9:
Complete noon question here, but what exactly is openVPN? What are the benifits of it?
[Droid Incredible Themes and Apps] PokerMunkee:
http://openvpn.net

It's an opensource VPN solution for connecting to remote sites. We are using it on our Incredibles so we can securely connect to our company networks and RDP into our workstations.
[Droid Incredible Themes and Apps] SimonTuffGuy:
I'm trying to connect into my company Cisco VPN as well... This was so easy with my iPhone, but I'm going to make it work on my Incredible. :)

I have a GScript command that loads the tun.ko module automatically when I click it. I installed the newest version of Busybox, per the instructions here on the site...

However, I still get a failed to connect.

When I type "ifconfig tap0", it comes back saying "tap0: No such device". Do I need this to be configured for my isco VPN, or is that OpenVPN related only?

Thoughts?
[Droid Incredible Themes and Apps] SimonTuffGuy:
Now getting a "ifconfig: tap0: error fetching interface information: Device not found".

Still not sure if this is necessary to connect to my Cisco VPN or not.
[Droid Incredible Themes and Apps] gummehbear:
I have an error that i can't figure out. I don't think the ca, cert, and key options have to be the full path, in which case i have no idea why it fails to read the file, that is of course assuming I am reading the error correctly.

Can anyone help me with this?

# /data/openvpn/openvpn --config /sdcard/openvpn/client.conf
Fri Jul 9 15:46:35 2010 OpenVPN 2.1.1 i686-pc-linux-gnu [SSL] [LZO2] [EPOLL] built on Jun 14 2010
Enter Auth Username:jeff2daizzo
Fri Jul 9 15:46:42 2010 NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables
Fri Jul 9 15:46:42 2010 Cannot load certificate file client.crt: error:02001002:system library:fopen:No such file or directory: error:20074002:BIO routines:FILE_CTRL:system lib: error:140AD002:SSL routines:SSL_CTX_use_certificate_file:system lib
Fri Jul 9 15:46:42 2010 Exiting

client
auth-user-pass
dev tun
proto tcp
remote ldap.server.com 1194
resolv-retry infinite
nobind
persist-key
persist-tun
ca ca.crt
cert client.crt
key client.key
ns-cert-type server
comp-lzo
verb 3

$ ls /sdcard/openvpn/
openvpn-static
client.conf
tun.ko
ca.crt
client.crt
client.key

$ ls /data/openvpn/
openvpn
[Droid Incredible Themes and Apps] CNUFijiBluSi:
Worked Great! Thank you so much :)
[Droid Incredible Themes and Apps] witch:
i got "cannot allocate TUN/TAP dev dynamically" :(
[Droid Incredible Themes and Apps] gummehbear:
EDIT: fixed my issues, bad certs
[Droid Incredible Themes and Apps] aaronjb:
Note that the CM6 builds don't have the TUN module built into the kernel. Compile your own and load it with insmod, or wait for it to be included in CM6 by default.
[Droid Incredible Themes and Apps] wraithdu:
The hydra kernels have TUN built in to the kernel. So if you're running a ROM that works with those kernels, you can go that route too.
[Droid Incredible Themes and Apps] aaronjb:
For me, Hydra kernels don't properly function with the CM6 releases, unfortunately.
[Droid Incredible Themes and Apps] fang0654:
If anyone feels like compiling a tun.ko for CM6, I'll add it to the original post.
[Droid Incredible Themes and Apps] loonix:
Is anyone able to connect to Contivity/Nortel VPN using this?
[Droid Incredible Themes and Apps] gummehbear:
Has anyone been able to get OpenVPN to work with SkyRaider + Hydra's Kernel? I've been unsuccessful in getting OpenVPN working since upgrading to the android 2.2 leaks.
[Droid Incredible Themes and Apps] crutoi:
does this work with Sonicwall vpn?
[Droid Incredible Themes and Apps] apalyan:
For anyone interested, I've compiled the tun module against HTC's 2.6.32.15 kernel release and tested it successfully running OTA 2.2 (8/1 leak). My kernel version is 2.6.32.15-g5e1ad8b. Just replace your tun.ko file with the attached one and OpenVPN should start working again.

Cheers!
[Droid Incredible Themes and Apps] gummehbear:
For anyone trying to get OpenVPN working on Froyo w/ the hydra kernel and failing miserably, its because you have to load the tun.ko module differently.

Since the kernel is now modular you will have to point openvpn to tun.ko in /system/lib/modules. i.e. - /system/lib/modules/tun.ko

I don't know if this is different for other kernels, but this was the solution i found via ejhart.

For reference: (SSL cert fails)

https://git.unrevoked.com/redmine/issues/14
[Droid Incredible Themes and Apps] fang0654:
Thanks! I added it to the main post, along with updated (and much easier) instructions for anyone who also has S_OFF.
[Droid Incredible Themes and Apps] asmozre:
I'm having trouble getting this running on king's newest kernel. I am able to get connected but do not see any ip route once I am connected. Not able to ping any internal ip's after the openvpn connected on the phone either.
[Droid Incredible Themes and Apps] vossco32:
New 2.2 Rom

The new 2.2 Rom (3.21.605) has a different kernel string then the previous 2 leaks so the tun.ko will not load. Any chance we could get a new one compiled for this new kernel?
[Droid Incredible Themes and Apps] PokerMunkee:
I'm also having issues getting OpenVPN to work on the official release ROM.

Getting FATAL: Cannot allocate TUN/TAP dev dynamically on the final 2.2 release.
[Droid Incredible Themes and Apps] vossco32:
This is the same error I am getting. If you check the logs it is not loading the tun module because it thinks it is for a different kernel. It is actually the same kernel just with a difference version string. Old kernel string 2.6.32.15-g5e1ad8b new kernel string 2.6.32.15-gb7b01d1.
[Droid Incredible Themes and Apps] PokerMunkee:
I installed Kings kernel that has tun.ko compiled in. I can now connect but back to where I can't ping anything, unless I do a "ifconfig tap0.....". Damn, why is this hard to get working lol
[Droid Incredible Themes and Apps] geekamole:
I used a hexeditor to change the first (and only, I think) instance of "2.6.32.15-g5e1ad8b" in tun.ko to "2.6.32.15-gb7b01d1" and it loaded fine, connects fine, everything AOK. No recompile needed. I don't know if that would have worked had the strings been different lengths.
[Droid Incredible Themes and Apps] acezhi:
Does this run with CM6 later versions such as 6.0.2?

I saw that the CM6 kernel didn't have tun in earlier versions.
[Droid Incredible Themes and Apps] cosar:
Hi! I am new to opnvpn on mobile. I have HTC Desire with LeeDroid 2.2f ROM and I'm rooted. I managed to use and open openvpn installer. It seems working from logcat. Also, I am using openvpn client on Windows with a user account. The problem is that from where can I get the .cert .ovpn etc. files. Or how can I create them manually? Any help appreciated.
[Droid Incredible Themes and Apps] Stockmoose16:
"Make sure you copy your config file and any relevant keys to a folder"

I'm a noob and trying to install OpenVPN on my Inc. I am using HMA Pro on my W7 computer, but where do I find the Config files and relevant keys that you mention in the quote above? I have no clue.

Would appreciate some direction on this!
[Droid Incredible Themes and Apps] harisit2005:
any ways to save the Username and password in OpenVPN ?
[Touch HD General] xiaohaiqiu:
hi~everyone，i have a trouble with my “today”screen 。when i choose "Messaging" in settings ,then i back to the main screen ,on the screen it does not link to text messages but link to e-mails,could anyone please tell me how to solve this problem:confused:

sorry for my poor English.thank you !!!
[Droid Eris Android Development] SoCalSpecialist:
good **** kiddo..i see u got the green light!!

u make me so proud LOL
[Droid Eris Android Development] Sheen160:
Woo! Go Tazz. :p I'll have to check this out later. Nice job! Looks great.
[Droid Eris Android Development] jonathanphx1:
Damaged Tazz meet Kevlar Mash (A great Combo)

I must say that this theme I my opinion is one of the best looking themes I have seen. I seem to be drawn to the sense based "blue" themes. This theme was worth a detour from sense-able. Love all the options with it. I wanted to see what this theme would look like with adding Kevlar Mash. The pictures are below. Will be using this one for awhile. Thanks to the both of you. The live wallpaper with the bubbles coming right at you was a good touch as well

Updated an additional picture with out live wallpaper.
[Droid Eris Android Development] tazzpatriot:
Lol thanx bro , ya he said go for it
[Droid Eris Android Development] tazzpatriot:
Thanx I'm glad u like it
[Droid Eris Android Development] tazzpatriot:
thanx bro its a work in progress lol
[Droid Eris Android Development] jonathanphx1:
Tazz,

FYI bluetooth works.
[Droid Eris Android Development] tazzpatriot:
thanx bro i didnt know,, the only thing i knew was it turned on
[Droid Eris Android Development] tazzpatriot:
could someone tell me if the splash screen stuck ? or is it still the 3 skateboardin androids?
[Droid Eris Android Development] jonathanphx1:
Splash screen stuck too, droid sound and all ohhhh yeahhhhh
[Droid Eris Android Development] tazzpatriot:
update

i put up v2 of this rom without the lwp
[Droid Eris Android Development] agentofchaos:
Re: [ Rom]update 6-15-10 Damaged Tazz lwp/nav/oc/weather animation

This ROM is one of the best I've used, love the LW support.thanks for the work :) greatly appreciated

-------------------------------------

Sent via the XDA Tapatalk App
[Droid Eris Android Development] tazzpatriot:
thanx glad ur enjoyin it
[Droid Eris Android Development] Squez:
Great work

Looks very nice. I will have to flash. Will I be able to use metamorph with this ROM if I have a custom screen?
[Droid Eris Android Development] tazzpatriot:
yes u can i havent done it myself but other people have
[Droid Eris Android Development] jonathanphx1:
You should be able to, go to my post #4 and you can see the screenshots of this ROM with Kevlar Mash installed(requires Metamorph).
[Droid Eris Android Development] jonathanphx1:
app 2 sd Confirmed Working

Thought I would drop in and confirm that app2sd is indeed working on this rom. I know that there have been in the past ROM's that say that they support app2sd however many people have not been able to set it up. See attached. I'll say it again great ROM.
[Droid Eris Android Development] cpupeli1:
apps2sd wiped my phone including my navigation and google maps

I'm loving this ROM but now I can't use the gps now? It was there before I put apps2sd on.
[Droid Eris Android Development] jonathanphx1:
Navigation and GPS work on mine.

Is your sd card partitioned correctly?

Tell me the process in which you used to set up the ROM and I can try and help you.
[Droid Eris Android Development] cpupeli1:
I followed these steps

http://xdaforums.com/showthread.php?t=670087

and in addition the status bar stating battery life, temp, and CPU usage are gone as well :( I liked that addition to this ROM

everything else seems fine thus far, I had the GPS, working google maps, and status bar but then I installed apps2sd and it essentially uninstalled all my apps and got rid of those. Now I do not have those options???
[Droid Eris Android Development] jonathanphx1:
I think what you did is you installed the apps and then changed to app2sd. When you do this the phone no longer looks in internal memory on the phone and tries to locate the apps on the sd card(where the apps are not located). What I did is I formated the card then installed the ROM without installing a single app. By default in the dconfig app on phone, app2sd is enabled. I also enabled move dalvik to sd before I installed a single app as well. Let the dconfig utility reboot the phone if you decide to make any changes, this may take a little bit longer to boot up then it usually does. Once the phone boots up and your at the market re download your apps

I have done the opposite where I enabled apps2sd downloaded the apps and disabled it. Upon reboot all the apps I had downloaded were gone. Once I re-enabled apps-2sd and rebooted the phone the apps reappeared.

Hope this helps.
[Droid Eris Android Development] Bimmer323:
Just downloaded....have to check it out tomorrow probably.
[Droid Eris Android Development] scarfoot:
ROM looks slick....

I was trying to run adfree, and it requested SU access, and selected "always allow"

When it goes to update the hosts file, it says that folder is read only...

everything else seems to work fine, like wifi.... any suggestions?

-Sf-
[Droid Eris Android Development] tazzpatriot:
ill have to download it to see what the problem is , ive never used adfree

ill let ya know what i find
[Droid Eris Android Development] tazzpatriot:
thanx for all ur help man , i guess i should try a2sd so i can answer some of these question lol i dont use it so i have no clue to be honest , only know u can use it
[Droid Eris Android Development] scarfoot:
Thanks! I appreciate your help on this! This is a **sweet** rom.

btw, what is the difference between this port and the other port of this rom?

I haven't flashed the other one since FB sync is broken
[Droid Eris Android Development] cpupeli1:
Thanks man I'll definitely try this over the weekend. For the time being does anyone have the navigation/navigator or google maps .apk? That seems to be all I am missing in addition to the status bar stating CPU usage. Other than that SU request is working, OC is working.

The odd thing with google maps is that it shows up in my downloads for the market, but after clicking it the open and uninstall icons are un-clickable. In addition it is not listed under applications to be uninstalled either :confused:
[Droid Eris Android Development] tazzpatriot:
did u do a nanbackup ? if not u either need to re flash the rom or do a search for them , im sure u can find them
[Droid Eris Android Development] jonathanphx1:
One other thing, its no big deal for me but, for some reason if app2sd is enabled my phone could not find HTC sync to get contact and calender info to transfer to the ROM I had installed. If you need to utilize HTC sync. Do the setup as I outlined in my post earlier before you install any apps disable apps2sd (as by default it is enabled upon setup) Reboot phone. Phone will then recognize HTC sync on the computer. Sync the phone. Enable app2sd and reboot phone. Once booted up in stall apps as normal.

Let me know if you have any issues, I will try to help.
[Droid Eris Android Development] cpupeli1:
reflashed the ROM and everything is good with apps2sd as well as my missing apps

thanks guys!
[Droid Eris Android Development] frosteddroid:
just wanted to say thanks for the rom, definetly an awesome job! ive only found one bug that caused me to reboot today, after 2 days of running it and not having any problem, if im driving listining to music and then i go to make a call it acts as if its still hooked up to car stereo & microphone doesnt respond....just wanted to pass the word on to ya.
[Droid Eris Android Development] paintguy:
3G vs Ev

Been using your rom for a couple of days and I like it more and more. Is there a simple way to change to Ev signal notation at the top to read 3G? you've done quite a nice job creating a useable daily driver.
[Droid Eris Android Development] wrath112:
how long should it take ... to install this ROM ... i am at 18 minutes at of 3:58 today. ... hope this is normal. looking forward to it.
[Droid Eris Android Development] tazzpatriot:
18 minutes ? did u wipe everything ? data dalvic ext ? no it should not take that long u might wanna go wipe everything aga in and reflash
[Droid Eris Android Development] wrath112:
yes i flashed everythin.

pulled battery and wiped again and reflashing now ... started at 4:07

and this time it isn't loading the droid loader every 2 minutes.
[Droid Eris Android Development] tazzpatriot:
i sent u a pm bro
[Droid Eris Android Development] wrath112:
still didn't work...

maybe a bad download or my ROM loader went to s*** or something.

i am gonna go bad to the last mod i had and see if it loads. if it works then maybe i got a bad download of the rom, idk. But i will see what happens.
[Droid Eris Android Development] tazzpatriot:
i changed it with this http://xdaforums.com/showthread.php?t=701283 Kevlar Mash