From patchwork Tue Aug 23 08:44:47 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arun Isaac X-Patchwork-Id: 41876 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 644AA27BBEA; Tue, 23 Aug 2022 09:46:19 +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 2232B27BBE9 for ; Tue, 23 Aug 2022 09:46:19 +0100 (BST) Received: from localhost ([::1]:49734 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oQPYA-0005bl-7t for patchwork@mira.cbaines.net; Tue, 23 Aug 2022 04:46:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56034) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oQPXy-0005bW-Lm for guix-patches@gnu.org; Tue, 23 Aug 2022 04:46:06 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:52778) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oQPXv-0007Wp-48 for guix-patches@gnu.org; Tue, 23 Aug 2022 04:46:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oQPXu-0001LW-Kf for guix-patches@gnu.org; Tue, 23 Aug 2022 04:46:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#57351] [PATCH] gnu: Add vpn-slice. Resent-From: Arun Isaac Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 23 Aug 2022 08:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 57351 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 57351@debbugs.gnu.org Cc: Arun Isaac X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16612443055102 (code B ref -1); Tue, 23 Aug 2022 08:46:02 +0000 Received: (at submit) by debbugs.gnu.org; 23 Aug 2022 08:45:05 +0000 Received: from localhost ([127.0.0.1]:42527 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oQPWz-0001KE-4g for submit@debbugs.gnu.org; Tue, 23 Aug 2022 04:45:05 -0400 Received: from lists.gnu.org ([209.51.188.17]:49704) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oQPWv-0001Jd-St for submit@debbugs.gnu.org; Tue, 23 Aug 2022 04:45:03 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33898) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oQPWv-0005P9-Mc for guix-patches@gnu.org; Tue, 23 Aug 2022 04:45:01 -0400 Received: from mugam.systemreboot.net ([139.59.75.54]:35530) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oQPWs-0007Dn-5M for guix-patches@gnu.org; Tue, 23 Aug 2022 04:45:01 -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: 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:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=dAzrq6LrGv3iYMX91KmNPsHI3R5eawI1E7WwSStX7yY=; b=bJcurm2SfTmoqq64wFw89DcKxG kozm+tXRngbrEU4p/Hpuq2TXvRheyDwQLhYQRmjgUAfPhvpccBHkz7E8d/BraaNCn2anyuM+r0Gl4 +jrgmTjZJ6/dWOb3x83CAGk6K6Pt5M2hjpS5bjiTZND2QGIDOKnjKye1sBMs8L7aiX+I9xFPP0srS yy6IqoNlstdEWDifpiUsNJ6czvJhAzR2S10QSfKYvfZfk7sjFMEyjoTHXpir7ZmrG06pZaxdtRh3c rvqWRTxPNPrHPHMrGnyCPz2rKoPVJ+Wdyj84VyZas3wszSFFBWiRvom9lxtZN18jQc7pQSvk4RrwO XSVkdLDg==; Received: from [192.168.2.1] (port=55268 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 1oQPWk-0008PM-07; Tue, 23 Aug 2022 14:14:50 +0530 From: Arun Isaac Date: Tue, 23 Aug 2022 14:14:47 +0530 Message-Id: <20220823084447.11995-1-arunisaac@systemreboot.net> X-Mailer: git-send-email 2.37.1 MIME-Version: 1.0 Received-SPF: pass client-ip=139.59.75.54; envelope-from=arunisaac@systemreboot.net; helo=mugam.systemreboot.net X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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..c68511e04b 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 the vpnc-script used by +OpenConnect and 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 /etc/hosts (which it cleans up +after VPN disconnection), however it does not otherwise alter your +/etc/resolv.conf at all.") + (license license:gpl3+)))