[Android Apps and Games] jonitfcfan:
Greetings,

I realise this may have been asked a number of times before on this forum (and other forums, for that matter), but my circumstances don't appear to be quite the same as those of the people asking if any of the Google searching I've done is anything to go by (correct me if I'm wrong, once you've read this):

I recently got a Samsung Galaxy S on Vodafone UK (see below for more firmware details) which I have since rooted, and I was hoping get OpenVPN working on it using OpenVPN Installer and OpenVPN Settings from the Android Market. I understand as part of the process that I need a module named tun.ko which ordinarily has to have been compiled specifically for a particular phone, yes? With that in mind I was hoping to be able to use this post from a thread I dug up during a search of this forum in order to help me. So I loaded this onto my phone's internal storage and then inserted the exact path accordingly into OpenVPN Settings, however I get the below error when I try to initiate a new tunnel:

FATAL: cannot allocate tun/tap dev dynamically

Here are the things I've tried up to now to get this working (in no particular order), which so far haven't worked:

1) Installed BusyBox Installer from the Android Market, in order to install BusyBox (obviously :p) which I understand OpenVPN Settings requires to initiate a new tunnel.

- Having done this I have also tried re-installing OpenVPN via OpenVPN Installer, and redefining the path to BusyBox's 'ifconfig' and 'route' processes, which I understand the OpenVPN Settings app uses.​

2) Tried switching between 'modprobe' and 'insmod' as the chosen method of calling the tun module prior to tunnel initialisation.

3) Tried moving the tun.ko module I downloaded from the above linked post to different locations, then add the exact path in OpenVPN Settings accordingly.

4) Tried using various differing tun modules downloaded from different webpages, loading each one in turn as above.

5) Tried switching between 3G and Wi-Fi hoping that somehow the behaviour would change (was running out of ideas at this point :().

6) I read somewhere that you can compile your own tun.ko module using the kernel source code that matches your particular firmware version, so I tried visiting the link referenced in the above linked post [http://opensource.samsung.com/] in order to find the source code for my phone. However I can't seem to find my exact firmware listed (see below for my firmware). Incidentally how exactly would you compile your own module from the source code? Does this require the Android SDK, which I have readily available? [EDIT: I've had another look at the list of source code downloads for my phone and I noticed one entitled 'GT-I9000_OpenSource_Froyo_update2.zip' for the so-called 'JPX' version, which appears to be for the European versions of the handset. Do I assume the 'X' here is a wildcard in place of whatever letter or number represents the user's firmware, or does the 'X' represent the actual firmware version itself?]

7) Tried manually editing the .ovpn config file to read 'dev tun' instead of 'dev tap' as it was originally (I can post the full config file if anyone requires it for the troubleshooting process, perhaps there's something here I've missed).

If it helps at all here are the firmware details for my handset (taken from 'About phone' section under 'Settings'):

Model number: GT-I9000

Firmware version: 2.2

Baseband version: I9000BUJP5

Kernel version: 2.6.32.9
root@SE-611 #1

Build number: FROYO.BUJP7

N.B. This was pre-loaded onto the phone (probably by Vodafone), I haven't flashed/updated it with anything else.

Any help would be appreciated. Thanks.

Regards,

Jon.