1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2013 Andreas Enge <andreas@enge.fr>
3 ;;; Copyright © 2013, 2016, 2018, 2019, 2020 Ludovic Courtès <ludo@gnu.org>
4 ;;; Copyright © 2014 Eric Bavier <bavier@member.fsf.org>
5 ;;; Copyright © 2015 Jeff Mickey <j@codemac.net>
6 ;;; Copyright © 2016, 2017, 2019, 2021 Efraim Flashner <efraim@flashner.co.il>
7 ;;; Copyright © 2016–2021 Tobias Geerinckx-Rice <me@tobias.gr>
8 ;;; Copyright © 2017 Julien Lepiller <julien@lepiller.eu>
9 ;;; Copyright © 2018, 2020 Pierre Langlois <pierre.langlois@gmx.com>
10 ;;; Copyright © 2018 Meiyo Peng <meiyo.peng@gmail.com>
11 ;;; Copyright © 2019, 2020 Leo Famulari <leo@famulari.name>
12 ;;; Copyright © 2019 Rutger Helling <rhelling@mykolab.com>
13 ;;; Copyright © 2019 Ricardo Wurmus <rekado@elephly.net>
14 ;;; Copyright © 2020 Brice Waegeneire <brice@waegenei.re>
15 ;;; Copyright © 2020 Ryan Prior <rprior@protonmail.com>
16 ;;; Copyright © 2020 Ivan Kozlov <kanichos@yandex.ru>
17 ;;; Copyright © 2020 David Dashyan <mail@davie.li>
19 ;;; This file is part of GNU Guix.
21 ;;; GNU Guix is free software; you can redistribute it and/or modify it
22 ;;; under the terms of the GNU General Public License as published by
23 ;;; the Free Software Foundation; either version 3 of the License, or (at
24 ;;; your option) any later version.
26 ;;; GNU Guix is distributed in the hope that it will be useful, but
27 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
28 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
29 ;;; GNU General Public License for more details.
31 ;;; You should have received a copy of the GNU General Public License
32 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
34 (define-module (gnu packages vpn)
35 #:use-module ((guix licenses) #:prefix license:)
36 #:use-module (guix packages)
37 #:use-module (guix download)
38 #:use-module (guix git-download)
39 #:use-module (guix build-system cmake)
40 #:use-module (guix build-system gnu)
41 #:use-module (guix build-system linux-module)
42 #:use-module (guix build-system python)
43 #:use-module (guix utils)
44 #:use-module (gnu packages)
45 #:use-module (gnu packages admin)
46 #:use-module (gnu packages base)
47 #:use-module (gnu packages bash)
48 #:use-module (gnu packages check)
49 #:use-module (gnu packages dns)
50 #:use-module (gnu packages autotools)
51 #:use-module (gnu packages compression)
52 #:use-module (gnu packages freedesktop)
53 #:use-module (gnu packages gettext)
54 #:use-module (gnu packages gnupg)
55 #:use-module (gnu packages guile)
56 #:use-module (gnu packages libevent)
57 #:use-module (gnu packages linux)
58 #:use-module (gnu packages ncurses)
59 #:use-module (gnu packages nss)
60 #:use-module (gnu packages perl)
61 #:use-module (gnu packages pkg-config)
62 #:use-module (gnu packages python)
63 #:use-module (gnu packages python-build)
64 #:use-module (gnu packages python-crypto)
65 #:use-module (gnu packages python-xyz)
66 #:use-module (gnu packages python-web)
67 #:use-module (gnu packages qt)
68 #:use-module (gnu packages samba)
69 #:use-module (gnu packages tls)
70 #:use-module (gnu packages xml))
78 (uri (string-append "mirror://gnu/gvpe/gvpe-"
82 "1cz8n75ksl0l908zc5l3rnfm1hv7130s2w8710799fr5sxrdbszi"))))
83 (build-system gnu-build-system)
84 (home-page "http://software.schmorp.de/pkg/gvpe.html")
85 (native-inputs `(("pkg-config" ,pkg-config)))
86 (inputs `(("openssl" ,openssl)
88 (synopsis "Secure VPN among multiple nodes over an untrusted network")
90 "The GNU Virtual Private Ethernet creates a virtual network
91 with multiple nodes using a variety of transport protocols. It works
92 by creating encrypted host-to-host tunnels between multiple
94 (license license:gpl3+)))
102 (uri (string-append "https://www.unix-ag.uni-kl.de/~massar/vpnc/vpnc-"
105 "1128860lis89g1s21hqxvap2nq426c9j4bvgghncc1zj0ays7kj6"))))
106 (build-system gnu-build-system)
107 (inputs `(("libgcrypt" ,libgcrypt)
109 ("vpnc-scripts" ,vpnc-scripts)))
111 `(#:tests? #f ; there is no check target
113 (modify-phases %standard-phases
114 (add-after 'unpack 'use-store-paths
115 (lambda* (#:key inputs outputs #:allow-other-keys)
116 (let ((out (assoc-ref outputs "out"))
117 (vpnc-scripts (assoc-ref inputs "vpnc-scripts")))
118 (substitute* "config.c"
119 (("/etc/vpnc/vpnc-script")
120 (string-append vpnc-scripts "/etc/vpnc/vpnc-script")))
121 (substitute* "Makefile"
123 (string-append "ETCDIR=" out "/etc/vpnc\n"))
125 (string-append "PREFIX=" out "\n")))
127 (delete 'configure)))) ; no configure script
128 (synopsis "Client for Cisco VPN concentrators")
130 "vpnc is a VPN client compatible with Cisco's EasyVPN equipment.
131 It supports IPSec (ESP) with Mode Configuration and Xauth. It supports only
132 shared-secret IPSec authentication with Xauth, AES (256, 192, 128), 3DES,
133 1DES, MD5, SHA1, DH1/2/5 and IP tunneling. It runs entirely in userspace.
134 Only \"Universal TUN/TAP device driver support\" is needed in the kernel.")
135 (license license:gpl2+) ; some file are bsd-2, see COPYING
136 (home-page "https://www.unix-ag.uni-kl.de/~massar/vpnc/")))
138 (define-public vpnc-scripts
139 (let ((commit "3885f8bbc4ae03fd6da0ada6de12f7223a59595c"))
141 (name "vpnc-scripts")
142 (version (string-append "20200925." (string-take commit 7)))
147 (url "git://git.infradead.org/users/dwmw2/vpnc-scripts.git")
149 (file-name (git-file-name name version))
152 "1pmi4n58q81pmn9arvfixhvv6vkkf3rpwac3hwnwyl882q5q0ccx"))))
153 (build-system gnu-build-system)
154 (inputs `(("guile" ,guile-3.0) ; for the wrapper scripts
155 ("coreutils" ,coreutils)
157 ("iproute2" ,iproute) ; for ‘ip’
158 ("net-tools" ,net-tools) ; for ‘ifconfig’, ‘route’
163 (modify-phases %standard-phases
164 (add-after 'unpack 'use-relative-paths
165 ;; Patch the scripts to work with and use relative paths.
167 (for-each (lambda (script)
171 (("\\[ +-x +([^]]+) +\\]" _ command)
172 (string-append "command -v >/dev/null 2>&1 "
174 (find-files "." "^vpnc-script"))
176 (delete 'configure) ; no configure script
179 (invoke "gcc" "-o" "netunshare" "netunshare.c")))
181 ;; There is no Makefile; manually install the relevant files.
182 (lambda* (#:key outputs #:allow-other-keys)
183 (let* ((out (assoc-ref outputs "out"))
184 (etc (string-append out "/etc/vpnc")))
185 (for-each (lambda (file)
186 (install-file file etc))
187 (append (find-files "." "^vpnc-script")
189 "xinetd.netns.conf")))
191 (add-after 'install 'wrap-scripts
192 ;; Wrap scripts with paths to their common hard dependencies.
193 ;; Optional dependencies will need to be installed by the user.
194 (lambda* (#:key inputs outputs #:allow-other-keys)
195 (let ((out (assoc-ref outputs "out")))
198 (wrap-script (string-append out "/etc/vpnc/" script)
201 (let ((input (assoc-ref inputs name)))
202 (string-append input "/bin:"
210 (list "vpnc-script-ptrtd"
214 #:tests? #f)) ; no tests
215 (home-page "http://git.infradead.org/users/dwmw2/vpnc-scripts.git")
216 (synopsis "Network configuration scripts for Cisco VPN clients")
218 "This set of scripts configures routing and name services when invoked
219 by the VPNC or OpenConnect Cisco @dfn{Virtual Private Network} (VPN) clients.
221 The default @command{vpnc-script} automatically configures most common
222 connections, and provides hooks for performing custom actions at various stages
223 of the connection or disconnection process.
225 Alternative scripts are provided for more complicated set-ups, or to serve as an
226 example for writing your own. For example, @command{vpnc-script-sshd} contains
227 the entire VPN in a network namespace accessible only through SSH.")
228 (license license:gpl2+))))
230 (define-public ocproxy
237 (url "https://github.com/cernekee/ocproxy")
238 (commit (string-append "v" version))))
239 (file-name (git-file-name name version))
242 "03323nnhb4y9nzwva04mq7xg03dvdrgp689g89f69jqc261skcqx"))))
243 (build-system gnu-build-system)
245 `(("autoconf" ,autoconf)
246 ("automake" ,automake)))
248 `(("libevent" ,libevent)))
249 (home-page "https://github.com/cernekee/ocproxy")
250 (synopsis "OpenConnect proxy")
252 "User-level @dfn{SOCKS} and port forwarding proxy for OpenConnect based
253 on LwIP. When using ocproxy, OpenConnect only handles network activity that
254 the user specifically asks to proxy, so the @dfn{VPN} interface no longer
255 \"hijacks\" all network traffic on the host.")
256 (license license:bsd-3)))
258 (define-public openconnect
264 (uri (string-append "ftp://ftp.infradead.org/pub/openconnect/"
265 "openconnect-" version ".tar.gz"))
267 (base32 "1cdsx4nsrwawbsisfkldfc9i4qn60g03vxb13nzppr2br9p4rrih"))))
268 (build-system gnu-build-system)
270 `(("libxml2" ,libxml2)
275 ("vpnc-scripts" ,vpnc-scripts)))
277 `(("gettext" ,gettext-minimal)
278 ("pkg-config" ,pkg-config)))
281 `(,(string-append "--with-vpnc-script="
282 (assoc-ref %build-inputs "vpnc-scripts")
283 "/etc/vpnc/vpnc-script"))))
284 (synopsis "Client for Cisco VPN")
286 "OpenConnect is a client for Cisco's AnyConnect SSL VPN, which is
287 supported by the ASA5500 Series, by IOS 12.4(9)T or later on Cisco SR500,
288 870, 880, 1800, 2800, 3800, 7200 Series and Cisco 7301 Routers,
289 and probably others.")
290 (license license:lgpl2.1)
291 (home-page "https://www.infradead.org/openconnect/")))
293 (define-public openconnect-sso
295 (name "openconnect-sso")
300 (uri (pypi-uri "openconnect-sso" version))
303 "1yybmscka3m5yxfkp1m5pqz2m8jlwdq9b0hx2w5l1jj6bzpl9fsf"))))
304 (build-system python-build-system)
306 `(#:tests? #f ; Tests not included, building from git requires poetry.
308 (modify-phases %standard-phases
309 (add-after 'unpack 'adjust-package-version-requirements
311 (substitute* "setup.py"
312 (("(pyxdg>=0.26),<0.27" _ pyxdg) pyxdg))
314 (add-after 'unpack 'patch-openconnect
316 (substitute* "openconnect_sso/app.py"
318 (string-append "\"" (which "openconnect") "\"")))
321 (lambda* (#:key tests? #:allow-other-keys)
323 (invoke "pytest" "-v"))
325 (add-after 'install 'wrap-qt-process-path
326 (lambda* (#:key inputs outputs #:allow-other-keys)
327 (let* ((out (assoc-ref outputs "out"))
328 (bin (string-append out "/bin/openconnect-sso"))
329 (qt-process-path (string-append
330 (assoc-ref inputs "qtwebengine")
331 "/lib/qt5/libexec/QtWebEngineProcess")))
333 `("QTWEBENGINEPROCESS_PATH" = (,qt-process-path)))
336 `(("openconnect" ,openconnect)
337 ("python-attrs" ,python-attrs)
338 ("python-colorama" ,python-colorama)
339 ("python-keyring" ,python-keyring)
340 ("python-lxml" ,python-lxml)
341 ("python-prompt-toolkit" ,python-prompt-toolkit)
342 ("python-requests" ,python-requests)
343 ("python-pyqt" ,python-pyqt)
344 ("python-pyqtwebengine" ,python-pyqtwebengine)
345 ("python-pysocks" ,python-pysocks)
346 ("python-pyxdg" ,python-pyxdg)
347 ("python-structlog" ,python-structlog)
348 ("python-toml" ,python-toml)
349 ("qtwebengine" ,qtwebengine)))
351 `(("python-pytest" ,python-pytest)
352 ("python-setuptools-scm" ,python-setuptools-scm)))
353 (home-page "https://github.com/vlaci/openconnect-sso")
354 (synopsis "OpenConnect wrapper script supporting Azure AD (SAMLv2)")
356 "This package provides a wrapper script for OpenConnect supporting Azure AD
357 (SAMLv2) authentication to Cisco SSL-VPNs.")
358 (license license:gpl3)))
360 (define-public openfortivpn
362 (name "openfortivpn")
367 (url "https://github.com/adrienverge/openfortivpn")
368 (commit (string-append "v" version))))
369 (file-name (git-file-name name version))
372 "1qsfgpxg553s8rc9cyrc4k96z0pislxsdxb9wyhp8fdprkak2mw2"))))
373 (build-system gnu-build-system)
375 `(("autoconf" ,autoconf)
376 ("autotools" ,automake)
377 ("pkg-config" ,pkg-config)))
379 `(("openssl" ,openssl)
381 (home-page "https://github.com/adrienverge/openfortivpn")
382 (synopsis "Client for PPP+SSL VPN tunnel services")
383 (description "Openfortivpn is a client for PPP+SSL VPN tunnel services. It
384 spawns a pppd process and operates the communication between the gateway and
385 this process. It is compatible with Fortinet VPNs.")
386 (license license:gpl3+)))
388 (define-public openvpn
395 "https://swupdate.openvpn.org/community/releases/openvpn-"
399 "157ikzap2bbkzx34hkh33bpk2i14xjx1x3pkadhmzh1pr24h94s0"))))
400 (build-system gnu-build-system)
402 '(#:configure-flags '("--enable-iproute2=yes")))
404 `(("iproute2" ,iproute)))
409 ("linux-pam" ,linux-pam)))
410 (home-page "https://openvpn.net/")
411 (synopsis "Virtual private network daemon")
413 "OpenVPN implements virtual private network (@dfn{VPN}) techniques
414 for creating secure point-to-point or site-to-site connections in routed or
415 bridged configurations and remote access facilities. It uses a custom
416 security protocol that utilizes SSL/TLS for key exchange. It is capable of
417 traversing network address translators (@dfn{NAT}s) and firewalls.")
418 (license license:gpl2)))
420 (define-public protonvpn-cli
422 (name "protonvpn-cli")
426 ;; PyPI has a ".whl" file but not a proper source release.
427 ;; Thus, fetch code from Git.
430 (url "https://github.com/ProtonVPN/linux-cli")
431 (commit (string-append "v" version))))
432 (file-name (git-file-name name version))
434 (base32 "0y7v9ikrmy5dbjlpbpacp08gy838i8z54m8m4ps7ldk1j6kyia3n"))))
435 (build-system python-build-system)
437 '(#:tests? #f ; no tests in repo
439 (modify-phases %standard-phases
440 (add-after 'wrap 'wrap-wrapper
441 ;; Wrap entrypoint with paths to its hard dependencies.
442 (lambda* (#:key inputs outputs #:allow-other-keys)
443 (let ((entrypoint (string-append (assoc-ref outputs "out")
444 "/bin/.protonvpn-real")))
445 (wrap-program entrypoint
448 (let ((input (assoc-ref inputs name)))
449 (string-append input "/bin:"
460 `(("python-docopt" ,python-docopt)))
463 ("iproute2" ,iproute)
464 ("iptables" ,iptables)
468 ("python-jinja2" ,python-jinja2)
469 ("python-pythondialog" ,python-pythondialog)
470 ("python-requests" ,python-requests)
472 (synopsis "Command-line client for ProtonVPN")
474 "This is the official command-line interface for ProtonVPN, a secure
475 point-to-point virtual private networking (VPN) service with a gratis tier.
476 It can automatically find and connect to the fastest servers or use Tor over
477 VPN. The gratis tier offers unlimited bandwidth for up to 10 devices.")
478 (home-page "https://github.com/ProtonVPN/linux-cli")
479 (license license:gpl3+)))
487 (uri (string-append "https://tinc-vpn.org/packages/"
488 "tinc-" version ".tar.gz"))
491 "021i2sl2mjscbm8g59d7vs74iw3gf0m48wg7w3zhwj6czarkpxs0"))))
492 (build-system gnu-build-system)
495 '("--sysconfdir=/etc"
496 "--localstatedir=/var")))
497 (inputs `(("zlib" ,zlib)
499 ("openssl" ,openssl)))
500 (home-page "https://tinc-vpn.org")
501 (synopsis "Virtual Private Network (VPN) daemon")
503 "Tinc is a VPN that uses tunnelling and encryption to create a secure
504 private network between hosts on the internet.")
505 (license license:gpl2+)))
507 (define-public sshuttle
514 (uri (pypi-uri name version))
517 "0vp13xwrhx4m6zgsyzvai84lkq9mzkaw47j58dk0ll95kaymk2x8"))))
518 (build-system python-build-system)
521 (modify-phases %standard-phases
522 (add-after 'unpack 'patch-FHS-file-names
524 (substitute* "sshuttle/client.py"
525 (("/usr/bin/env") (which "env")))
526 (substitute* "sshuttle/ssh.py"
530 `(("python-setuptools-scm" ,python-setuptools-scm)
532 ("python-flake8" ,python-flake8)
533 ("python-mock" ,python-mock)
534 ("python-pytest-cov" ,python-pytest-cov)
535 ("python-pytest-runner" ,python-pytest-runner)))
536 (home-page "https://github.com/sshuttle/sshuttle")
537 (synopsis "VPN that transparently forwards connections over SSH")
538 (description "sshuttle creates an encrypted virtual private network (VPN)
539 connection to any remote server to which you have secure shell (SSH) access.
540 The only requirement is a suitable version of Python on the server;
541 administrative privileges are required only on the client. Unlike most VPNs,
542 sshuttle forwards entire sessions, not packets, using kernel transparent
543 proxying. This makes it faster and more reliable than SSH's own tunneling and
544 port forwarding features. It can forward both TCP and UDP traffic, including
545 DNS domain name queries.")
546 (license license:lgpl2.0))) ; incorrectly identified as GPL in ‘setup.py’
548 (define-public sshoot
555 (uri (pypi-uri name version))
558 "1ccgh0hjyxrwkgy3hnxz3hgbjbs0lmfs25d5l5jam0xbpcpj63h0"))))
559 (build-system python-build-system)
562 (modify-phases %standard-phases
563 (add-after 'unpack 'patch-paths
565 (substitute* "sshoot/tests/test_manager.py"
566 (("/bin/sh") (which "sh")))
569 `(("python-argcomplete" ,python-argcomplete)
570 ("python-prettytable" ,python-prettytable)
571 ("python-pyyaml" ,python-pyyaml)))
574 `(("python-fixtures" ,python-fixtures)
575 ("python-pbr" ,python-pbr)
576 ("python-testtools" ,python-testtools)))
577 (home-page "https://github.com/albertodonato/sshoot")
578 (synopsis "sshuttle VPN session manager")
579 (description "sshoot provides a command-line interface to manage multiple
580 @command{sshuttle} virtual private networks. It supports flexible profiles
581 with configuration options for most of @command{sshuttle}’s features.")
582 (license license:gpl3+)))
584 (define-public badvpn
587 (version "1.999.130")
592 (url "https://github.com/ambrop72/badvpn")
594 (file-name (git-file-name name version))
596 (base32 "0rm67xhi7bh3yph1vh07imv5y1pwyldvw3wa5bz471g8mnkc7d3c"))))
597 (build-system cmake-build-system)
599 '(#:tests? #f)) ; no tests
603 ("openssl" ,openssl)))
605 `(("pkg-config" ,pkg-config)))
606 (home-page "https://github.com/ambrop72/badvpn")
607 (synopsis "Peer-to-peer virtual private network (VPN)")
608 (description "@code{BadVPN} is a collection of virtual private
609 network (VPN) tools. It includes:
612 @item NCD programming language.\n
613 NCD (Network Configuration Daemon) is a daemon and programming/scripting
614 language for configuration of network interfaces and other aspects of the
616 @item Tun2socks network-layer proxifier.\n
617 The tun2socks program socksifes TCP connections at the network layer. It
618 implements a TUN device which accepts all incoming TCP connections (regardless
619 of destination IP), and forwards the connections through a SOCKS server.
620 @item Peer-to-peer VPN.\n
621 The peer-to-peer VPN implements a Layer 2 (Ethernet) network between the peers
624 ;; This project contains a bundled lwIP. lwIP is also released under the
625 ;; 3-clause BSD license.
626 (license license:bsd-3)))
628 (define-public wireguard-linux-compat
630 (name "wireguard-linux-compat")
631 (version "1.0.20201221")
634 (uri (string-append "https://git.zx2c4.com/wireguard-linux-compat/"
635 "snapshot/wireguard-linux-compat-" version
639 "0ci13in0fqq32n5qamch4qhjgbdq86ygrgmfhc9szsh2nsl8jlkf"))))
640 (build-system linux-module-build-system)
644 `(#:linux ,linux-libre-5.4 ; mustn't have WG built-in
645 #:tests? #f ; no test suite
646 #:modules ((guix build linux-module-build-system)
649 (ice-9 textual-ports))
651 (modify-phases %standard-phases
652 (add-before 'build 'change-directory
656 (add-after 'build 'build-patch
657 (lambda* (#:key outputs #:allow-other-keys)
658 (let* ((patch-builder "../kernel-tree-scripts/create-patch.sh")
659 (port (open-input-pipe patch-builder))
660 (str (get-string-all port)))
662 (call-with-output-file "wireguard.patch"
664 (format port "~a" str))))
666 (add-after 'install 'install-patch
667 (lambda* (#:key outputs #:allow-other-keys)
668 (install-file "wireguard.patch"
669 (assoc-ref %outputs "kernel-patch"))
671 ;; So that 'install-license-files' works...
672 (add-before 'install-license-files 'reset-cwd
676 (home-page "https://git.zx2c4.com/wireguard-linux-compat/")
677 (synopsis "WireGuard kernel module for Linux 3.10 through 5.5")
678 (description "This package contains an out-of-tree kernel patch and
679 a loadable module adding WireGuard to Linux kernel versions 3.10 through 5.5.
680 WireGuard was added to Linux 5.6.")
681 (license license:gpl2)))
683 (define-public wireguard-tools
685 (name "wireguard-tools")
686 (version "1.0.20200827")
691 (url "https://git.zx2c4.com/wireguard-tools.git")
692 (commit (string-append "v" version))))
693 (file-name (git-file-name name version))
695 (base32 "1h351hn531z6z85sx9ya27xjz1jszgn1pkwibacjj49mds15f7gn"))))
696 (build-system gnu-build-system)
699 (list ,(string-append "CC=" (cc-for-target))
701 "WITH_BASHCOMPLETION=yes"
702 ;; Install the ‘simple and dirty’ helper script wg-quick(8).
704 (string-append "PREFIX=" (assoc-ref %outputs "out"))
705 ;; Currently used only to create an empty /etc/wireguard directory.
706 (string-append "SYSCONFDIR=no-thanks"))
707 ;; The test suite is meant to be run interactively. It runs Clang's
708 ;; scan-build static analyzer and then starts a web server to display the
712 (modify-phases %standard-phases
713 ;; No configure script
715 (add-after 'install 'install-contrib-docs
716 (lambda* (#:key outputs #:allow-other-keys)
717 (let ((out (assoc-ref outputs "out")))
718 (copy-recursively "contrib/"
719 (string-append out "/share/doc/wireguard-tools"))
721 (add-after 'install 'wrap-wg-quick
722 (lambda* (#:key inputs outputs #:allow-other-keys)
723 (let* ((out (assoc-ref outputs "out"))
724 (inputs-sbin (map (lambda (input)
725 (string-append (assoc-ref inputs input) "/sbin"))
726 (list "resolvconf" "iproute" "procps"
728 (coreutils (string-append (assoc-ref inputs "coreutils")
730 (wrap-program (string-append out "/bin/wg-quick")
731 `("PATH" ":" prefix ,(append inputs-sbin
735 `(("resolvconf" ,openresolv)
736 ("coreutils" ,coreutils)
737 ("bash" ,bash) ; for scripts using /dev/tcp
740 ("iptables" ,iptables)))
741 (home-page "https://www.wireguard.com/")
742 (synopsis "Tools for configuring WireGuard tunnels")
744 "This package provides the user-space command-line tools for using and
745 configuring WireGuard tunnels.
747 WireGuard is a simple and fast general-purpose @acronym{VPN, Virtual Private
748 Network} that securely encapsulates IP packets over UDP. It aims to be as easy
749 to configure and deploy as SSH. VPN connections are made simply by exchanging
750 public keys and can roam across IP addresses.")
752 (list license:lgpl2.1+ ; src/netlink.h & contrib/embeddable-wg-library
753 license:gpl2)))) ; everything else
755 (define-public wireguard
756 (deprecated-package "wireguard" wireguard-tools))
758 (define-public xl2tpd
765 (url "https://github.com/xelerance/xl2tpd")
766 (commit (string-append "v" version))))
767 (file-name (git-file-name name version))
770 "0is5ccrvijz0pfm45pfrlbb9y8231yz3c4zqs8mkgakl9rxajy6l"))))
771 (build-system gnu-build-system)
773 `(#:make-flags (list (string-append "PREFIX=" %output)
775 #:phases (modify-phases %standard-phases
776 (delete 'configure) ;no configure script
777 (add-before 'build 'setup-environment
778 (lambda* (#:key inputs #:allow-other-keys)
779 (substitute* "l2tp.h"
781 (string-append (assoc-ref inputs "ppp")
784 (assoc-ref inputs "linux-libre-headers"))
786 #:tests? #f)) ; no tests provided
787 (inputs `(("libpcap" ,libpcap)
788 ("linux-libre-headers" ,linux-libre-headers)
790 (home-page "https://www.xelerance.com/software/xl2tpd/")
791 (synopsis "Layer 2 Tunnelling Protocol Daemon (RFC 2661)")
793 "xl2tpd is an implementation of the Layer 2 Tunnelling Protocol (RFC 2661).
794 L2TP allows you to tunnel PPP over UDP.")
795 (license license:gpl2)))