Openvpn

Forum about Parallella boot process, linux kernel, distros, SD-cards, etc.

Openvpn

Postby rviertel » Thu Sep 03, 2015 9:18 pm

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.
rviertel
 
Posts: 7
Joined: Mon Aug 17, 2015 10:57 pm

Re: Openvpn

Postby sebraa » Fri Sep 04, 2015 1:07 pm

The default kernel does not have CONFIG_TUN enabled.
To run OpenVPN, you need to compile your own kernel.
sebraa
 
Posts: 495
Joined: Mon Jul 21, 2014 7:54 pm

Re: Openvpn

Postby rviertel » Sat Sep 05, 2015 2:34 am

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
rviertel
 
Posts: 7
Joined: Mon Aug 17, 2015 10:57 pm

Re: Openvpn

Postby sebraa » Mon Sep 07, 2015 8:19 am

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.)
sebraa
 
Posts: 495
Joined: Mon Jul 21, 2014 7:54 pm


Return to Linux/U-Boot

Who is online

Users browsing this forum: No registered users and 7 guests