[Working] OpenVPN TD2 - Touch Diamond2, Pure General

Hi,
I hope that is going to the right forum. Otherwise apologize, and with the help of moderators should go on the right place.
After long trying period succeeded to install and (this was the hard part...) to make use of OpenVpn on my Diamond2.
Working constelation:
1. ROM of TD2 is official Vodafone-German: 2.16.162.3 (67041)
2. Main Gateway - openvpn server - is a Speedport w701v (should work with any openvpn server flavour with version > 2.0.5, including windows servers)
3. You need to install the openvpn for PPC version 2.0.5 (version 2.1.0 failed to be usable on the device) from the ziggurat29 dot com website.
4. Deploy the configuration files for the server and the client (in my case HTC TD2) - please do not ask me how, there are 1000 of sites full of configs
5. Disable (this is not so nice, but the openvpn is built on old PPC GUI) as shown on the untangle forum for the link to video how to connect - a video flash link on that forum). The video is showing as well how to connect from the GUI.
!!! ATTENTION !!!: USE VERSION 2.0.5 AND NOT 2.1.0 CABS ON THE TD2(the version 2.1.0 will not be able to bring up the TAP interface).
Notes:
1. On the communication was using "dev tap" and tcp - no idea if dev tun works.
2. VPN was established successfully on WiFi and as well on the Cellular Data Connection (depending on your provider, you may have issue on the Data Connection)
I am happy if this posts will help some other people and saved some time for them...
/Tolum
P.S. Sorry for not being able to add the external links, but these are the rules for the beginners.

Related

Sinchronizing Magigian on Linux with Synce

I followed both steps (usb and bluetooth) with no success...
are there any brave persons that are able to sync this device on Linux?
http://synce.sourceforge.net/synce/howto.php (USB)
If yes, could you please tell me which kernel did u use and yours secret tips? :wink:
What's exactly the problem you encounter? I use Raki and synce on one debian machine, but just to connect, show the magicians screen on the pc's screen and copy files between them, not to sync any data (appointments, etc.).
Greetings,
BGK
Which guide did you follow to set it up?
The device is recorgnized by dmesg but i can't connect to it with pppd
Have you tried multisync? It should be the bridge between synce and evolution
I have also successfully used RAKI on KDE desktop (Debian Testing) to connect to the Magician. It transfers files back and forth, with the right iptables masquerading entry (done manually) I can use the Internet, but I cannot sync anything either
I forget exactly what I installed, but everything should b plug&play.
Kernel 2.6.10, Hotplug, Synce-KDE...kernel installed manually, the rest from the Debian dselect program. There are certain things you have to set up with the kernel config.
What distro are you using? Any other details?
Re Multisync; I really do want to get synch'ing going like ActiveSync. I installed it, tried various configs, but I do not get anything in the program... Can anyone else help?
uau, could you please post your software version?
did you pass some arguments to modprobe ipaq ?
uau, could you please post your software version?
did you pass some arguments to modprobe ipaq ?
If you made raki work you should install multisync and the evolution plugin..
it's already in http://www.multisync.org/files/multisync-cvs-snapshot.tar.gz
Hi metnik, sorry for the late reply.
My device is an O2 Mini (aka Magician), information at Settings => System => About, is
Windows Mobile 2003 Second Edition
Version 4.21.1088 (Build 14235.2.0.0)
I did not have to pass any arguments to ipaq module. It did everything auto; I guess it is because of the 2.6.10 kernel.
I have installed Multisync from Debian Testing, and it has SynCE and Ximan Evolution 2 plugins. I have created the synchronization pair with these, but NOTHING happens when I press the "Sync" button.
Raki, on the other hand, works nicely with the USB cable; even the KCeMirror works very nicely (window of the device on your desktop).
The only problem with Raki is the synchroniztion setup errors with "No Synchronizer found for (Contact)..."; i.e. I don't know how to get synchronization working with that either... It really would be nice to have a copy of my address book on my Linux partition somewhere. So far it is only on MS Outlook, which I don't use...:-(
Also, I have bluetooth transfers working between the Mini and my laptop, however, I havent figured out how to get bluetooth working with Raki. It would be rather nice.
Any clues?

GUIDE: Mac OS X and Cingular GPRS with the HTC Wizard AKU2

I have successfully connected with the Qtek 9100 AKU2 ROM (the latest stable ROM for HTC Wizard) to Cingular via Bluetooth and Mac OS X 10.4.6. Instructions:
1. Pair OSX and the phone. You might need to check the "any device" checkbox on OSX's pairing utility.
2. Verify to OSX that you do want to use that device as a modem (if you don't get that dialog, then you will need to create the Bluetooth connection yourself -- message me or leave a comment if you need instructions and I will reply to you).
3. RENAME the attached iPAQ-GSM.txt to plain iPAQ-GSM (remove the .txt extention using the Finder 'Get Info' dialog). Copy the file "iPaq-GSM" to your /Library/Modem Scripts/ folder. I modified the original script that was floating on the internet for a year now in order to work with Cingular (the original script wouldn't get a carrier signal with my phone -- it needed some small initialization changes).
4. Go to your System Preferences/Network/Bluetooth/. There enter the following:
Service Provider: Cingular
Account Name: [email protected] (case sensitive)
Password: CINGULAR1 (case sensitive)
Tel number: *99# (the *99***1# number that does work with other phones doesn't work with the HTC Wizard)
On PPP options uncheck "tcp header compression".
On the Modem tab uncheck both "enable error correction" and "wait for dial tone". From the modem drop-down menu select the iPaq-GSM modem script.
Then, click Apply and then open the "Internet Connect" application and select Bluetooth from there. Click "Connect" and you should now be connected on the net via Cingular GPRS/EDGE.
Alternatively, you can create a new networking bluetooth connection instead of using the generic bluetooth networking pref panel, but that involves a bit more work -- although I personally prefer it as I have over 8 phones and I need different networking connection names and settings for each, instead of using the default "Bluetooth" one. If you are on the same boat, IM me or leave a comment for more instructions.
Thanks
dude you just made my day. It works perfectly. Thank God for people smarter then me.
Unfortunately, in my AKU2 QTek ROM, the PPP server dies right after I disconnect from the Mac. I have to reboot the PocketPC before I can reconnect my Mac to GPRS.
If anyone knows more, please download the script above and tell us if there is a way to fix this.
more mac users
hey guys,
just wondering if you've been able to sync your MDA(Wizard) to your mac. and if so, how? also, any luck updating ROMS without a PC?
whalien

Problem to log on a specific wifi network

Hi everybody! I've searched for a problem like mine here but I didn't find it, so I'm openning a new thread. I hope it's ok to do that!
I'm having some trouble trying to connect to the wifi network at the hospital I work. I tried to follow the intructions they gave, but these instructions are for desktop computers and notebooks and they have steps that I don't know how to follow in my blackstone. The instructions are the following (for windows XP):
-add a new network with the name: wifiuel
-choose WPA2 autentication
-choose AES cryptography
-choose PEAP access, go to properties and uncheck all options. Also, at autentication method EAP-MSCHAPv2, click on configure and uncheck the option to use the logon's name and password automaticly.
There are a few more steps, but from this last one I can´t go on. When I tap on the properties buton on my blackstone, I get the following warning: "Cannot log on to the wireless network. This network requires a personal certificate to positively identify you."
In case you just didn't understand the steps because of my poor english, here´s a link to them, but this link is for the windows vista configuration (I chose it because it is mainly in english and it has many screenshots, so I think all of you can understand it): http://www.uel.br/ati/suporte/pages/configuracao-wifi-uel/windows-vista-us.php
Any ideas of how I can solve this problem?
I'm runnig Dutty's Leo Holy Grail R0 rom, with WM6.5 and I can log on just fine in other networks.
Thanks in advance!!!
Hi,
just trying to help u.
in your case, maybe you need some sort of certificate like you stated above. Go ask your IT service/help desk on where you can get one.
Or maybe you need to register your device (WLAN Mac address or you need to use fix IP). For this, you also need to ask help from your IT service to register your device to their list, so that u can connect to their wifi network.
Not much help, but u can try them
Oh, thanks, I was going to do that anyway, but I though someone here could help me or indicate some wifi utility that could handle those steps to configure my network.
Well, thanks for your attention!
Moved as not software release...
Hey, I've got some news
I have some new facts to tell you guys and see if you can help me. First, I discovered that when I just ignore the warning that I get when I click on properties, I get another message saying that the server certificate is issued by an unknown autority and it couldn't be validated. Then I finally talked to the support staff at the hospital and they said that they don't use any certificates at all. No personal nor server certificates are needed. So I guess that the problem is with Windows Mobile, which is asking for certificates when they're not needed.
Is there any way to command WM to not ask for a certificate when logging on a particular network, because I believe this could be the solution for my problem!
Thanks in advance!!!

[SOLVED] openvpn on DHD? tun.ko?

Has anyone managed to get openvpn going? compiling custom tun.ko file for DHD?
It's probably possible, now that we have the source. Don't have a DHD just yet, so can't try
Sent from my HDfied HTC Desire
Thread moved to General.
hello
i'm interesting too for the kernel mod tun.ko for the DHD
any reponse ?
Hello,
i'm very interesting in this file too...
My NAS awaits the phone "call".
Hey everyone. First time poster, so hoping its a happy reply
Has anyone had any luck with this ? i also require the tun.ko file for DHD. been searching the net for hours
looking forward to your replies.
I heard that tun.ko file has to be specifically compiled for each kernel version. Is that right?
Is it also linked to the radio version?
If we could have a link for kernel source, i might be able to follow tutorial and publish it here.
I have 2.6.32.21 -g66cfb7a kernel version and you? (not sure if the second part is part of the kernel version)
Lionel
Attached is tun.ko for the Desire HD (for kernel 2.6.32.21-gf3f553d). Built it today & it seems to insert OK and work fine with VPN Connections.
thedji said:
Attached is tun.ko for the Desire HD (for kernel 2.6.32.21-gf3f553d). Built it today & it seems to insert OK and work fine with VPN Connections.
Click to expand...
Click to collapse
Perfect! Thanks!!
Very thanks for the module.
DHD - tun.ko for 2.6.32.21-g66cfb7a
EFCAugure said:
I heard that tun.ko file has to be specifically compiled for each kernel version. Is that right?
Click to expand...
Click to collapse
Yes. After trying other people's tun.ko modules, it wasn't until I checked the output of dmesg that I learnt this (got my first Android 3 weeks ago - so I'm still a n00b).
EFCAugure said:
If we could have a link for kernel source, i might be able to follow tutorial and publish it here. I have 2.6.32.21 -g66cfb7a kernel version and you? (not sure if the second part is part of the kernel version)
Click to expand...
Click to collapse
Lionel, it would appear that my Desire HD has the same kernel.
2.6.32.21-g66cfb7a
2.6.32 is the base kernel version
I assume 21 is the revision or build number.
The hex string on the end seems to vary by which ROM you have installed. This was what was stopping me from loading these other tun.ko modules - including the one posted by @thedji
I've just compiled the tun.ko module for 2.6.32.21-g66cfb7a (on a headless Pentium 2 400 MHz lol). It loads fine and can be seen in the output of lsmod. I've attached it below.
Edit: I was able to use this module successfully to connect to a Cisco VPN with vpnc.
Mike
@MikeMelbourne
Can you explain to me how and with what Software you connected to a Cisco VPN?
C.K. said:
Can you explain to me how and with what Software you connected to a Cisco VPN?
Click to expand...
Click to collapse
First - applications.
1) You're going to need a terminal/console app. I used one called Terminal Emulator.
2) You're going to want an app called "VPN Connections". I downloaded a patched APK in post #4 here:
hxxp://code.google.com/p/get-a-robot-vpnc/issues/detail?id=122&q=patch
Alternatively, you might get it from here: hxxp://code.google.com/p/get-a-robot-vpnc/downloads/list (although YMMV).
Second - setup.
1) You're phone needs to be rooted.
2) You need to have the appropriate tun.ko module (for your phone's kernel) loaded. Load up the Terminal Emulator then:
a) Type 'su' without quotes and hit enter.
b) Type 'insmod /path/to/tun.ko' without quotes and press enter. If your tun.ko is on your sdcard in the root, the path would be /mnt/sdcard/tun.ko
c) If the step above worked, you should be able to type 'lsmod' and see the tun module loaded.
Note: I didn't have any luck running the "VPN Connections" app directly - the connection kept failing (possible due to the configuration of the VPN I was connecting to). So I start it from the command line. You might want to try using the GUI first as it would make things so much easier if it works.
Third - connecting to the VPN by a command line.
1) The command to enter is quite long (and I got sick of typing it), so I put it into a file called 2.sh in the root of the sdcard.
2) Inside the file /mnt/sdcard/2.sh, I entered the following:
Code:
/data/data/org.codeandroid.vpnc_frontend/files/vpnc --script /data/data/org.codeandroid.vpnc_frontend/files/vpnc-script --no-detach --natt-mode cisco-udp --debug 1 --gateway AAA.BBB.CCC.DDD --id groupid --username mike --enable-1des
Note that the gateway is the IP address of the VPN you are connecting to. The username for me is just my username - it isn't prefixed by my company's active directory domain.
3) Open the Terminal Emulator.
4) Enter 'su' without quotes and press enter.
5) Enter 'sh /mnt/sdcard/2.sh' without quotes and press enter.
6) You will be asked to provide the group password, then the personal password for your username. Then it should attempt to connect.
You can change the debug value to 2 or 99 if you want to get more information (if it doesn't connect successfully).
If you want to know what command line options are available, enter the following at the Terminal Emulator:
Code:
/data/data/org.codeandroid.vpnc_frontend/files/vpnc --script /data/data/org.codeandroid.vpnc_frontend/files/vpnc-script --long-help
I think that's it - I hope this helps. After disconnecting I tend to do a long reboot (takes 1-2 minutes) to get the network back to the way it was; although I'm not sure this is necessary.
Mike
Edit: seems like you need to create a directory and a symbolic link. This is my working script:
Code:
mkdir /dev/net
insmod /mnt/sdcard/download/tun.ko
lsmod
ln -s /dev/tun /dev/net/tun
/data/data/org.codeandroid.vpnc_frontend/files/vpnc --script /data/data/org.codeandroid.vpnc_frontend/files/vpnc-script --no-detach --natt-mode cisco-udp --debug 1 --gateway AAA.BBB.CCC.DDD --id groupid --username mike --enable-1des
Damn I hoped it woulld be easier. As I have never worked with Android that sounds like a challenge to me. So there is no easy switching on and off of the VPN connection? I always have to use the scripts?
C.K. said:
Damn I hoped it woulld be easier. As I have never worked with Android that sounds like a challenge to me. So there is no easy switching on and off of the VPN connection? I always have to use the scripts?
Click to expand...
Click to collapse
Because the "VPN Connections" GUI app didn't connect for me, I had to resort to the script - you may not need to (depending upon the configuration of your Cisco VPN box).
I just need to run the final script (the 5 liner above) to connect to the VPN - good enough for the time being. You just need to modify the path to tun.ko, set your gateway server, groupid & username.
I hadn't worked with Android before the weekend just past - I've just rooted my first Android phone. It's all a learning experience - I guess it depends how badly you want VPN access? Hopefully it will get easier in time as the apps improve.
Good luck!
Mike
You can use something GScript to make it a two-click process (open app, click script). It's just as efficient as using VPN Connections (open app, click connect).
For me personally, I use VPN Connections to connect (successfully) but the traffic is routed down the wrong interface (i.e. not tun0).
After connecting I have to run
Code:
ip ru del table wifi
or
Code:
ip ru del table gprs
to fix the issue.
You should definitely try VPN Connections first. If that doesn't work, try the long method above.
thedji said:
You can use something GScript to make it a two-click process (open app, click script). It's just as efficient as using VPN Connections (open app, click connect).
Click to expand...
Click to collapse
GScript is a great idea - it will save me doing any typing to connect to the VPN.
Once I added these VPNC flags (--natt-mode cisco-udp --enable-1des) to "VPN Connections" I was able to successfully connect after running the script in GScript.
It doesn't say I'm connected, however my IP address has been assigned and I can Remote Desktop to my work PC. My routing already seems to be ok, so I don't to run the 'ip ru del' commands that you do.
I'm pretty satisfied with this now... no typing - just point and press.
-Mike-
What about tap.ko? (needed for OpenVPN bridge mode)
Exposure said:
What about tap.ko? (needed for OpenVPN bridge mode)
Click to expand...
Click to collapse
What kernel version are you running? If you have '2.6.32.21-g66cfb7a' I could compile tap.ko for you?

[HowTo]Use OpenVPN in Cyanogenmod/based ROMs

Intro:
So, I've had some problems accessing the market from a forbidden country (i.e Sudan, Lebanon). When I tried to use the built-in VPN client in a Cyanogenmod ROM it turned out that it doesn't work so after a well-spent time, I figured out how to use a VPN on my HD2.
What Can it be used for?
- Access the internet using your data connection without revealing your IP address.
- Unlock the market for forbidden countries. (my case)
- Basically, VPN on your Androided HD2.
Requirements:
An HTC HD2 with a Cyanogenmod Rom or a ROM based on it.
OpenVPN Settings application (Provided in the attachments)
An OpenVPN config files and certificates (Recommended will be provided below)
An SD card.
Instructions:
1- I recommend using Hostizzle, go to it then register for a free plan. (go for a paid one if you want)
2- After registering, download your keys (only keys and not .exe ) and extract them to a new folder on the root of your sd card with the following name "openvpn" .
3- Go to your phone and install the "OpenVPN Settings" application (attached) .
4- Run the Application and Allow all the SuperUser Requests. Then press menu and choose "Advanced" . Make sure that "Load tun kernel module" is ticked, then hit "TUN module settings" and make sure that "Load module using" is set to "insmod" and "Path to tun module" is set to "/system/lib/modules/tun.ko" .
5-(optional) if you faced troubles using the internet, long press on your configurations name and then "Preferences" then tick "Use VPN DNS Server" and set the "VPN DNS Server" to "8.8.8.8".
6- Return to the main screen of the app and tick "OpenVPN" and then tick your configuration.
Then it will go through a sequence, when you see "Connected to *.*.*.* as *.*.*.*" then you're connected, if you're seeing a blank after "as" then you have a problem and you have to check the procedures again.
Tips & Warnings:
*You can use any OpenVPN service as long as you can obtain the configurations file.
*I have only tested this on "HyperDroid", but it should work with any cyanogenmod ROM.
*Do not install "OpenVPN installer" as it will mess up your phone's VPN configurations.
*OpenVPN Settings can be obtained from the market, but in my case I couldn't do it .
*The files you should copy to the "openvpn" folder should at least contain the following : (*.ovpn, ca.crt, client.crt, client.key, ta.key)
*It is ok for the connection to keep restarting, it will connect you soon.
*Anything else you tell me
Frequently Asked Questions
-not yet ...
I wrote this tut because I wasn't able to access the Market from my phone because the country was forbidden
Hit thanks if it/I helped.

Categories

Resources