#1 2016-01-20 15:55:13

marcosa
Trusted Member
Registered: 2016-01-20
Posts: 4

OpenVPN - MiniVPS Miami TUN problem

Hi LES community,

I'm just giving a try on this VPS right now and I'm having some issues with the OpenVPN setup, looks like there's no tun/tap device availability and the service won't start.

I already tried the manual and automatic script installation approach suggested here in the forums without success.

[....] Starting virtual private network daemon: serverSIOCSIFADDR: No such device
: ERROR while getting interface flags: No such device
SIOCSIFNETMASK: No such device
SIOCSIFMTU: No such device
SIOCSIFBRDADDR: No such device
: ERROR while getting interface flags: No such device

server.conf
port xx20
proto udp
dev tun
sndbuf 0
rcvbuf 0


Thanks in advance for any suggestions or guidance,
Regards

Offline

#2 2016-01-20 17:18:11

AnthonySmith
Low End Boss
From: ~/
Registered: 2013-02-13
Posts: 4,055
Website

Re: OpenVPN - MiniVPS Miami TUN problem

Did you enable the tun/tap device in the control panel then click the reboot button?


https://upto32.com retro gaming and nostalgia forum that does not take itself to seriously smile

Offline

#3 2016-01-20 17:51:56

marcosa
Trusted Member
Registered: 2016-01-20
Posts: 4

Re: OpenVPN - MiniVPS Miami TUN problem

Thank you Backtogeek, that worked out well, and apologies for my stupidity not realising the option was already there.

Offline

#4 2016-01-20 19:04:14

marcosa
Trusted Member
Registered: 2016-01-20
Posts: 4

Re: OpenVPN - MiniVPS Miami TUN problem

Backtogeek,

I configured TUN from the panel but now I'm having problems while trying to connect to the vpn server.
In the server.conf I'm using one of the free forwarded ports, xxx22 in this case and it didn't work, neither udp nor tcp giving the connection refused message. I ensured the service is running.

openvpn 2918        0    5u  IPv4 565459973      0t0  UDP *:xxx22

port xxx22
proto udp
dev tun
sndbuf 0
rcvbuf 0
ca ca.crt
cert server.crt
key server.key
dh dh.pem
topology subnet
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
push "redirect-gateway def1 bypass-dhcp"
push "dhcp-option DNS 208.67.222.222"
push "dhcp-option DNS 208.67.220.220"

Thanks in advance,

Offline

#5 2016-01-20 21:03:54

AnthonySmith
Low End Boss
From: ~/
Registered: 2013-02-13
Posts: 4,055
Website

Re: OpenVPN - MiniVPS Miami TUN problem

Well the most obvious issue is that no one gets xxx22 for example if your ip was 192.168.6.125 your ports would be 12501 - 12521 (12521 being forwarded to port 22 for ssh in advance)


https://upto32.com retro gaming and nostalgia forum that does not take itself to seriously smile

Offline

Board footer

Powered by FluxBB