#1 2019-02-06 13:41:46

mdoerges
Trusted Member
Registered: 2014-11-10
Posts: 9

[MrVM] Problem with tun device Norway 1GB NAT

The tun device on my 1GB Norway NAT VPS isn't working. I've tried several times to disable/enable it via the web interface but it's still not working. After a restart of the VPS the tun device is gone. And I have to disable/enable it again via web interface.
When I do a

cat /dev/net/tun

the message is

cat: /dev/net/tun: Operation not permitted

instead of

cat: /dev/net/tun: File descriptor in bad state

which you usually get when the tun device is working.
OpenVPN also shows an error:

ERROR: Cannot open TUN/TAP dev /dev/net/tun: Operation not permitted (errno=1)

VPS external IPv4: <removed> / internal IPv4: 172.16.41.106 / IPv6: 2a03:94e0:181a:02fd:5dc2:0000:0000:0001
Can you please check and fix?

Last edited by mdoerges (2019-02-07 07:56:18)

Offline

#2 2019-02-06 15:03:23

mikho
Low End Mod
From: Hell and gore == Sweden
Registered: 2013-03-02
Posts: 1,766
Website

Re: [MrVM] Problem with tun device Norway 1GB NAT

You could try to

chattr +i /dev/net

That should keep the directory as Virtuozzo rewrites the network config on reboots.

Offline

#3 2019-02-06 18:14:21

mdoerges
Trusted Member
Registered: 2014-11-10
Posts: 9

Re: [MrVM] Problem with tun device Norway 1GB NAT

The main problem is that the tun device isn't working at all.
Can you please check and fix?
When I run the command

chattr +i /dev/net

I get an error message:

chattr: Inappropriate ioctl for device while reading flags on /dev/net

Last edited by mdoerges (2019-02-07 07:55:17)

Offline

Board footer

Powered by FluxBB