HOWTO: openVPN client on S7

ngotkula

Member
Dec 9, 2010
41
1
(just in case somebody's interested)

requires rooted 2.2.2 S7

i have tried different 2.2.2 firmware for S7, and all of them got TUN driver built in the kernel, so need not to worry about recompiling tun.ko for your phone.

  • Download OpenVPN Installer (Market) and install to /system/xbin
  • Download OpenVPN Settings (Market) and install
  • adb shell: ln -s /system/xbin /system/xbin/bb
  • Put openVPN config files to /sdcard/openvpn
  • Connect using OpenVPN settings
screenshot_1.png


in case in doubt if TUN is really built-in, here are ways to check:

check 1:
pull /proc/config.gz and extract it. open the config file and look for the line:
Code:
CONFIG_TUN=y

check 2:
Code:
#dmesg|grep tun
it should say something like this:
Code:
<6>[    2.030231] tun: Universal TUN/TAP device driver, 1.6
<6>[    2.034910] tun: (C) 1999-2004 Max Krasnyansky <[email protected]>
<6>[    3.845735] IPv4 over IPv4 tunneling driver
<6>[    3.850138] GRE over IPv4 tunneling driver
<6>[    3.880778] tunl0: Disabled Privacy Extensions
<6>[    3.887442] IPv6 over IPv4 tunneling driver
 
Last edited:

alfebuma

Member
Nov 7, 2011
1
0
Hi, I need to connecto my Samsung tab 7 to thea cisco VPN already install VPNC Widgest but tun is not enable.

can you tell me what i need to enable it and how to do it?

cheers

(just in case somebody's interested)

requires rooted 2.2.2 S7

i have tried different 2.2.2 firmware for S7, and all of them got TUN driver built in the kernel, so need not to worry about recompiling tun.ko for your phone.

  • Download OpenVPN Installer (Market) and install to /system/xbin
  • Download OpenVPN Settings (Market) and install
  • adb shell: ln -s /system/xbin /system/xbin/bb
  • Put openVPN config files to /sdcard/openvpn
  • Connect using OpenVPN settings
screenshot_1.png


in case in doubt if TUN is really built-in, here are ways to check:

check 1:
pull /proc/config.gz and extract it. open the config file and look for the line:
Code:
CONFIG_TUN=y

check 2:
Code:
#dmesg|grep tun
it should say something like this:
Code:
<6>[    2.030231] tun: Universal TUN/TAP device driver, 1.6
<6>[    2.034910] tun: (C) 1999-2004 Max Krasnyansky <[email protected]>
<6>[    3.845735] IPv4 over IPv4 tunneling driver
<6>[    3.850138] GRE over IPv4 tunneling driver
<6>[    3.880778] tunl0: Disabled Privacy Extensions
<6>[    3.887442] IPv6 over IPv4 tunneling driver
 
Top