From mboxrd@z Thu Jan 1 00:00:00 1970 From: Benjamin Slade Subject: Re: openvpn with networkmanager Date: Mon, 10 Sep 2018 19:45:53 -0600 Message-ID: <875zzc957y.fsf@jnanam.net> References: <8736up6w7l.fsf@jnanam.net> <871sa3dl35.fsf@gnu.org> <87in3e7zac.fsf@jnanam.net> <87r2i1jq1n.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41126) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fzXkf-0002BV-5N for help-guix@gnu.org; Mon, 10 Sep 2018 21:46:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fzXkb-0005Uq-5f for help-guix@gnu.org; Mon, 10 Sep 2018 21:46:01 -0400 Received: from mail-io0-x22e.google.com ([2607:f8b0:4001:c06::22e]:40070) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fzXka-0005UU-VL for help-guix@gnu.org; Mon, 10 Sep 2018 21:45:57 -0400 Received: by mail-io0-x22e.google.com with SMTP id l14-v6so2288107iob.7 for ; Mon, 10 Sep 2018 18:45:56 -0700 (PDT) In-reply-to: <87r2i1jq1n.fsf@gmail.com> 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: Adam Massmann Cc: Guix-Help Thanks, Adam, I'll have to try this. It's hard to know how much of the issues with NetworkManager+VPNs is a GuixSD-specific issue and how much is just NetworkManager (on my Arch machine, I have to connect to openvpn 'by hand', it won't connect through NetworkManager; but on my Bedrock/pieces-from-a-bunch-of-different-distros machine, OpenVPN 'just works' directly in NetworkManager). =E2=80=94Ben On 2018-09-10T10:05:56-0600, Adam Massmann wrote: > Hi Ben, > Benjamin Slade writes: > > > > What is a recommended/working way of using OpenVPN on GuixSD? > I do not know what the recommended way of working with > openvpn is, but I do have a working way. Attached is a bash > script that takes a wireless interface as an argument and > starts up a vpn, adjusting dns to avoid dns leaks (you will > need to modify to add the dns for your setup). So if I have > a wifi connection called "interface" I just run > ```vpn-launcher-example.sh interface``` to start my vpn > session, and then ```vpn-killer-example.sh interface``` > to cleanup the connection after I have finished > openvpn. Also depending on your setup you might need to > either run as root, or sprinkle sudos before the nmcli > calls. > This works well for me, but I strongly doubt it is the > recommended way using openvpn. If anyone has a better way > I'd also love to hear it. > Best, > Adam -- Benjamin Slade - https://babbagefiles.xyz `(pgp_fp: ,(21BA 2AE1 28F6 DF36 110A 0E9C A320 BBE8 2B52 EE19)) '(sent by mu4e on Emacs running under GNU/Linux . https://gnu.org ) `(Choose Linux ,(Choose Freedom) . https://linux.com )