Guest mj_blue Posted May 14, 2010 Report Posted May 14, 2010 If you use OpenVPN Settings you can add a custom dns for the openvpn configuration. Long press your config in the first menu and use Preferences. There's the option "Use VPN DNS Server" and "VPN DNS Server". Thanks Richard, yep couldn't find this option but now works like a treat :)
Guest Richard Trip Posted May 18, 2010 Report Posted May 18, 2010 could it be used for r3 ? Yes, no problem.
Guest MIYU-G Posted May 18, 2010 Report Posted May 18, 2010 Yes, no problem. yes,it's ok that without flash your nobfs_uv or nobfs_oc_uv,if I flash one of them,the system will reboot after openvpn got the config file
Guest gaeng4665 Posted May 19, 2010 Report Posted May 19, 2010 yes,it's ok that without flash your nobfs_uv or nobfs_oc_uv,if I flash one of them,the system will reboot after openvpn got the config file +1, same problem here
Guest Richard Trip Posted May 20, 2010 Report Posted May 20, 2010 +1, same problem here New version posted. Please test.
Guest Richard Trip Posted May 20, 2010 Report Posted May 20, 2010 yes,it's ok that without flash your nobfs_uv or nobfs_oc_uv,if I flash one of them,the system will reboot after openvpn got the config file Try the new version.
Guest Kevin Xiong Posted May 26, 2010 Report Posted May 26, 2010 it does not work in legend, can any one provide a tun.ko for legend, thanks a lot. Copy the update to your sdcard and apply the update with the recovery-console (sudo ./step2.sh from latest method) You need OpenVPN Settings from the market (Friedrich Schauffelhut) and load the module from the following location: /system/lib/modules/tun.ko (see attached screenshots). There's a different kernel in Modaco Custom Rom so we need a new module version. (2.6.29-82821fb5). Openvpn from MCR kitchen lacks some cypher-algo's so i couldn't use that. I excluded the busybox binary from the mcr update. If any of you have dns problems please use the "OpenVPN settings" provided setting for that: Long press your connection config and change the Preferences. happy tunneling. HTC Desire stock kitchen = vpnupdatedesire_2.6.29-97da29ed-signed.zip MCR kitchen (dont use openvpn from kitchen) = vpnupdatedesire_2.6.29-82821fb5-signed.zip uvoc kernel version = vpnupdatedesire_uvoc-signed.zip
Guest marax Posted June 6, 2010 Report Posted June 6, 2010 Yes, no problem. Hi, I have installed the MCR 3.1 (with additions and A2SD+) : http://android.modaco.com/content/htc-desi...online-kitchen/ Everything worked fine except Openvpn. I just installed tun.ko from this thread : vpnupdatedesire_2.6.29-82821fb5-signed.zip When I try to use Openvpn setting (or using adb shell), I have the following messages : # /system/xbin/openvpn --config marax-android_2010_1.ovpn /system/xbin/openvpn --config marax-android_2010_1.ovpn Sun Jun 6 21:56:35 2010 OpenVPN 2.1.1 i686-pc-linux-gnu [sSL] [LZO2] [EPOLL] bu ilt on Feb 2 2010 Sun Jun 6 21:56:35 2010 WARNING: No server certificate verification method has been enabled. See http://openvpn.net/howto.html#mitm for more info. Sun Jun 6 21:56:35 2010 NOTE: OpenVPN 2.1 requires '--script-security 2' or hig her to call user-defined scripts or executables Sun Jun 6 21:56:35 2010 WARNING: file 'marax-android_2010_1.key' is group or ot hers accessible Sun Jun 6 21:56:35 2010 LZO compression initialized Sun Jun 6 21:56:35 2010 Control Channel MTU parms [ L:1574 D:138 EF:38 EB:0 ET: 0 EL:0 ] Sun Jun 6 21:56:35 2010 Data Channel MTU parms [ L:1574 D:1400 EF:42 EB:135 ET: 32 EL:0 AF:3/1 ] Sun Jun 6 21:56:35 2010 Local Options hash (VER=V4): 'd3a7571a' Sun Jun 6 21:56:35 2010 Expected Remote Options hash (VER=V4): '5b1533a2' Sun Jun 6 21:56:35 2010 Socket Buffers: R=[110592->131072] S=[110592->131072] Sun Jun 6 21:56:35 2010 UDPv4 link local: [undef] Sun Jun 6 21:56:35 2010 UDPv4 link remote: xxx.xxx.xxx.xxx:1194 Sun Jun 6 21:56:35 2010 TLS: Initial packet from xxx.xxx.xxx.xxx:1194, sid=995be 110 20b217d8 Sun Jun 6 21:56:37 2010 Data Channel Encrypt: Cipher 'BF-CBC' initialized with 128 bit key Sun Jun 6 21:56:37 2010 Data Channel Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication Sun Jun 6 21:56:37 2010 Data Channel Decrypt: Cipher 'BF-CBC' initialized with 128 bit key Sun Jun 6 21:56:37 2010 Data Channel Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication Sun Jun 6 21:56:37 2010 Control Channel: TLSv1, cipher TLSv1/SSLv3 DHE-RSA-AES2 56-SHA, 1024 bit RSA Sun Jun 6 21:56:37 2010 [server] Peer Connection Initiated with xxx.xxx.xxx.xxx: 1194 Sun Jun 6 21:56:39 2010 SENT CONTROL [server]: 'PUSH_REQUEST' (status=1) Sun Jun 6 21:56:39 2010 PUSH: Received control message: 'PUSH_REPLY,route-gatew ay 10.30.8.1,topology subnet,ping 5,ping-restart 30,route 192.168.2.0 255.255.25 4.0 10.30.8.1,route 10.3.0.0 255.255.0.0 10.30.8.1,route 10.4.0.0 255.255.0.0 10 .30.8.1,route 10.6.0.0 255.255.0.0 10.30.8.1,route 10.7.0.0 255.255.0.0 10.30.8. 1,echo VPN Connection established",ifconfig 10.30.8.193 255.255.255.0' Sun Jun 6 21:56:39 2010 ECHO-PULL:VPN Connection established" Sun Jun 6 21:56:39 2010 OPTIONS IMPORT: timers and/or timeouts modified Sun Jun 6 21:56:39 2010 OPTIONS IMPORT: --ifconfig/up options modified Sun Jun 6 21:56:39 2010 OPTIONS IMPORT: route options modified Sun Jun 6 21:56:39 2010 OPTIONS IMPORT: route-related options modified Sun Jun 6 21:56:39 2010 ROUTE default_gateway=192.168.0.254 Sun Jun 6 21:56:39 2010 Note: Cannot open TUN/TAP dev /dev/tun: No such file or directory (errno=2) Sun Jun 6 21:56:39 2010 Note: Attempting fallback to kernel 2.2 TUN/TAP interfa ce Sun Jun 6 21:56:39 2010 Cannot allocate TUN/TAP dev dynamically Sun Jun 6 21:56:39 2010 Exiting When I do an insmod, I have the following answer : # insmod /system/lib/modules/tun.ko insmod /system/lib/modules/tun.ko insmod: can't insert '/system/lib/modules/tun.ko': invalid module format I also have an explicit message on dmesg : tun: version magic '2.6.29-82821fb5 preempt mod_unload ARMv7 ' sh ould be '2.6.29-bravo-mck-r1 preempt mod_unload ARMv7 ' and finally a uname -a shows me : uname -a Linux localhost 2.6.29-bravo-mck-r1 #2 PREEMPT Fri May 21 11:23:48 BST 2010 armv 7l GNU/Linux I also tried another tun.ko module from WDA but didn't find one which has the '2.6.29-bravo-mck-r1 preempt mod_unload ARMv7 ' signature. I also didn't find a "how-to" to myself create a tun.ko for the Modaco Rom 3.1. Please, can someone provide me the right tun.ko driver ? Many, many thanks in advance.
Guest agent8080 Posted June 6, 2010 Report Posted June 6, 2010 I am having exactly the same issue as marax. This was working fine with mcr 3.0 but broken in 3.1
Guest persko Posted June 7, 2010 Report Posted June 7, 2010 Did you try using the tun.ko from the r3.1 update, thar driver loads just fine: # insmod /system/lib/modules/tun.ko # lsmod tun 11200 0 - Live 0xbf031000 bcm4329 189976 0 - Live 0xbf000000
Guest marax Posted June 7, 2010 Report Posted June 7, 2010 Did you try using the tun.ko from the r3.1 update, thar driver loads just fine: # insmod /system/lib/modules/tun.ko # lsmod tun 11200 0 - Live 0xbf031000 bcm4329 189976 0 - Live 0xbf000000 Hi, No. But does that mean that we must use the tun.ko already included in MCR3.1 (r3.1 ROM with default MoDaCo additions and A2SD+) and the openvpn binary provided by Richard on this post (vpnupdatedesire_2.6.29-82821fb5-signed.zip) ? If this is the case, I will try to do it this evening, I don't know yet how ... But I will try. I will keep you informed about the result. Thks
Guest agent8080 Posted June 7, 2010 Report Posted June 7, 2010 (edited) Hi, No. But does that mean that we must use the tun.ko already included in MCR3.1 (r3.1 ROM with default MoDaCo additions and A2SD+) and the openvpn binary provided by Richard on this post (vpnupdatedesire_2.6.29-82821fb5-signed.zip) ? If this is the case, I will try to do it this evening, I don't know yet how ... But I will try. I will keep you informed about the result. Thks I got this working, see other thread http://android.modaco.com/index.php?s=&...t&p=1303426 Edit: Not sure if we could just copy the correct tun.ko into Richard's zip and then flash with that? Or are these .zip files signed? Edited June 7, 2010 by agent8080
Guest marax Posted June 7, 2010 Report Posted June 7, 2010 I got this working, see other thread http://android.modaco.com/index.php?s=&...t&p=1303426 Edit: Not sure if we could just copy the correct tun.ko into Richard's zip and then flash with that? Or are these .zip files signed? Good evening, I'm an idiot, I forgot my USB cable at work. I have modified the zip file from Richard replacing his tun.ko by the one extracted from the zip file from Paul. I will test it tomorrow, at work .... and will keep you informed.
Guest spammyspam Posted June 22, 2010 Report Posted June 22, 2010 Not sure if this has to be fixed or what, but on my MCR I had to repush tun.ko from the MCR ROM after applying your update. Other than that seems to be working well!
Guest Kiwizz Posted June 28, 2010 Report Posted June 28, 2010 (edited) Ok, I can get openvpn working by running "insmod /system/lib/modules/tun.ko" in a terminal when running normally, but I need to run this after startup every time to get it to work. I tried running this command in recovery mode, but all I get is: "insmod: can't insert '/system/lib/modules/tun.ko': invalid module format" So I was wanting to try to run the script at startup, so I put in in init.d/90fixes but that didn't seem to work. Any ideas? Also getting this error in the logs: OpenVPN-DaemonMonitor[/sdcard/openvpn/client.ovpn]-daemon-stdout( 1053): Mon Jun 28 12:37:41 2010 Note: Cannot open TUN/TAP dev /dev/tun: No such file or directory (errno=2) UPDATE Adding "insmod /system/lib/modules/tun.ko" to the startup script does seem to work, I just forgot to set it as executable. Edited June 28, 2010 by Kiwizz
Guest yumbelie Posted June 28, 2010 Report Posted June 28, 2010 Ok, I can get openvpn working by running "insmod /system/lib/modules/tun.ko" in a terminal when running normally, but I need to run this after startup every time to get it to work. I tried running this command in recovery mode, but all I get is: "insmod: can't insert '/system/lib/modules/tun.ko': invalid module format" So I was wanting to try to run the script at startup, so I put in in init.d/90fixes but that didn't seem to work. Any ideas? Also getting this error in the logs: OpenVPN-DaemonMonitor[/sdcard/openvpn/client.ovpn]-daemon-stdout( 1053): Mon Jun 28 12:37:41 2010 Note: Cannot open TUN/TAP dev /dev/tun: No such file or directory (errno=2) UPDATE Adding "insmod /system/lib/modules/tun.ko" to the startup script does seem to work, I just forgot to set it as executable. Try the steps I've documented here: http://android.modaco.com/content/htc-desi...1/#entry1325065 (Pulled from this and other topics)
Guest itchytasty Posted August 4, 2010 Report Posted August 4, 2010 When I do an insmod, I have the following answer : # insmod /system/lib/modules/tun.ko insmod /system/lib/modules/tun.ko insmod: can't insert '/system/lib/modules/tun.ko': invalid module format I also have an explicit message on dmesg : tun: version magic '2.6.29-82821fb5 preempt mod_unload ARMv7 ' sh ould be '2.6.29-bravo-mck-r1 preempt mod_unload ARMv7 ' and finally a uname -a shows me : uname -a Linux localhost 2.6.29-bravo-mck-r1 #2 PREEMPT Fri May 21 11:23:48 BST 2010 armv 7l GNU/Linux I also tried another tun.ko module from WDA but didn't find one which has the '2.6.29-bravo-mck-r1 preempt mod_unload ARMv7 ' signature. I also didn't find a "how-to" to myself create a tun.ko for the Modaco Rom 3.1. Please, can someone provide me the right tun.ko driver ? Many, many thanks in advance. this is exactly what's happening to me, were you able to get it working?
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now