From mboxrd@z Thu Jan 1 00:00:00 1970 From: Johannes Laute Subject: Re: Openvpn and NetworkManager Date: Sun, 24 Dec 2017 23:03:26 +0000 Message-ID: References: <20171224090200.oh5jpkqzjagrrhss@abyayala> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="001a114111feb5f23405611e0ecc" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50901) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eTFIo-0002bd-Ev for help-guix@gnu.org; Sun, 24 Dec 2017 18:03:31 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eTFIn-0000JO-4g for help-guix@gnu.org; Sun, 24 Dec 2017 18:03:30 -0500 Received: from mail-lf0-x229.google.com ([2a00:1450:4010:c07::229]:33399) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eTFIm-0000I7-OB for help-guix@gnu.org; Sun, 24 Dec 2017 18:03:29 -0500 Received: by mail-lf0-x229.google.com with SMTP id g80so32081103lfg.0 for ; Sun, 24 Dec 2017 15:03:28 -0800 (PST) In-Reply-To: <20171224090200.oh5jpkqzjagrrhss@abyayala> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: Johannes Laute , help-guix@gnu.org --001a114111feb5f23405611e0ecc Content-Type: text/plain; charset="UTF-8" Thanks for the answer! On 24 December 2017 at 09:02, ng0 wrote: > Johannes Laute transcribed 4.2K bytes: > > Hi, > > > > I'm trying to get openvpn and the NetworkManager plugin to work together > > but I am having some troubles. > > > > I started with installing both packages, but the openvpn plugin specific > > menu options did not show up in the connection menu. > > > > I read the documentation and noticed the "vpn-plugins" option in the > > network-manager service declaration, so I added the > network-manager-openvpn > > service like this: > > > > (modify-services %desktop-services > > (network-manager-service-type config => > > (network-manager-configuration > > (inherit config) > > (vpn-plugins (list > > network-manager-openvpn))))))) > > > > After that, it now shows up and I can import openvpn connections (I > noticed > > it added a NM_VPN_PLUGIN_DIR environment variable) but I cannot connect. > > Just to be sure: have you only noticed this variable or have you sourced > the new .guix-profile/etc/profile where it should be included? > Not 100% sure what you mean but the following is in the output of "env" : NM_VPN_PLUGIN_DIR=/gnu/store/1k98ck98lirfw9974qvz84xikcsjc67f-network-manager-openvpn-1.8.0/lib/NetworkManager/VPN > > > When I click connect simply nothing happens, and the following log is > > emitted to /var/log/debug > > > > Dec 23 23:09:49 localhost NetworkManager[345]: [1514070589.5044] > > audit: op="connection-activate" uuid="36c09127-ffc0-4d46-9547- > 06e0ea214a15" > > name="mullvad_de" pid=470 uid=1000 result="fail" reason="The VPN service > > 'org.freedesktop.NetworkManager.openvpn' was not installed. > > I have opened a bug about this a while ago (OpenVPN and the (not yet > merged?) > VPNC plugins are affected. It's annoying prevents me from accessing my > university > intranet via VPN for some things from home. > Maybe it was just an email so far, I can not find a bug ticket for this. > > If I can help by providing any more logs or something I'd happy to do that. > > I researched the error message and it seems common when people don't have > > plugin installed (obviously), but I also found this: > > https://github.com/NixOS/nixpkgs/issues/3539 which might be related. > > Thanks for the additional issue, I didn't look into Nix so far. > > > I'm pretty new to guix and scheme so any help would be greatly > appreciated > > > > johannes > > -- > GnuPG: A88C8ADD129828D7EAC02E52E22F9BBFEE348588 > GnuPG: https://c.n0.is/ng0_pubkeys/tree/keys > WWW: https://n0.is > Also, Happy Christmas! Johannes --001a114111feb5f23405611e0ecc Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thanks for the answer!
=
On 24 December 2017 at 09:02, ng0 <ng0@n0.is&g= t; wrote:
Johannes Laute transcrib= ed 4.2K bytes:
> Hi,
>
> I'm trying to get openvpn and the NetworkManager plugin to work to= gether
> but I am having some troubles.
>
> I started with installing both packages, but the openvpn plugin specif= ic
> menu options did not show up in the connection menu.
>
> I read the documentation and noticed the "vpn-plugins" optio= n in the
> network-manager service declaration, so I added the network-manager-op= envpn
> service like this:
>
> (modify-services %desktop-services
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (network-manager-service-type config= =3D>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (netw= ork-manager-configuration
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (inhe= rit config)
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (vpn-= plugins (list
> network-manager-openvpn)))))))
>
> After that, it now shows up and I can import openvpn connections (I no= ticed
> it added a NM_VPN_PLUGIN_DIR environment variable) but I cannot connec= t.

Just to be sure: have you only noticed this variable or have you sou= rced
the new .guix-profile/etc/profile where it should be included?

Not 100% sure what you mean but the following is in= the output of "env" : NM_VPN_PLUGIN_DIR=3D/gnu/store/1k98ck98lir= fw9974qvz84xikcsjc67f-network-manager-openvpn-1.8.0/lib/NetworkManager/VPN<= br>=C2=A0

> When I click connect simply nothing happens, and the following log is<= br> > emitted to /var/log/debug
>
> Dec 23 23:09:49 localhost NetworkManager[345]: <info>=C2=A0 [151= 4070589.5044]
> audit: op=3D"connection-activate" uuid=3D"36c09127-ffc0= -4d46-9547-06e0ea214a15"
> name=3D"mullvad_de" pid=3D470 uid=3D1000 result=3D"fail= " reason=3D"The VPN service
> 'org.freedesktop.NetworkManager.openvpn' was not installe= d.

I have opened a bug about this a while ago (OpenVPN and the (not yet= merged?)
VPNC plugins are affected. It's annoying prevents me from accessing my = university
intranet via VPN for some things from home.
Maybe it was just an email so far, I can not find a bug ticket for this.

If I can help = by providing any more logs or something I'd happy to do that.
=C2=A0
> I researched the error message and it seems common when people don'= ;t have
> plugin installed (obviously), but I also found this:
> https://github.com/NixOS/nixpkgs/issues/3539 which might be related.

Thanks for the additional issue, I didn't look into Nix so far.<= br>

> I'm pretty new to guix and scheme so any help would be greatly app= reciated
>
> johannes

--
GnuPG: A88C8ADD129828D7EAC02E52E22F9BBFEE348588
GnuPG:
https://c.n0.is/ng0_pubkeys/tree/keys
=C2=A0 WWW: = https://n0.is

Also, H= appy Christmas!
Johannes

--001a114111feb5f23405611e0ecc--