From patchwork Mon Aug 29 18:50:58 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arun Isaac X-Patchwork-Id: 42071 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 5199327BBEA; Mon, 29 Aug 2022 19:52:52 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 0158927BBE9 for ; Mon, 29 Aug 2022 19:52:52 +0100 (BST) Received: from localhost ([::1]:45718 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oSjsR-00080p-6c for patchwork@mira.cbaines.net; Mon, 29 Aug 2022 14:52:51 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50376) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oSjre-0007a4-KY for guix-patches@gnu.org; Mon, 29 Aug 2022 14:52:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:44088) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oSjre-0001T6-54 for guix-patches@gnu.org; Mon, 29 Aug 2022 14:52:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oSjre-0002zE-1e for guix-patches@gnu.org; Mon, 29 Aug 2022 14:52:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#57351] [PATCH v2] gnu: Add vpn-slice. Resent-From: Arun Isaac Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 29 Aug 2022 18:52:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57351 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Efraim Flashner , Arun Isaac Cc: 57351@debbugs.gnu.org Received: via spool by 57351-submit@debbugs.gnu.org id=B57351.166179907911432 (code B ref 57351); Mon, 29 Aug 2022 18:52:02 +0000 Received: (at 57351) by debbugs.gnu.org; 29 Aug 2022 18:51:19 +0000 Received: from localhost ([127.0.0.1]:33837 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oSjqw-0002yJ-OX for submit@debbugs.gnu.org; Mon, 29 Aug 2022 14:51:19 -0400 Received: from mugam.systemreboot.net ([139.59.75.54]:48530) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oSjqv-0002yA-2c for 57351@debbugs.gnu.org; Mon, 29 Aug 2022 14:51:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=systemreboot.net; s=default; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=PziF1j5Jc7oDvadujbfdKPJ7XvUeswou1gWWKRk1Blo=; b=YMrUarCje6bp8JHgAf2EhFc3BP XgD3UpIqO7fBSUBAQWw1HYkRL4EaV0A95qxYXLoeeh7wD1PJsZqjU0xVOdgNn+7juIk488XtjoECg LJ75PinRIE1KnRBZCkMPlgFZ+tfSIo+AWTe3efaPl0VGkEPQGEuMuhHvVM/lFLyaa+DqP10B2z4QD tinEkJPv7nC3e2gWcYPU++J4/N3G06jyzP6hGbJZETq2temedJIyBcLVuIHatvRTe2/gtndok8Jkg 1+oECKXq4Mv2XZBb88XerDXfGfSePhL84dtC4wnloL+tEqWY0M8o4g9a/44OX652jFkw2bObh9BML mhn4x9JQ==; Received: from [192.168.2.1] (port=2944 helo=localhost.localdomain) by systemreboot.net with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1oSjqt-0005G7-1Z; Tue, 30 Aug 2022 00:21:15 +0530 From: Arun Isaac Date: Tue, 30 Aug 2022 00:20:58 +0530 Message-Id: <20220829185058.32439-1-arunisaac@systemreboot.net> X-Mailer: git-send-email 2.37.1 In-Reply-To: References: MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/vpn.scm (vpn-slice): New variable. --- gnu/packages/vpn.scm | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/gnu/packages/vpn.scm b/gnu/packages/vpn.scm index 1ec619b0c2..c5c5939996 100644 --- a/gnu/packages/vpn.scm +++ b/gnu/packages/vpn.scm @@ -1197,3 +1197,31 @@ (define-public xl2tpd "xl2tpd is an implementation of the Layer 2 Tunnelling Protocol (RFC 2661). L2TP allows you to tunnel PPP over UDP.") (license license:gpl2))) + +(define-public vpn-slice + (package + (name "vpn-slice") + (version "0.16.1") + (source (origin + (method url-fetch) + (uri (pypi-uri "vpn-slice" version)) + (sha256 + (base32 + "1anfx4hn2ggm6sbwqmqx68s3l2rjcy4z4l038xqb440jnk8jvl18")))) + (build-system python-build-system) + (inputs (list python-dnspython python-setproctitle)) + (home-page "https://github.com/dlenski/vpn-slice") + (synopsis "Split tunneling replacement for vpnc-script") + (description "vpn-slice is a replacement for @command{vpnc-script} used by +@code{openconnect} and @code{vpnc}. Instead of trying to copy the behavior of +standard corporate VPN clients, which normally reroute all your network +traffic through the VPN, vpn-slice tries to minimize your contact with an +intrusive VPN. This is also known as a split-tunnel VPN, since it splits your +traffic between the VPN tunnel and your normal network interfaces. + +By default, vpn-slice only routes traffic for specific hosts or subnets +through the VPN. It automatically looks up named hosts, using the VPN's DNS +servers, and adds entries for them to your @file{/etc/hosts} (which it cleans +up after VPN disconnection), however it does not otherwise alter your +@file{/etc/resolv.conf} at all.") + (license license:gpl3+)))