Page 1 of 1

Openvpn

PostPosted: Thu Sep 03, 2015 9:18 pm
by rviertel
I have my Parallella set up as a home server using a dynamic dns client so that I can ssh into it while I'm at school. I'm trying to install openvpn for improved security, but I've run into a problem. I've followed the instructions on this site

https://help.ubuntu.com/lts/serverguide/openvpn.htm

to set it up openvpn use a tun network interface, my problem is that when I try to start the service no tun interface is created.

I then tried using openvpn --mktun --dev tun0 but I get the error

ERROR: Cannot open TUN/TAP dev /dev/net/tun: No such device (errno=19)
Exiting due to fatal error

I tried following the instructions at these sites

https://www.kernel.org/doc/Documentatio ... tuntap.txt
https://www.kernel.org/pub/linux/kernel ... tuntap.txt

to configure the device driver, but when I try

depmod -a or
modprobe tun

I get the error

depmod: ERROR: could not open directory /lib/modules/3.14.12-parallella-xilinx-g40a90c3: No such file or directory
depmod: FATAL: could not search modules: No such file or directory

ls -la /lib/ shows that there is no /modules directory.

If anybody has any suggestions I would appreciate it.

Re: Openvpn

PostPosted: Fri Sep 04, 2015 1:07 pm
by sebraa
The default kernel does not have CONFIG_TUN enabled.
To run OpenVPN, you need to compile your own kernel.

Re: Openvpn

PostPosted: Sat Sep 05, 2015 2:34 am
by rviertel
Thanks I appreciate the response. I'm not really comfortable compiling a kernel so I think I'll have to go without openvpn and just disable password authentication

Re: Openvpn

PostPosted: Mon Sep 07, 2015 8:19 am
by sebraa
I am not sure why OpenVPN is related to password authentication, but nobody keeps you from running OpenVPN on another machine in the network to gain access to the Parallella through said machine. (I do it at home, but not for a Parallella.)