I compiled OpenVPN 2.09 together with the tun kernel module.
The result is twofold:
+ OpenVPN opens the tunnel, presenting me a tun0 interface as expected.
- I cannot ping the other side of the tunnel. (not a firewall issue)

The tun kernel module crashes now and then.
(Unable to handle kernel NULL pointer dereference at virtual address 00000000 pgd = c2c00000 [00000000] *pgd=22670031, *pte=00000000, *ppte=00000000 Internal error: Oops: 817 [#1] Modules linked in: tun)

Did anyone else try to install openvpn? I looked around: The OpenWRT guys build an own kernel module ("For VPN you have to compile with the kmod-tun package (category: Kernel Modules --> Network support --> kmod-tun)."). So is this a kernel-module issue that I cannot solve?



To get a tunnel I continued to experiment with openssh. The result is merely the same:

The tunnel gets created. The socket does not. The link between openvpn and openssh is the tun kernel module. It somehow does not open a socket, just hangs out there.


Re: OpenVPN

If this is really a problem with the tun module you might want to try a newer kernel. Here is a patch for Linux 2.6.31 which adds basic support for Portux920T. Because the machine id in the boot loader is not the correct one for Portux920T, you have to enter the following 3 commands between compiling the kernel and running our install script (wrapping the image in the U-Boot header):

devio > shim 'wl 0xe3a01c03,4' 'wl 0xe3811010,4'
cat shim arch/arm/boot/zImage > arch/arm/boot/zImage-tmp
mv arch/arm/boot/zImage-tmp arch/arm/boot/zImage

Obviously, you need the devio tool. On Debian, just install it with apt-get install devio.

Re: OpenVPN

thank you.

I finally did it. I got my swiss army knife. openvpn. One lousy week, but I did it.

In fact, I do not know if it was the kernel, it could be that I used the wrong compiler. I compiled the tun module from within the portux while now I used the gnueabi cross-compiler.

Now it works with kernel

Syndicate content