1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2013 Andreas Enge <andreas@enge.fr>
3 ;;; Copyright © 2013, 2016 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 Efraim Flashner <efraim@flashner.co.il>
8 ;;; This file is part of GNU Guix.
10 ;;; GNU Guix is free software; you can redistribute it and/or modify it
11 ;;; under the terms of the GNU General Public License as published by
12 ;;; the Free Software Foundation; either version 3 of the License, or (at
13 ;;; your option) any later version.
15 ;;; GNU Guix is distributed in the hope that it will be useful, but
16 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
17 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 ;;; GNU General Public License for more details.
20 ;;; You should have received a copy of the GNU General Public License
21 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
23 (define-module (gnu packages vpn)
24 #:use-module ((guix licenses) #:prefix license:)
25 #:use-module (guix packages)
26 #:use-module (guix download)
27 #:use-module (guix build-system gnu)
28 #:use-module (gnu packages)
29 #:use-module (gnu packages compression)
30 #:use-module (gnu packages gettext)
31 #:use-module (gnu packages gnupg)
32 #:use-module (gnu packages linux)
33 #:use-module (gnu packages perl)
34 #:use-module (gnu packages pkg-config)
35 #:use-module (gnu packages tls)
36 #:use-module (gnu packages xml))
44 (uri (string-append "mirror://gnu/gvpe/gvpe-"
48 "1gsipcysvsk80gvyn9jnk9g0xg4ng9yd5zp066jnmpgs52d2vhvk"))))
49 (build-system gnu-build-system)
50 (home-page "http://software.schmorp.de/pkg/gvpe.html")
51 (inputs `(("openssl" ,openssl)
53 (synopsis "Secure VPN among multiple nodes over an untrusted network")
55 "The GNU Virtual Private Ethernet creates a virtual network
56 with multiple nodes using a variety of transport protocols. It works
57 by creating encrypted host-to-host tunnels between multiple
59 (license license:gpl3+)))
67 (uri (string-append "https://www.unix-ag.uni-kl.de/~massar/vpnc/vpnc-"
70 "1128860lis89g1s21hqxvap2nq426c9j4bvgghncc1zj0ays7kj6"))
71 (patches (search-patches "vpnc-script.patch"))))
72 (build-system gnu-build-system)
73 (inputs `(("libgcrypt" ,libgcrypt)
76 ;; The following packages provide commands that 'vpnc-script'
78 ("net-tools" ,net-tools) ;ifconfig, route
79 ("iproute2" ,iproute))) ;ip
81 `(#:tests? #f ; there is no check target
83 (modify-phases %standard-phases
85 (lambda* (#:key outputs #:allow-other-keys)
86 (let ((out (assoc-ref outputs "out")))
87 (substitute* "Makefile"
88 (("PREFIX=/usr/local") (string-append "PREFIX=" out)))
89 (substitute* "Makefile"
90 (("ETCDIR=/etc/vpnc") (string-append "ETCDIR=" out
92 (add-after 'install 'wrap-vpnc-script
93 (lambda* (#:key inputs outputs #:allow-other-keys)
94 ;; Wrap 'etc/vpnc/vpnc-script' so that it finds the commands it
95 ;; needs. Assume coreutils/grep/sed are in $PATH.
96 (let ((out (assoc-ref outputs "out")))
97 (wrap-program (string-append out "/etc/vpnc/vpnc-script")
99 (,(string-append (assoc-ref inputs "net-tools")
101 ,(string-append (assoc-ref inputs "net-tools")
103 ,(string-append (assoc-ref inputs "iproute2")
105 (synopsis "Client for Cisco VPN concentrators")
107 "vpnc is a VPN client compatible with Cisco's EasyVPN equipment.
108 It supports IPSec (ESP) with Mode Configuration and Xauth. It supports only
109 shared-secret IPSec authentication with Xauth, AES (256, 192, 128), 3DES,
110 1DES, MD5, SHA1, DH1/2/5 and IP tunneling. It runs entirely in userspace.
111 Only \"Universal TUN/TAP device driver support\" is needed in the kernel.")
112 (license license:gpl2+) ; some file are bsd-2, see COPYING
113 (home-page "http://www.unix-ag.uni-kl.de/~massar/vpnc/")))
116 (define-public openconnect
122 (uri (string-append "ftp://ftp.infradead.org/pub/openconnect/"
123 "openconnect-" version ".tar.gz"))
125 "1i102yr8yp2ny587n6pd966443h1pqxyw5q0n5afq575046jj98g"))))
126 (build-system gnu-build-system)
128 `(("libxml2" ,libxml2)
133 `(("gettext" ,gettext-minimal)
134 ("pkg-config" ,pkg-config)))
137 `(,(string-append "--with-vpnc-script="
138 (assoc-ref %build-inputs "vpnc")
139 "/etc/vpnc/vpnc-script"))))
140 (synopsis "Client for Cisco VPN")
142 "OpenConnect is a client for Cisco's AnyConnect SSL VPN, which is
143 supported by the ASA5500 Series, by IOS 12.4(9)T or later on Cisco SR500,
144 870, 880, 1800, 2800, 3800, 7200 Series and Cisco 7301 Routers,
145 and probably others.")
146 (license license:lgpl2.1)
147 (home-page "http://www.infradead.org/openconnect/")))
149 (define-public openvpn
156 "https://swupdate.openvpn.org/community/releases/openvpn-"
160 "1hfwmdsp7s34qx34qgwrpp89h30744lbsks6y619cdh27bpnpwaj"))))
161 (build-system gnu-build-system)
163 '(#:configure-flags '("--enable-iproute2=yes")))
165 `(("iproute2" ,iproute)))
169 ("linux-pam" ,linux-pam)))
170 (home-page "https://openvpn.net/")
171 (synopsis "Virtual private network daemon")
172 (description "OpenVPN implements virtual private network (VPN) techniques
173 for creating secure point-to-point or site-to-site connections in routed or
174 bridged configurations and remote access facilities. It uses a custom
175 security protocol that utilizes SSL/TLS for key exchange. It is capable of
176 traversing network address translators (NATs) and firewalls.")
177 (license license:gpl2)))
185 (uri (string-append "http://tinc-vpn.org/packages/"
186 name "-" version ".tar.gz"))
189 "0i5kx3hza359nclyhb60kxlzqyx0phmg175350hww28g6scjcl0b"))))
190 (build-system gnu-build-system)
193 '("--sysconfdir=/etc"
194 "--localstatedir=/var")))
195 (inputs `(("zlib" ,zlib)
197 ("openssl" ,openssl)))
198 (home-page "http://tinc-vpn.org")
199 (synopsis "Virtual Private Network (VPN) daemon")
201 "Tinc is a VPN that uses tunnelling and encryption to create a secure
202 private network between hosts on the internet.")
203 (license license:gpl2+)))