VPN won't connect 3.2rc2 [Solved]

Post here if you are a new Porteus member and you're looking for some help.
fab1qaz
Black ninja
Black ninja
Posts: 65
Joined: 26 May 2016, 13:32
Distribution: Desktop 3.1
Location: England

VPN won't connect 3.2rc2 [Solved]

Post#1 by fab1qaz » 27 May 2016, 11:55

grep VPN /var/log/syslog

May 27 11:19:37 porteus NetworkManager[1039]: <warn> [1464347977.0781] vpn-connection[0x18dc1f0,37464fb5-2734-460e-be87-fe8c534a4d37,"TorGuard.Czech",0]: VPN connection: failed to connect interactively: 'User 'nm-openvpn' not found, check NM_OPENVPN_USER.'
May 27 11:19:42 porteus NetworkManager[1039]: <warn> [1464347982.2092] vpn-connection[0x18dc3e0,37464fb5-2734-460e-be87-fe8c534a4d37,"TorGuard.Czech",0]: VPN connection: failed to connect interactively: 'User 'nm-openvpn' not found, check NM_OPENVPN_USER.'
May 27 11:21:50 porteus NetworkManager[1039]: <warn> [1464348110.9217] vpn-connection[0x18dc5d0,37464fb5-2734-460e-be87-fe8c534a4d37,"TorGuard.Czech",0]: VPN connection: failed to connect interactively: 'User 'nm-openvpn' not found, check NM_OPENVPN_USER.'
May 27 11:21:55 porteus NetworkManager[1039]: <warn> [1464348115.3927] vpn-connection[0x18dc7c0,37464fb5-2734-460e-be87-fe8c534a4d37,"TorGuard.Czech",0]: VPN connection: failed to connect interactively: 'User 'nm-openvpn' not found, check NM_OPENVPN_USER.'

I tried
adduser --group --system nm-openvpn

I get
"adduser: command not found."

I can connect to wi-fi so it must be something to do with permissions. Any ideas? Thanks.
Last edited by fab1qaz on 07 Jun 2016, 09:05, edited 1 time in total.

Bogomips
Full of knowledge
Full of knowledge
Posts: 2564
Joined: 25 Jun 2014, 15:21
Distribution: 3.2.2 Cinnamon & KDE5
Location: London

Re: VPN won't connect 3.2rc2

Post#2 by Bogomips » 27 May 2016, 12:03

If using openvpn, you have to do this:

Code: Select all

    guest@porteus:~$ cat /dev/net/tun
    cat: /dev/net/tun: No such file or directory

    guest@porteus:~$ sudo /sbin/modprobe tun                                           
    guest@porteus:~$ cat /dev/net/tun
    cat: /dev/net/tun: File descriptor in bad state                                    
If you get the above results, then vpn is good to go.
Linux porteus 4.4.0-porteus #3 SMP PREEMPT Sat Jan 23 07:01:55 UTC 2016 i686 AMD Sempron(tm) 140 Processor AuthenticAMD GNU/Linux
NVIDIA Corporation C61 [GeForce 6150SE nForce 430] (rev a2) MemTotal: 901760 kB MemFree: 66752 kB

fab1qaz
Black ninja
Black ninja
Posts: 65
Joined: 26 May 2016, 13:32
Distribution: Desktop 3.1
Location: England

Re: VPN won't connect 3.2rc2

Post#3 by fab1qaz » 27 May 2016, 12:03

How do you add users on this OS, user nm-openvpn is required in order to connect to the VPN and needs to be in Group system.

Edit: Thanks I'll try that out now.

fab1qaz
Black ninja
Black ninja
Posts: 65
Joined: 26 May 2016, 13:32
Distribution: Desktop 3.1
Location: England

Re: VPN won't connect 3.2rc2

Post#4 by fab1qaz » 27 May 2016, 12:16

guest@porteus:~$ cat /dev/net/tun
cat: /dev/net/tun: File descriptor in bad state

guest@porteus:~$ sudo /sbin/modprobe tun
guest@porteus:~$ cat /dev/net/tun
cat: /dev/net/tun: File descriptor in bad state


OK I got file descriptor in bad state straight away so it didn't change anything. VPN just does not connect. Do you know how I can add a user to group system?

Bogomips
Full of knowledge
Full of knowledge
Posts: 2564
Joined: 25 Jun 2014, 15:21
Distribution: 3.2.2 Cinnamon & KDE5
Location: London

Re: VPN won't connect 3.2rc2

Post#5 by Bogomips » 27 May 2016, 12:33

fab1qaz wrote:Do you know how I can add a user to group system?
That is the beauty of a minimalist sytem: there can only be one user guest. :D

What are you trying to do? And why does vpn require another user?
Linux porteus 4.4.0-porteus #3 SMP PREEMPT Sat Jan 23 07:01:55 UTC 2016 i686 AMD Sempron(tm) 140 Processor AuthenticAMD GNU/Linux
NVIDIA Corporation C61 [GeForce 6150SE nForce 430] (rev a2) MemTotal: 901760 kB MemFree: 66752 kB

fab1qaz
Black ninja
Black ninja
Posts: 65
Joined: 26 May 2016, 13:32
Distribution: Desktop 3.1
Location: England

Re: VPN won't connect 3.2rc2

Post#6 by fab1qaz » 27 May 2016, 17:17

I figured at much but this code

Code: Select all

'User 'nm-openvpn' not found, check NM_OPENVPN_USER.'
made me think I needed to add another user. All I'm trying to do is connect to my VPN on Porteus network manager using openvpn.

fab1qaz
Black ninja
Black ninja
Posts: 65
Joined: 26 May 2016, 13:32
Distribution: Desktop 3.1
Location: England

Re: VPN won't connect 3.2rc2

Post#7 by fab1qaz » 27 May 2016, 21:04

Any reason why openvpn would fail on on rc2? It should work, right? The VPN connecting spin wheel lasts about 1ms before giving up, basically no time at all.

User avatar
wread
Module Guard
Module Guard
Posts: 1255
Joined: 09 Jan 2011, 18:48
Distribution: Porteus v5.0-kde-64 bits
Location: Santo Domingo
Contact:

Re: VPN won't connect 3.2rc2

Post#8 by wread » 28 May 2016, 11:15

@fab1qaz
VPN is not so easy...Do you have a configuration file in /etc/openvpn/openvpn.conf?

I had SaferVPN configured and working for 2 days with Kde; I disconnected because it was to expensive for me... I thought the charge was per year; no! it was per month :shock:

What is the use of Vpn? Mainly as a proxy; I use Tor for that, and can navigate anonymously at no cost!...

Good luck!
Porteus is proud of the FASTEST KDE ever made.....(take akonadi, nepomuk and soprano out and you will have a decent OS).
The Porteus Community never sleeps!

fab1qaz
Black ninja
Black ninja
Posts: 65
Joined: 26 May 2016, 13:32
Distribution: Desktop 3.1
Location: England

Re: VPN won't connect 3.2rc2

Post#9 by fab1qaz » 28 May 2016, 12:32

Actually no, just a openvpn.conf.sample. I assumed it would be set up as VPN is basic functionality these days. I got a black friday deal with torguard I think it is $15 for 6 months which is good. Yeah tor is slow I tried using it as a proxy but you never know where you are going to be and a VPN is faster and more simple for me. Maybe it would be easier if I could get an xzm of torguard. As you see on their site https://torguard.net/downloads.php I can grab either .deb, tar.bz2, or rpm. Deb is easy to change to .xzm right? I don't mind using the client if openvpn is a bitch to set up. :lol:

fab1qaz
Black ninja
Black ninja
Posts: 65
Joined: 26 May 2016, 13:32
Distribution: Desktop 3.1
Location: England

Re: VPN won't connect 3.2rc2

Post#10 by fab1qaz » 28 May 2016, 16:09

Solved, just convert the deb to xzm with deb2xzm in right click menu! :ROFL:

User avatar
brokenman
Site Admin
Site Admin
Posts: 6105
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v4 all desktops
Location: Brazil

Re: VPN won't connect 3.2rc2

Post#11 by brokenman » 06 Jun 2016, 23:50

vpn should work out of the box in rc3. Also, I have removed any dependency on guest user. You can now create another user if you please. Unless you get errors in which case you can't. :crazy:
How do i become super user?
Wear your underpants on the outside and put on a cape.

Bogomips
Full of knowledge
Full of knowledge
Posts: 2564
Joined: 25 Jun 2014, 15:21
Distribution: 3.2.2 Cinnamon & KDE5
Location: London

Re: VPN won't connect 3.2rc2

Post#12 by Bogomips » 07 Jun 2016, 00:26

brokenman wrote:Also, I have removed any dependency on guest user. You can now create another user if you please. Unless you get errors in which case you can't. :crazy:
Only for vpn, or overall?
Linux porteus 4.4.0-porteus #3 SMP PREEMPT Sat Jan 23 07:01:55 UTC 2016 i686 AMD Sempron(tm) 140 Processor AuthenticAMD GNU/Linux
NVIDIA Corporation C61 [GeForce 6150SE nForce 430] (rev a2) MemTotal: 901760 kB MemFree: 66752 kB

User avatar
brokenman
Site Admin
Site Admin
Posts: 6105
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v4 all desktops
Location: Brazil

Re: VPN won't connect 3.2rc2

Post#13 by brokenman » 07 Jun 2016, 03:57

I did a very rudimentary check for any script that uses the string 'guest' and changed it to get the currently logged in user. In theory this means you should be able to create a user by any name. Be warned that you will be looking at a default config after logging in.
How do i become super user?
Wear your underpants on the outside and put on a cape.

Post Reply