1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2014, 2017, 2018 Ludovic Courtès <ludo@gnu.org>
3 ;;; Copyright © 2015, 2016, 2017, 2018 Ricardo Wurmus <rekado@elephly.net>
4 ;;; Copyright © 2015 Mark H Weaver <mhw@netris.org>
5 ;;; Copyright © 2015, 2016, 2017 Stefan Reichör <stefan@xsteve.at>
6 ;;; Copyright © 2016 Raimon Grau <raimonster@gmail.com>
7 ;;; Copyright © 2016, 2017, 2018, 2019, 2020 Tobias Geerinckx-Rice <me@tobias.gr>
8 ;;; Copyright © 2016 John Darrington <jmd@gnu.org>
9 ;;; Copyright © 2016, 2017, 2018, 2019 Nicolas Goaziou <mail@nicolasgoaziou.fr>
10 ;;; Copyright © 2016 Eric Bavier <bavier@member.fsf.org>
11 ;;; Copyright © 2016, 2017 ng0 <ng0@n0.is>
12 ;;; Copyright © 2016, 2017, 2018 Arun Isaac <arunisaac@systemreboot.net>
13 ;;; Copyright © 2016 Benz Schenk <benz.schenk@uzh.ch>
14 ;;; Copyright © 2016, 2017 Pjotr Prins <pjotr.guix@thebird.nl>
15 ;;; Copyright © 2017 Mathieu Othacehe <m.othacehe@gmail.com>
16 ;;; Copyright © 2017 Leo Famulari <leo@famulari.name>
17 ;;; Copyright © 2017, 2018, 2019 Efraim Flashner <efraim@flashner.co.il>
18 ;;; Copyright © 2017, 2018, 2019 Rutger Helling <rhelling@mykolab.com>
19 ;;; Copyright © 2017, 2019 Gábor Boskovits <boskovits@gmail.com>
20 ;;; Copyright © 2017 Thomas Danckaert <post@thomasdanckaert.be>
21 ;;; Copyright © 2018 Adam Van Ymeren <adam@vany.ca>
22 ;;; Copyright © 2018 Fis Trivial <ybbs.daans@hotmail.com>
23 ;;; Copyright © 2018 Tonton <tonton@riseup.net>
24 ;;; Copyright © 2018 Clément Lassieur <clement@lassieur.org>
25 ;;; Copyright © 2018 Theodoros Foradis <theodoros@foradis.org>
26 ;;; Copyright © 2018 Marius Bakke <mbakke@fastmail.com>
27 ;;; Copyright © 2018 Oleg Pykhalov <go.wigust@gmail.com>
28 ;;; Copyright © 2018 Pierre Neidhardt <mail@ambrevar.xyz>
29 ;;; Copyright © 2019 Maxim Cournoyer <maxim.cournoyer@gmail.com>
30 ;;; Copyright © 2019 Vasile Dumitrascu <va511e@yahoo.com>
31 ;;; Copyright © 2019 Julien Lepiller <julien@lepiller.eu>
32 ;;; Copyright © 2019 Timotej Lazar <timotej.lazar@araneo.si>
33 ;;; Copyright © 2019 Brice Waegeneire <brice@waegenei.re>
34 ;;; Copyright © 2019 Tonton <tonton@riseup.net>
35 ;;; Copyright © 2019 Alex Griffin <a@ajgrf.com>
36 ;;; Copyright © 2019 Jan Wielkiewicz <tona_kosmicznego_smiecia@interia.pl>
37 ;;; Copyright © 2019 Daniel Schaefer <git@danielschaefer.me>
38 ;;; Copyright © 2019 Diego N. Barbato <dnbarbato@posteo.de>
40 ;;; This file is part of GNU Guix.
42 ;;; GNU Guix is free software; you can redistribute it and/or modify it
43 ;;; under the terms of the GNU General Public License as published by
44 ;;; the Free Software Foundation; either version 3 of the License, or (at
45 ;;; your option) any later version.
47 ;;; GNU Guix is distributed in the hope that it will be useful, but
48 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
49 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
50 ;;; GNU General Public License for more details.
52 ;;; You should have received a copy of the GNU General Public License
53 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
55 (define-module (gnu packages networking)
56 #:use-module ((guix licenses) #:prefix license:)
57 #:use-module (guix packages)
58 #:use-module (guix download)
59 #:use-module (guix git-download)
60 #:use-module (guix build-system cmake)
61 #:use-module (guix build-system glib-or-gtk)
62 #:use-module (guix build-system gnu)
63 #:use-module (guix build-system go)
64 #:use-module (guix build-system perl)
65 #:use-module (guix build-system python)
66 #:use-module (guix build-system trivial)
67 #:use-module (gnu packages)
68 #:use-module (gnu packages admin)
69 #:use-module (gnu packages adns)
70 #:use-module (gnu packages algebra)
71 #:use-module (gnu packages audio)
72 #:use-module (gnu packages autotools)
73 #:use-module (gnu packages base)
74 #:use-module (gnu packages bison)
75 #:use-module (gnu packages boost)
76 #:use-module (gnu packages check)
77 #:use-module (gnu packages code)
78 #:use-module (gnu packages compression)
79 #:use-module (gnu packages cpp)
80 #:use-module (gnu packages crypto)
81 #:use-module (gnu packages curl)
82 #:use-module (gnu packages dejagnu)
83 #:use-module (gnu packages documentation)
84 #:use-module (gnu packages flex)
85 #:use-module (gnu packages gettext)
86 #:use-module (gnu packages glib)
87 #:use-module (gnu packages gnome)
88 #:use-module (gnu packages gnupg)
89 #:use-module (gnu packages gtk)
90 #:use-module (gnu packages image)
91 #:use-module (gnu packages libidn)
92 #:use-module (gnu packages linux)
93 #:use-module (gnu packages lua)
94 #:use-module (gnu packages multiprecision)
95 #:use-module (gnu packages kerberos)
96 #:use-module (gnu packages ncurses)
97 #:use-module (gnu packages nettle)
98 #:use-module (gnu packages password-utils)
99 #:use-module (gnu packages pcre)
100 #:use-module (gnu packages perl)
101 #:use-module (gnu packages perl-check)
102 #:use-module (gnu packages pkg-config)
103 #:use-module (gnu packages pretty-print)
104 #:use-module (gnu packages python)
105 #:use-module (gnu packages python-web)
106 #:use-module (gnu packages python-xyz)
107 #:use-module (gnu packages qt)
108 #:use-module (gnu packages readline)
109 #:use-module (gnu packages serialization)
110 #:use-module (gnu packages sqlite)
111 #:use-module (gnu packages ssh)
112 #:use-module (gnu packages textutils)
113 #:use-module (gnu packages tls)
114 #:use-module (gnu packages valgrind)
115 #:use-module (gnu packages web)
116 #:use-module (gnu packages wxwidgets)
117 #:use-module (gnu packages xml)
118 #:use-module (ice-9 match))
120 ;; The gnu.org ‘home’ for this GNU project is a directory listing with 1.6.0 as
121 ;; the latest version. The author's git repository, mentioned in the 1.6.0
122 ;; README and otherwise legit-looking, contains a proper 1.7.0 release tarball
123 ;; with many OUI updates. Use it, even though it's also several years old now.
124 (define-public macchanger
131 (uri (string-append "https://github.com/alobbs/macchanger/"
132 "releases/download/" version "/"
133 name "-" version ".tar.gz"))
135 (base32 "1gs5m0jxyprdp00w2qkbnaqm3ilkjz0q1gqdg4nzdm8g4xy73qns"))))
136 (build-system gnu-build-system)
137 (home-page "https://www.gnu.org/software/macchanger/")
138 (synopsis "Viewing and manipulating MAC addresses of network interfaces")
139 (description "GNU MAC Changer is a utility for viewing and changing MAC
140 addresses of networking devices. New addresses may be set explicitly or
141 randomly. They can include MAC addresses of the same or other hardware vendors
142 or, more generally, MAC addresses of the same category of hardware.")
143 (license license:gpl2+)))
145 (define-public miredo
151 (uri (string-append "http://www.remlab.net/files/miredo/miredo-"
155 "0j9ilig570snbmj48230hf7ms8kvcwi2wblycqrmhh85lksd49ps"))))
156 (build-system gnu-build-system)
159 (modify-phases %standard-phases
160 ;; The checkconf test in src/ requires network access.
162 'check 'disable-checkconf-test
164 (substitute* "src/Makefile"
165 (("^TESTS = .*") "TESTS = \n"))
167 (home-page "http://www.remlab.net/miredo/")
168 (synopsis "Teredo IPv6 tunneling software")
170 "Miredo is an implementation (client, relay, server) of the Teredo
171 specification, which provides IPv6 Internet connectivity to IPv6 enabled hosts
172 residing in IPv4-only networks, even when they are behind a NAT device.")
173 (license license:gpl2+)))
182 "http://www.dest-unreach.org/socat/download/socat-"
186 "0jnhjijyq74g3wa4ph0am83z6vq7qna7ac0xqjma8s4197z3zmhd"))))
187 (build-system gnu-build-system)
188 (arguments '(#:tests? #f)) ;no 'check' phase
189 (inputs `(("openssl" ,openssl)))
190 (home-page "http://www.dest-unreach.org/socat/")
192 "Open bidirectional communication channels from the command line")
194 "socat is a relay for bidirectional data transfer between two independent
195 data channels---files, pipes, devices, sockets, etc. It can create
196 \"listening\" sockets, named pipes, and pseudo terminals.
198 socat can be used, for instance, as TCP port forwarder, as a shell interface
199 to UNIX sockets, IPv6 relay, for redirecting TCP oriented programs to a serial
200 line, to logically connect serial lines on different computers, or to
201 establish a relatively secure environment (su and chroot) for running client
202 or server shell scripts with network connections.")
203 (license license:gpl2)))
205 (define-public tcp-wrappers
207 (name "tcp-wrappers")
212 "ftp://ftp.porcupine.org/pub/security/tcp_wrappers_"
216 "0p9ilj4v96q32klavx0phw9va21fjp8vpk11nbh6v2ppxnnxfhwm"))))
217 (build-system gnu-build-system)
220 (modify-phases %standard-phases
221 (delete 'configure) ; there is no configure script
222 (delete 'check) ; there are no tests
226 ;; Upstream doesn't generate a shared library. So we have to do it.
227 (setenv "CC" "gcc -fno-builtin -fPIC")
228 (substitute* "Makefile"
229 (("^(all[^\n]*)" line) (string-append line " libwrap.so\n
230 libwrap.so: $(LIB_OBJ)\n
231 \tgcc -shared $^ -o $@\n")))
232 ;; Deal with some gcc breakage.
233 (substitute* "percent_m.c"
234 (("extern char .sys_errlist.*;") ""))
235 (substitute* "scaffold.c"
236 (("extern char .malloc.*;") ""))
237 ;; This, believe it or not, is the recommended way to build!
238 (invoke "make" "REAL_DAEMON_DIR=/etc" "linux")))
239 ;; There is no make install stage, so we have to do it ourselves.
242 (let ((out (assoc-ref %outputs "out"))
243 (man-pages `("hosts_access.3"
251 (headers `("tcpd.h"))
252 (bins `("safe_finger"
259 (install-file x (string-append out "/include")))
263 (install-file x (string-append out "/share/man/man"
264 (string-take-right x 1))))
268 (install-file x (string-append out "/lib/")))
272 (install-file x (string-append out "/bin/")))
275 (home-page "http://www.porcupine.org")
276 (synopsis "Monitor and filter incoming requests for network services")
277 (description "With this package you can monitor and filter incoming requests for
278 network services. It includes a library which may be used by daemons to
279 transparently check connection attempts against an access control list.")
280 (license (license:non-copyleft "file://DISCLAIMER"
281 "See the file DISCLAIMER in the distribution."))))
284 (define-public zeromq
290 (uri (string-append "https://github.com/zeromq/libzmq/releases"
291 "/download/v" version "/zeromq-" version ".tar.gz"))
294 "0qzp80ky4y2k7k1ya09v9gkivvfbz2km813snrb8jhnn634bbmzb"))))
295 (build-system gnu-build-system)
296 (home-page "https://zeromq.org")
297 (synopsis "Library for message-based applications")
299 "The 0MQ lightweight messaging kernel is a library which extends the
300 standard socket interfaces with features traditionally provided by specialized
301 messaging middle-ware products. 0MQ sockets provide an abstraction of
302 asynchronous message queues, multiple messaging patterns, message
303 filtering (subscriptions), seamless access to multiple transport protocols and
305 (license license:lgpl3+)))
314 "https://github.com/zeromq/" name
315 "/releases/download/v" version
316 "/" name "-" version ".tar.gz"))
319 "1szciz62sk3fm4ga9qjpxz0n0lazvphm32km95bq92ncng12kayg"))))
320 (build-system gnu-build-system)
322 '(#:configure-flags '("--enable-drafts")
323 #:phases (modify-phases %standard-phases
324 (add-before 'check 'patch-tests
326 ;; XXX FIXME: Disable the zproc test, which fails on some
327 ;; hardware: <https://github.com/zeromq/czmq/issues/2007>.
328 (substitute* "src/czmq_selftest.c"
329 (("\\{ \"zproc\", zproc_test.*")
333 `(("zeromq" ,zeromq)))
334 (home-page "http://zeromq.org")
335 (synopsis "High-level C bindings for ØMQ")
337 "czmq provides bindings for the ØMQ core API that hides the differences
338 between different versions of ØMQ.")
339 (license license:mpl2.0)))
341 (define-public cppzmq
343 (commit "d9f0f016c07046742738c65e1eb84722ae32d7d4"))
346 (version (string-append "4.2.2-" revision "."
347 (string-take commit 7)))
351 (url "https://github.com/zeromq/cppzmq")
355 "1gmqlm00y6xpa5m6d4ajq3ww63n2w7h4sy997wj81vcqmqx45b1f"))
356 (file-name (string-append name "-" version "-checkout"))))
357 (build-system cmake-build-system)
358 (arguments '(#:tests? #f)) ; No tests.
360 `(("pkg-config" ,pkg-config)))
362 `(("zeromq" ,zeromq)))
363 (home-page "http://zeromq.org")
364 (synopsis "C++ bindings for the ØMQ messaging library")
366 "This package provides header-only C++ bindings for ØMQ. The header
367 files contain direct mappings of the abstractions provided by the ØMQ C API.")
368 (license license:expat))))
370 (define-public librdkafka
377 "https://github.com/edenhill/librdkafka/archive/"
379 (file-name (string-append name "-" version ".tar.gz"))
382 "10ldx7g7ymmg17snzx78vy4n8ma1rjx0agzi34g15j2fk867xmas"))))
383 (build-system gnu-build-system)
386 (modify-phases %standard-phases
388 ;; its custom configure script doesn't understand 'CONFIG_SHELL'.
389 (lambda* (#:key outputs #:allow-other-keys)
390 (let ((out (assoc-ref outputs "out")))
391 ;; librdkafka++.so lacks RUNPATH for librdkafka.so
393 (string-append "-Wl,-rpath=" out "/lib"))
394 (invoke "./configure"
395 (string-append "--prefix=" out))))))))
397 `(("python" ,python-wrapper)))
399 `(("zlib" ,zlib))) ; in the Libs.private field of rdkafka.pc
400 (home-page "https://github.com/edenhill/librdkafka")
401 (synopsis "Apache Kafka C/C++ client library")
403 "librdkafka is a C library implementation of the Apache Kafka protocol,
404 containing both Producer and Consumer support.")
405 (license license:bsd-2)))
407 (define-public libndp
413 (uri (string-append "http://libndp.org/files/"
414 name "-" version ".tar.gz"))
417 "1dlinhl39va00v55qygjc9ap77yqf7xvn4rwmvdr49xhzzxhlj1c"))))
418 (build-system gnu-build-system)
419 (home-page "http://libndp.org/")
420 (synopsis "Library for Neighbor Discovery Protocol")
422 "libndp contains a library which provides a wrapper for IPv6 Neighbor
423 Discovery Protocol. It also provides a tool named ndptool for sending and
424 receiving NDP messages.")
425 (license license:lgpl2.1+)))
427 (define-public ethtool
433 (uri (string-append "mirror://kernel.org/software/network/"
434 "ethtool/ethtool-" version ".tar.xz"))
437 "1i14zrg4a84zjpwvqi8an0zx0hm06g614a79zc2syrkhrvdw1npk"))))
438 (build-system gnu-build-system)
439 (home-page "https://www.kernel.org/pub/software/network/ethtool/")
440 (synopsis "Display or change Ethernet device settings")
442 "ethtool can be used to query and change settings such as speed,
443 auto-negotiation and checksum offload on many network devices, especially
445 (license license:gpl2)))
447 (define-public ifstatus
453 (uri (string-append "mirror://sourceforge/ifstatus/ifstatus/"
454 "ifstatus%20v" version "/ifstatus-v"
458 "045cbsq9ps32j24v8y5hpyqxnqn9mpaf3mgvirlhgpqyb9jsia0c"))
459 (modules '((guix build utils)))
462 (substitute* "Main.h"
463 (("#include <stdio.h>")
464 "#include <stdio.h>\n#include <stdlib.h>"))
466 (build-system gnu-build-system)
468 '(#:tests? #f ; no "check" target
470 (modify-phases %standard-phases
471 (delete 'configure) ; no configure script
473 (lambda* (#:key outputs #:allow-other-keys)
474 (let* ((out (assoc-ref outputs "out"))
475 (bin (string-append out "/bin")))
477 (copy-file "ifstatus"
478 (string-append bin "/ifstatus")))
480 (inputs `(("ncurses" ,ncurses)))
481 (home-page "http://ifstatus.sourceforge.net/graphic/index.html")
482 (synopsis "Text based network interface status monitor")
484 "IFStatus is a simple, easy-to-use program for displaying commonly
485 needed/wanted real-time traffic statistics of multiple network
486 interfaces, with a simple and efficient view on the command line. It is
487 intended as a substitute for the PPPStatus and EthStatus projects.")
488 (license license:gpl2+)))
496 (uri (string-append "mirror://sourceforge/nload/nload/" version
497 "/nload-" version ".tar.gz"))
500 "1rb9skch2kgqzigf19x8bzk211jdfjfdkrcvaqyj89jy2pkm3h61"))))
501 (build-system gnu-build-system)
502 (inputs `(("ncurses" ,ncurses)))
503 (home-page "http://www.roland-riegel.de/nload/")
504 (synopsis "Realtime console network usage monitor")
506 "Nload is a console application which monitors network traffic and
507 bandwidth usage in real time. It visualizes the in- and outgoing traffic using
508 two graphs, and provides additional info like total amount of transferred data
509 and min/max network usage.")
510 (license license:gpl2+)))
512 (define-public iodine
518 (uri (string-append "http://code.kryo.se/" name "/"
519 name "-" version ".tar.gz"))
522 "0gh17kcxxi37k65zm4gqsvbk3aw7yphcs3c02pn1c4s2y6n40axd"))))
523 (build-system gnu-build-system)
526 (modify-phases %standard-phases
528 (add-before 'build 'fix-ifconfig-path
529 ;; This package works only with the net-tools version of ifconfig.
530 (lambda* (#:key inputs #:allow-other-keys)
531 (substitute* "src/tun.c"
533 (string-append (assoc-ref inputs "net-tools") "/bin/")))
535 (add-before 'check 'delete-failing-tests
536 ;; Avoid https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=802105.
538 (substitute* "tests/common.c"
539 (("tcase_add_test\\(tc, \
540 test_parse_format_ipv(4(|_listen_all|_mapped_ipv6)|6)\\);")
543 #:make-flags (list "CC=gcc"
544 (string-append "prefix=" (assoc-ref %outputs "out")))
545 #:test-target "test"))
546 (inputs `(("net-tools" ,net-tools)
548 (native-inputs `(("check" ,check)
549 ("pkg-config" ,pkg-config)))
550 (home-page "http://code.kryo.se/iodine/")
551 (synopsis "Tunnel IPv4 data through a DNS server")
552 (description "Iodine tunnels IPv4 data through a DNS server. This
553 can be useful in different situations where internet access is firewalled, but
554 DNS queries are allowed. The bandwidth is asymmetrical, with limited upstream
555 and up to 1 Mbit/s downstream.")
556 ;; src/md5.[ch] is released under the zlib license
557 (license (list license:isc license:zlib))))
566 (uri (string-append "mirror://debian/pool/main/w/whois/"
567 "whois_" version ".tar.xz"))
569 (base32 "0k97aiz7ngkjz3vhzvk27kqhnmqmkskdfx310c94qnh8fd7hiqfi"))))
570 (build-system gnu-build-system)
572 `(#:tests? #f ; no test suite
573 #:make-flags (list "CC=gcc"
574 (string-append "prefix=" (assoc-ref %outputs "out")))
576 (modify-phases %standard-phases
577 (delete 'configure) ; no configure script
578 (add-before 'build 'setenv
580 (setenv "HAVE_ICONV" "1")
583 `(("libidn2" ,libidn2)))
585 `(("gettext" ,gettext-minimal)
587 ("pkg-config" ,pkg-config)))
588 (synopsis "Intelligent client for the WHOIS directory service")
590 "whois searches for an object in a @dfn{WHOIS} (RFC 3912) database.
591 It is commonly used to look up the registered users or assignees of an Internet
592 resource, such as a domain name, an IP address block, or an autonomous system.
593 It can automatically select the appropriate server for most queries.
595 For historical reasons, this package also includes @command{mkpasswd}, which
596 encrypts passwords using @code{crypt(3)} and is unrelated to the Expect command
598 (home-page "https://github.com/rfc1036/whois")
599 (license license:gpl2+)))
601 (define-public wireshark
608 (uri (string-append "https://www.wireshark.org/download/src/wireshark-"
611 (base32 "0v5nn7i2nbqr59jsw8cs2052hr7xd96x1sa3480g8ks5kahk7zac"))))
612 (build-system cmake-build-system)
615 (modify-phases %standard-phases
616 (add-after 'unpack 'remove-failing-test
617 ;; Test 31/32 fails with errors like "Program reassemble_test is
618 ;; not available". Skipping it for now.
620 (substitute* "CMakeLists.txt"
621 (("suite_unittests" all) (string-append "# " all)))
623 ;; Build process chokes during `validate-runpath' phase.
625 ;; Errors are like the following:
626 ;; "/gnu/store/...wireshark-3.0.0/lib/wireshark/plugins/3.0/epan/ethercat.so:
627 ;; error: depends on 'libwireshark.so.12', which cannot be found in
628 ;; RUNPATH". That is, "/gnu/store/...wireshark-3.0.0./lib" doesn't
629 ;; belong to RUNPATH.
631 ;; That’s not a problem in practice because "ethercat.so" is a plugin,
632 ;; so it’s dlopen’d by a process that already provides "libwireshark".
633 ;; For now, we disable this phase.
634 #:validate-runpath? #f))
640 ("libgcrypt" ,libgcrypt)
646 ("lua" ,lua-5.2) ;Lua 5.3 unsupported
649 ("qtmultimedia" ,qtmultimedia)
658 ("gettext" ,gettext-minimal)
660 ("pkg-config" ,pkg-config)
661 ("python" ,python-wrapper)
662 ("qttools" ,qttools)))
663 (synopsis "Network traffic analyzer")
664 (description "Wireshark is a network protocol analyzer, or @dfn{packet
665 sniffer}, that lets you capture and interactively browse the contents of
667 (home-page "https://www.wireshark.org/")
668 (license license:gpl2+)))
677 (uri (string-append "https://fping.org/dist/fping-"
680 (base32 "0jmnf4vmr43aiwk3h2b5qdsb95gxar8gz1yli8fswnm9nrs9ccvx"))))
681 (build-system gnu-build-system)
682 (home-page "https://fping.org/")
683 (synopsis "Send ICMP ECHO_REQUEST packets to network hosts")
685 "fping is a ping like program which uses the Internet Control Message
686 Protocol (ICMP) echo request to determine if a target host is responding.
687 fping differs from ping in that you can specify any number of targets on the
688 command line, or specify a file containing the lists of targets to ping.
689 Instead of sending to one target until it times out or replies, fping will
690 send out a ping packet and move on to the next target in a round-robin
692 (license license:expat)))
694 (define-public gandi.cli
701 (uri (pypi-uri name version))
703 (base32 "110wc9zgxsrvw4yzp21p0ian5lcf7vhcpxhnmsc4fg9pzl2bwxd5"))))
704 (build-system python-build-system)
707 (modify-phases %standard-phases
708 (add-after 'unpack 'embed-store-file-names
710 (substitute* (list "gandi/cli/modules/cert.py"
711 "gandi/cli/tests/commands/test_certificate.py")
712 (("openssl") (which "openssl")))
714 (add-after 'install 'install-documentation
715 ;; The included man page may be outdated but we install it anyway,
716 ;; since it's mentioned in 'gandi --help' and better than nothing.
717 (lambda* (#:key outputs #:allow-other-keys)
718 (let* ((out (assoc-ref outputs "out"))
719 (man1 (string-append out "/share/man/man1")))
721 (with-output-to-file (string-append man1 "/gandi.1")
723 (invoke "rst2man.py" "gandicli.man.rst")))
726 `(("python-docutils" ,python-docutils) ; for rst2man.py
727 ("python-pytest-cov" ,python-pytest-cov)
728 ("python-tox" ,python-tox)))
730 `(("openssl" ,openssl)
731 ("python-click" ,python-click)
732 ("python-ipy" ,python-ipy)
733 ("python-pyyaml" ,python-pyyaml)
734 ("python-requests" ,python-requests)))
735 (home-page "https://cli.gandi.net")
736 (synopsis "Command-line interface to the Gandi.net Web API")
738 "This package provides a command-line client (@command{gandi}) to buy,
739 manage, and delete Internet resources from Gandi.net such as domain names,
740 virtual machines, and certificates.")
741 (license license:gpl3+)))
743 (define-public go-netns
744 (let ((commit "13995c7128ccc8e51e9a6bd2b551020a27180abd")
748 (version (git-version "0.0.0" revision commit))
752 (url "https://github.com/vishvananda/netns.git")
754 (file-name (git-file-name name version))
757 "1zk6w8158qi4niva5rijchbv9ixgmijsgqshh54wdaav4xrhjshn"))))
758 (build-system go-build-system)
760 `(#:import-path "github.com/vishvananda/netns"
761 #:tests? #f)) ;tests require root privileges
762 (home-page "https://github.com/vishvananda/netns")
763 (synopsis "Simple network namespace handling for Go")
764 (description "The netns package provides a simple interface for
765 handling network namespaces in Go.")
766 (license license:asl2.0))))
768 (define-public go-sctp
769 ;; docker-libnetwork-cmd-proxy requires this exact commit.
770 (let ((commit "07191f837fedd2f13d1ec7b5f885f0f3ec54b1cb")
774 (version (git-version "0.0.0" revision commit))
778 (url "https://github.com/ishidawataru/sctp.git")
780 (file-name (git-file-name name version))
783 "1mk9ncm10gwi5pn5wcw4skbyf4qg7n5qdf1mim4gf3mrckvi6g6h"))))
784 (build-system go-build-system)
786 `(#:import-path "github.com/ishidawataru/sctp"))
787 (home-page "https://github.com/ishidawataru/sctp")
788 (synopsis "SCTP library for the Go programming language")
789 (description "This library provides methods for using the stream control
790 transmission protocol (SCTP) in a Go application.")
791 (license license:asl2.0))))
793 (define-public httping
800 (uri (string-append "https://www.vanheusden.com/httping/httping-"
804 "1y7sbgkhgadmd93x1zafqc4yp26ssiv16ni5bbi9vmvvdl55m29y"))))
805 (build-system gnu-build-system)
807 `(("gettext" ,gettext-minimal)))
811 ("openssl" ,openssl)))
813 `(#:make-flags (list "CC=gcc"
814 (string-append "DESTDIR=" (assoc-ref %outputs "out"))
816 #:tests? #f)) ; no tests
817 (home-page "https://www.vanheusden.com/httping/")
818 (synopsis "Web server latency and throughput monitor")
820 "httping measures how long it takes to connect to a web server, send an
821 HTTP(S) request, and receive the reply headers. It is somewhat similar to
822 @command{ping}, but can be used even in cases where ICMP traffic is blocked
823 by firewalls or when you want to monitor the response time of the actual web
824 application stack itself.")
825 (license license:gpl2))) ; with permission to link with OpenSSL
827 (define-public httpstat
834 (uri (pypi-uri "httpstat" version))
837 "1chw2nk56vaq87aba012a270k9na06hfx1pfbsrc3jfvlc2kb9hb"))))
838 (build-system python-build-system)
839 (inputs `(("curl" ,curl)))
842 (modify-phases %standard-phases
843 (add-before 'build 'fix-curl-path
844 (lambda* (#:key inputs #:allow-other-keys)
845 (substitute* "httpstat.py"
846 (("ENV_CURL_BIN.get\\('curl'\\)")
847 (string-append "ENV_CURL_BIN.get('"
848 (assoc-ref inputs "curl")
851 (home-page "https://github.com/reorx/httpstat")
852 (synopsis "Visualize curl statistics")
854 "@command{httpstat} is a tool to visualize statistics from the
855 @command{curl} HTTP client. It acts as a wrapper for @command{curl} and
856 prints timing information for each step of the HTTP request (DNS lookup,
857 TCP connection, TLS handshake and so on) in the terminal.")
858 (license license:expat)))
860 (define-public bwm-ng
868 (url "https://github.com/vgropp/bwm-ng.git")
869 (commit (string-append "v" version))))
870 (file-name (git-file-name name version))
872 (base32 "0k906wb4pw3dcqpcwnni78lahzi3bva483f8c17sjykic7as4y5n"))))
873 (build-system gnu-build-system)
876 (modify-phases %standard-phases
877 (add-after 'unpack 'disable-premature-./configure
879 (substitute* "autogen.sh"
880 (("\\$srcdir/configure")
884 `(("autoconf" ,autoconf)
885 ("automake" ,automake)))
887 `(("ncurses" ,ncurses)))
888 (synopsis "Console based live network and disk I/O bandwidth monitor")
889 (description "Bandwidth Monitor NG is a small and simple console based
890 live network and disk I/O bandwidth monitor.")
891 (home-page "https://www.gropp.org/?id=projects&sub=bwm-ng")
892 (license license:gpl2)))
894 (define-public aircrack-ng
901 (uri (string-append "https://download.aircrack-ng.org/aircrack-ng-"
905 "0hc2x17bxk2n00z8jj5jfwq3z41681fd19n018724il0cpkjyncy"))))
906 (build-system gnu-build-system)
908 `(("autoconf" ,autoconf)
909 ("automake" ,automake)
911 ("pkg-config" ,pkg-config)
914 `(("libgcrypt" ,libgcrypt)
923 (list "--with-experimental=yes" ; build wesside-ng, etc.
924 "--with-gcrypt") ; openssl's the default
925 #:phases (modify-phases %standard-phases
926 (add-before 'bootstrap 'patch-evalrev
928 ;; Called by ./autogen.sh below, before the default
929 ;; ‘patch-shebangs’ phase has had a chance to run.
930 (substitute* "evalrev"
936 ;; Patch shebangs in generated files before running
938 (setenv "NOCONFIGURE" "please")
939 (invoke "bash" "./autogen.sh")))
940 (add-after 'build 'absolutize-tools
941 (lambda* (#:key inputs #:allow-other-keys)
942 (let ((ethtool (string-append (assoc-ref inputs "ethtool")
944 (substitute* "scripts/airmon-ng"
946 (string-append ethtool " ")))
948 (home-page "https://www.aircrack-ng.org")
949 (synopsis "Assess WiFi network security")
951 "Aircrack-ng is a complete suite of tools to assess WiFi network
952 security. It focuses on different areas of WiFi security: monitoring,
953 attacking, testing, and cracking. All tools are command-line driven, which
954 allows for heavy scripting.")
955 (license (list license:gpl2+ license:bsd-3))))
957 (define-public pixiewps
964 "https://github.com/wiire-a/pixiewps/releases/"
965 "download/v" version "/" name "-" version ".tar.xz"))
968 "07nym6bqml0k9v29vnj003nrgnwrywgjvnljb7cdpsvnwilhbp64"))))
969 (build-system gnu-build-system)
973 (string-append "PREFIX=" (assoc-ref %outputs "out")))
975 (modify-phases %standard-phases
976 (delete 'configure)) ; no configure script
977 #:tests? #f)) ; there are no tests
978 (home-page "https://github.com/wiire-a/pixiewps/")
979 (synopsis "Offline brute-force tool for Wi-Fi Protected Setup")
980 (description "Pixiewps implements the pixie-dust attack to brute
981 force the Wi-Fi Protected Setup (WPS) PIN by exploiting the low or
982 non-existing entropy of some access points.")
983 (license license:gpl3+)))
985 (define-public reaver
992 "https://github.com/t6x/reaver-wps-fork-t6x/releases/"
993 "download/v" version "/" name "-" version ".tar.xz"))
996 "0sva3g0kwgv143n9l3lg4qp5iiqz7nk76nr0hwivsnglbhk9sbil"))))
997 (build-system gnu-build-system)
1000 ;; Save session files to current directory instead of /var.
1001 (list "--enable-savetocurrent"
1002 "--localstatedir=/tmp/dummy") ; prevent creating /var during install
1004 (modify-phases %standard-phases
1005 (add-before 'configure 'change-directory
1009 (add-after 'install 'install-doc
1010 (lambda* (#:key outputs #:allow-other-keys)
1012 (let* ((out (assoc-ref outputs "out"))
1013 (doc (string-append out "/share/doc/" ,name "-" ,version))
1014 (man1 (string-append out "/share/man/man1")))
1015 (for-each (lambda (file) (install-file file doc))
1016 (find-files "." "README.*"))
1017 (install-file "reaver.1" man1)
1019 #:tests? #f)) ; there are no tests
1021 `(("libpcap" ,libpcap)))
1023 `(("aircrack-ng" ,aircrack-ng)
1024 ("pixiewps" ,pixiewps)))
1025 (home-page "https://github.com/t6x/reaver-wps-fork-t6x/")
1026 (synopsis "Attack tool for Wi-Fi Protected Setup")
1027 (description "Reaver performs a brute force attack against an access
1028 point's Wi-Fi Protected Setup (WPS) PIN. Once the PIN is found, the WPA
1029 passphrase can be recovered and the AP's wireless settings can be
1031 (license license:gpl2+)))
1033 (define-public perl-danga-socket
1035 (name "perl-danga-socket")
1040 (uri (string-append "mirror://cpan/authors/id/N/NM/NML/"
1041 "Danga-Socket-" version ".tar.gz"))
1043 (base32 "0x4bvirmf0kphks19jwgva00zz73zx344218dfaiv8gigrw3yg4m"))))
1044 (build-system perl-build-system)
1046 `(("perl-test-tcp" ,perl-test-tcp)))
1048 `(("perl-sys-syscall" ,perl-sys-syscall)))
1049 (home-page "https://metacpan.org/release/Danga-Socket")
1050 (synopsis "Event loop and event-driven async socket base class")
1052 "Danga::Socket is an abstract base class for objects backed by a socket
1053 which provides the basic framework for event-driven asynchronous IO, designed
1054 to be fast. Danga::Socket is both a base class for objects, and an event
1056 (license license:perl-license)))
1058 (define-public perl-data-validate-ip
1060 (name "perl-data-validate-ip")
1066 "mirror://cpan/authors/id/D/DR/DROLSKY/Data-Validate-IP-"
1069 (base32 "1mmppyzsh1w2z2h86kvzqxy56wxgs62a3kf8nvcnz76bblir5ap1"))))
1070 (build-system perl-build-system)
1072 `(("perl-test-requires" ,perl-test-requires)))
1074 `(("perl-netaddr-ip" ,perl-netaddr-ip)))
1075 (home-page "https://metacpan.org/release/Data-Validate-IP")
1076 (synopsis "IPv4 and IPv6 validation methods")
1078 "This module provides several IP address validation subroutines that both
1079 validate and untaint their input. This includes both basic validation
1080 (@code{is_ipv4()} and @code{is_ipv6()}) and special cases like checking whether
1081 an address belongs to a specific network or whether an address is public or
1082 private (reserved).")
1083 (license license:perl-license)))
1085 (define-public perl-net-dns
1087 (name "perl-net-dns")
1094 (string-append "https://www.net-dns.org/download/Net-DNS-"
1096 (string-append "mirror://cpan/authors/id/N/NL/NLNETLABS/Net-DNS-"
1097 version ".tar.gz")))
1099 (base32 "0yknrsh0wqr9s43c0wf3dyzrsi2r7k0v75hay74gqkq850xy3vyx"))))
1100 (build-system perl-build-system)
1102 `(("perl-digest-hmac" ,perl-digest-hmac)))
1103 (home-page "https://www.net-dns.org/")
1105 "Perl Interface to the Domain Name System")
1106 (description "Net::DNS is the Perl Interface to the Domain Name System.")
1107 (license license:x11)))
1109 (define-public perl-socket6
1111 (name "perl-socket6")
1117 "mirror://cpan/authors/id/U/UM/UMEMOTO/Socket6-"
1122 "054izici8klfxs8hr5rljib28plijpsfymy99xbzdp047bx1b2a6"))))
1123 (build-system perl-build-system)
1126 (modify-phases %standard-phases
1128 (lambda* (#:key outputs #:allow-other-keys)
1129 (let* ((out (assoc-ref outputs "out"))
1130 (args `("Makefile.PL"
1131 ,(string-append "PREFIX=" out)
1132 "INSTALLDIRS=site")))
1133 (setenv "CONFIG_SHELL" (which "sh"))
1134 (apply invoke "perl" args)))))))
1135 (home-page "https://metacpan.org/release/Socket6")
1137 "IPv6 related part of the C socket.h defines and structure manipulators for Perl")
1138 (description "Socket6 binds the IPv6 related part of the C socket header
1139 definitions and structure manipulators for Perl.")
1140 (license license:bsd-3)))
1142 (define-public perl-net-dns-resolver-programmable
1144 (name "perl-net-dns-resolver-programmable")
1150 "mirror://cpan/authors/id/J/JM/JMEHNLE/net-dns-resolver-programmable/"
1151 "Net-DNS-Resolver-Programmable-" version ".tar.gz"))
1154 "1v3nl2kaj4fs55n1617n53q8sa3mir06898vpy1rq98zjih24h4d"))
1156 (search-patches "perl-net-dns-resolver-programmable-fix.patch"))))
1157 (build-system perl-build-system)
1159 `(("perl-module-build" ,perl-module-build)))
1160 (inputs `(("perl-net-dns" ,perl-net-dns)))
1162 "https://metacpan.org/release/Net-DNS-Resolver-Programmable")
1164 "Programmable DNS resolver class for offline emulation of DNS")
1165 (description "Net::DNS::Resolver::Programmable is a programmable DNS resolver for
1166 offline emulation of DNS.")
1167 (license license:perl-license)))
1169 (define-public perl-net-dns-resolver-mock
1171 (name "perl-net-dns-resolver-mock")
1172 (version "1.20171219")
1176 "mirror://cpan/authors/id/M/MB/MBRADSHAW/"
1177 "Net-DNS-Resolver-Mock-" version ".tar.gz"))
1180 "0m3rxpkv1b9121srvbqkrgzg4m8mnydiydqv34in1i1ixwrl6jn9"))))
1181 (build-system perl-build-system)
1183 `(("perl-net-dns" ,perl-net-dns)))
1184 (home-page "https://metacpan.org/release/Net-DNS-Resolver-Mock")
1185 (synopsis "Mock DNS Resolver object for testing")
1187 "Net::DNS::Resolver::Mock is a subclass of Net::DNS::Resolver, but returns
1188 static data from any provided DNS zone file instead of querying the network.
1189 It is intended primarily for use in testing.")
1190 (license license:perl-license)))
1192 (define-public perl-netaddr-ip
1194 (name "perl-netaddr-ip")
1200 "mirror://cpan/authors/id/M/MI/MIKER/NetAddr-IP-"
1205 "1rx0dinrz9fk9qcg4rwqq5n1dm3xv2arymixpclcv2q2nzgq4npc"))))
1206 (build-system perl-build-system)
1209 (modify-phases %standard-phases
1211 (lambda* (#:key outputs #:allow-other-keys)
1212 (let* ((out (assoc-ref outputs "out"))
1213 (args `("Makefile.PL"
1214 ,(string-append "PREFIX=" out)
1215 "INSTALLDIRS=site")))
1216 (setenv "CONFIG_SHELL" (which "sh"))
1217 (apply invoke "perl" args)))))))
1219 "https://metacpan.org/release/NetAddr-IP")
1221 "Manages IPv4 and IPv6 addresses and subnets")
1222 (description "NetAddr::IP manages IPv4 and IPv6 addresses and subsets.")
1223 (license license:perl-license)))
1225 (define-public perl-net-patricia
1227 (name "perl-net-patricia")
1233 "mirror://cpan/authors/id/G/GR/GRUBER/Net-Patricia-"
1238 "0ln5f57vc8388kyh9vhx2infrdzfhbpgyby74h1qsnhwds95m0vh"))))
1239 (build-system perl-build-system)
1241 `(("perl-net-cidr-lite" ,perl-net-cidr-lite)
1242 ("perl-socket6" ,perl-socket6)))
1244 "https://metacpan.org/release/Net-Patricia")
1246 "Patricia Trie Perl module for fast IP address lookups")
1248 "Net::Patricia does IP address lookups quickly in Perl.")
1249 ;; The bindings are licensed under GPL2 or later.
1250 ;; libpatricia is licensed under 2-clause BSD.
1251 (license (list license:gpl2+ license:bsd-2))))
1253 (define-public perl-net-cidr-lite
1255 (name "perl-net-cidr-lite")
1261 "mirror://cpan/authors/id/D/DO/DOUGW/Net-CIDR-Lite-"
1266 "14shj73zbqmfjbp0qz1fs9j4p2dpvz5hfkm4qfdjbydflbl2b8fg"))))
1267 (build-system perl-build-system)
1269 "https://metacpan.org/release/Net-CIDR-Lite")
1271 "Perl extension for merging IPv4 or IPv6 CIDR addresses")
1272 (description "Net::CIDR::Lite merges IPv4 or IPv6 CIDR addresses.")
1273 (license license:gpl1+)))
1275 ;; TODO: Use the geolite-mirror-simple.pl script from the example
1276 ;; directory to stay current with the databases. How?
1277 (define-public perl-geo-ip
1279 (name "perl-geo-ip")
1285 "mirror://cpan/authors/id/M/MA/MAXMIND/Geo-IP-"
1290 "1fka8fr7fw6sh3xa9glhs1zjg3s2gfkhi7n7da1l2m2wblqj0c0n"))))
1291 (build-system perl-build-system)
1292 (home-page "https://metacpan.org/release/Geo-IP")
1294 "Look up location and network information by IP Address in Perl")
1295 (description "The Perl module @code{Geo::IP}. It looks up location and
1296 network information by IP Address.")
1297 (license license:perl-license)))
1299 (define-public perl-io-socket-inet6
1301 (name "perl-io-socket-inet6")
1307 "mirror://cpan/authors/id/S/SH/SHLOMIF/IO-Socket-INET6-"
1312 "1fqypz6qa5rw2d5y2zq7f49frwra0aln13nhq5gi514j2zx21q45"))))
1313 (build-system perl-build-system)
1315 `(("perl-module-build" ,perl-module-build)
1316 ("perl-test-pod" ,perl-test-pod)
1317 ("perl-test-pod-coverage" ,perl-test-pod-coverage)))
1318 (inputs `(("perl-socket6" ,perl-socket6)))
1319 (arguments `(;; Need network socket API
1322 "https://metacpan.org/release/IO-Socket-INET6")
1324 "Perl object interface for AF_INET/AF_INET6 domain sockets")
1325 (description "IO::Socket::INET6 is an interface for AF_INET/AF_INET6 domain
1327 (license license:perl-license)))
1329 (define-public libproxy
1335 (uri (string-append "https://github.com/libproxy/libproxy/"
1336 "releases/download/" version "/libproxy-"
1340 "0kvdrazlzwia876w988cmlypp253gwy6idlh8mjk958c29jb8kb5"))))
1341 (build-system cmake-build-system)
1343 `(("pkg-config" ,pkg-config)))
1349 (modify-phases %standard-phases
1352 (invoke "ctest" "-E" "url-test"))))))
1353 (synopsis "Library providing automatic proxy configuration management")
1354 (description "Libproxy handles the details of HTTP/HTTPS proxy
1355 configuration for applications across all scenarios. Applications using
1356 libproxy only have to specify which proxy to use.")
1357 (home-page "https://libproxy.github.io/libproxy")
1358 (license license:lgpl2.1+)))
1360 (define-public proxychains-ng
1362 (name "proxychains-ng")
1367 (uri (string-append "http://ftp.barfooze.de/pub/sabotage/tarballs/"
1368 "proxychains-ng-" version ".tar.xz"))
1370 (base32 "1bmhfbl1bzc87vl0xwr1wh5xvslfyc41nl2hqzhbj258p0sy004x"))))
1371 (build-system gnu-build-system)
1373 `(#:tests? #f ; there are no tests
1375 (modify-phases %standard-phases
1376 (add-after 'unpack 'fix-configure-script
1378 ;; The configure script is very intolerant to unknown arguments,
1379 ;; such as "CONFIG_SHELL".
1380 (substitute* "configure"
1381 (("\\*\\) break ;;" line)
1382 (string-append "[A-Z]*) shift ;;\n"
1385 (add-before 'configure 'set-up-environment
1389 (synopsis "Redirect any TCP connection through a proxy or proxy chain")
1390 (description "Proxychains-ng is a preloader which hooks calls to sockets
1391 in dynamically linked programs and redirects them through one or more SOCKS or
1393 (home-page "https://github.com/rofl0r/proxychains-ng")
1394 (license license:gpl2+)))
1402 (uri (string-append "http://enet.bespin.org/download/"
1403 "enet-" version ".tar.gz"))
1406 "0w780zc6cy8yq4cskpphx0f91lzh51vh9lwyc5ll8hhamdxgbxlq"))))
1407 (build-system gnu-build-system)
1409 `(("pkg-config" ,pkg-config)))
1410 (synopsis "Network communication layer on top of UDP")
1412 "ENet's purpose is to provide a relatively thin, simple and robust network
1413 communication layer on top of UDP. The primary feature it provides is optional
1414 reliable, in-order delivery of packets. ENet omits certain higher level
1415 networking features such as authentication, server discovery, encryption, or
1416 other similar tasks that are particularly application specific so that the
1417 library remains flexible, portable, and easily embeddable.")
1418 (home-page "http://enet.bespin.org")
1419 (license license:expat)))
1429 (url "https://github.com/yrutschle/sslh.git")
1430 (commit (string-append "v" version))))
1431 (file-name (git-file-name name version))
1433 (base32 "18zhkqlwfh6f5dg1a41a4p7p9g94dgb9nwls1ksy9r5yz174i2fx"))))
1434 (build-system gnu-build-system)
1436 `(;; Test dependencies.
1439 ("perl-conf-libconfig" ,perl-conf-libconfig)
1440 ("perl-io-socket-inet6" ,perl-io-socket-inet6)
1441 ("perl-socket6" ,perl-socket6)
1442 ("psmisc" ,psmisc))) ; for ‘killall’
1444 `(("libcap" ,libcap)
1445 ("libconfig" ,libconfig)
1447 ("tcp-wrappers" ,tcp-wrappers)))
1450 (modify-phases %standard-phases
1451 (delete 'configure) ; no configure script
1452 (add-before 'check 'fix-tests
1455 (("\"/tmp") "$ENV{\"TMPDIR\"} . \"")
1456 ;; The Guix build environment lacks ‘ip6-localhost’.
1457 (("ip6-localhost") "localhost"))
1459 ;; Many of these files are mentioned in the man page. Install them.
1460 (add-after 'install 'install-documentation
1461 (lambda* (#:key outputs #:allow-other-keys)
1462 (let* ((out (assoc-ref outputs "out"))
1463 (doc (string-append out "/share/doc/sslh")))
1464 (install-file "README.md" doc)
1467 (install-file file (string-append doc "/examples")))
1468 (append (find-files "." "\\.cfg")
1469 (find-files "scripts"))))
1471 #:make-flags (list "CC=gcc"
1474 (string-append "PREFIX=" (assoc-ref %outputs "out")))
1475 #:test-target "test"))
1476 (home-page "https://www.rutschle.net/tech/sslh/README.html")
1477 (synopsis "Applicative network protocol demultiplexer")
1479 "sslh is a network protocol demultiplexer. It acts like a switchboard,
1480 accepting connections from clients on one port and forwarding them to different
1481 servers based on the contents of the first received data packet. Detection of
1482 common protocols like HTTP(S), SSL, SSH, OpenVPN, tinc, and XMPP is already
1483 implemented, but any other protocol that matches a regular expression can be
1484 added. sslh's name comes from its original application of serving both SSH and
1485 HTTPS on port 443, allowing SSH connections from inside corporate firewalls
1486 that block port 22.")
1487 (license (list license:bsd-2 ; tls.[ch]
1488 license:gpl2+)))) ; everything else
1490 (define-public iperf
1496 (uri (string-append "http://downloads.es.net/pub/iperf"
1497 "/iperf-" version ".tar.gz"))
1500 "0kvk8d0a3dcxc8fisyprbn01y8akxj4sx8ld5dh508p9dx077vx4"))))
1501 (build-system gnu-build-system)
1502 (synopsis "TCP, UDP and SCTP bandwidth measurement tool")
1504 "iPerf is a tool to measure achievable bandwidth on IP networks. It
1505 supports tuning of various parameters related to timing, buffers and
1506 protocols (TCP, UDP, SCTP with IPv4 and IPv6). For each test it reports
1507 the bandwidth, loss, and other parameters.")
1508 (home-page "http://software.es.net/iperf/")
1509 (license (list license:bsd-3 ; Main distribution.
1510 license:ncsa ; src/{units,iperf_locale,tcp_window_size}.c
1511 license:expat ; src/{cjson,net}.[ch]
1512 license:public-domain)))) ; src/portable_endian.h
1514 (define-public nethogs
1520 (uri (string-append "https://github.com/raboof/nethogs/archive/v"
1524 "1k4x8r7s4dgcb6n2rjn28h2yyij92mwm69phncl3597cdxr954va"))
1525 (file-name (string-append name "-" version ".tar.gz"))))
1526 (build-system gnu-build-system)
1528 `(("libpcap" ,libpcap)
1529 ("ncurses" ,ncurses)))
1531 `(#:make-flags `("CC=gcc"
1532 ,(string-append "PREFIX=" %output))
1534 (modify-phases %standard-phases
1535 (delete 'configure)))) ; No ./configure script.
1536 (home-page "https://github.com/raboof/nethogs")
1537 (synopsis "Per-process bandwidth monitor")
1538 (description "NetHogs is a small 'net top' tool for Linux. Instead of
1539 breaking the traffic down per protocol or per subnet, like most tools do, it
1540 groups bandwidth by process.
1542 NetHogs does not rely on a special kernel module to be loaded. If there's
1543 suddenly a lot of network traffic, you can fire up NetHogs and immediately see
1544 which PID is causing this. This makes it easy to identify programs that have
1545 gone wild and are suddenly taking up your bandwidth.")
1546 (license license:gpl2+)))
1548 (define-public nzbget
1555 (uri (string-append "https://github.com/nzbget/nzbget/archive/v"
1557 (file-name (string-append name "-" version ".tar.gz"))
1560 "0l3dzxz7d7jf6cyach41zirvsx1x0vs4nh053c0miycv7zjyrly7"))
1561 (modules '((guix build utils)))
1563 ;; Reported upstream as <https://github.com/nzbget/nzbget/pull/414>.
1565 (substitute* "daemon/connect/TlsSocket.cpp"
1566 (("gnutls_certificate-verification_status_print")
1567 "gnutls_certificate_verification_status_print"))
1572 (string-append "--with-libcurses-includes="
1573 (assoc-ref %build-inputs "ncurses") "/include")
1574 (string-append "--with-libcurses-libraries="
1575 (assoc-ref %build-inputs "ncurses") "/lib")
1576 (string-append "--with-tlslib=GnuTLS"))))
1577 (build-system gnu-build-system)
1578 (inputs `(("gnutls" ,gnutls)
1579 ("libxml2" ,libxml2)
1580 ("ncurses" ,ncurses)
1582 (native-inputs `(("pkg-config" ,pkg-config)))
1583 (home-page "https://github.com/nzbget/nzbget")
1584 (synopsis "Usenet binary file downloader")
1586 "NZBGet is a binary newsgrabber, which downloads files from Usenet based
1587 on information given in @code{nzb} files. NZBGet can be used in standalone
1588 and in server/client modes. In standalone mode, you pass NZBGet @command{nzb}
1589 files as command-line parameters and it downloads them and exits. NZBGet also
1590 contains a Web interface. Its server can be controlled through remote
1591 procedure calls (RPCs).")
1592 (license license:gpl2+)))
1594 (define-public openvswitch
1596 (name "openvswitch")
1601 "https://www.openvswitch.org/releases/openvswitch-"
1605 "1y78ix5inhhcvicbvyy2ij38am1215nr55vydhab3d4065q45z8k"))))
1606 (build-system gnu-build-system)
1608 '(;; FIXME: many tests fail with:
1610 ;; test -e $OVS_RUNDIR/ovs-vswitchd.pid
1611 ;; ovs-appctl -t ovs-vswitchd exit
1616 "--localstatedir=/var"
1617 "--with-dbdir=/var/lib/openvswitch")
1619 (modify-phases %standard-phases
1623 ;; Don't try to create directories under /var.
1631 ("pkg-config" ,pkg-config)
1632 ("python" ,python-2)
1634 ("util-linux" ,util-linux)))
1636 `(("python-six" ,python2-six)))
1638 `(("libcap-ng" ,libcap-ng)
1639 ("openssl" ,openssl)))
1640 (synopsis "Virtual network switch")
1641 (home-page "https://www.openvswitch.org/")
1643 "Open vSwitch is a multilayer virtual switch. It is designed to enable
1644 massive network automation through programmatic extension, while still
1645 supporting standard management interfaces and protocols (e.g. NetFlow, sFlow,
1646 IPFIX, RSPAN, CLI, LACP, 802.1ag).")
1647 (license ; see debian/copyright for detail
1648 (list license:lgpl2.1 ; xenserver and utilities/bugtool
1649 license:gpl2 ; datapath
1650 license:bsd-2 license:bsd-3
1651 license:asl2.0)))) ; all other
1653 (define-public python-ipy
1659 (uri (pypi-uri "IPy" version))
1662 "08d6kcacj67mvh0b6y765ipccy6gi4w2ndd4v1l3im2qm1cgcarg"))))
1663 (build-system python-build-system)
1664 (home-page "https://github.com/autocracy/python-ipy/")
1665 (synopsis "Python class and tools for handling IP addresses and networks")
1666 (description "The @code{IP} class allows a comfortable parsing and
1667 handling for most notations in use for IPv4 and IPv6 addresses and
1669 (license license:bsd-3)))
1671 (define-public python2-ipy
1672 (package-with-python2 python-ipy))
1674 (define-public speedtest-cli
1676 (name "speedtest-cli")
1682 (url "https://github.com/sivel/speedtest-cli")
1683 (commit (string-append "v" version))))
1684 (file-name (git-file-name name version))
1686 (base32 "1456yly6iym2c9bl6pi4sz8xbw34bm2dxm1vzpydsd6jazwpmy26"))))
1687 (build-system python-build-system)
1688 (home-page "https://github.com/sivel/speedtest-cli")
1689 (synopsis "Internet bandwidth tester")
1691 "Command line interface for testing internet bandwidth using
1693 (license license:asl2.0)))
1695 (define-public tftp-hpa
1701 (uri (string-append "mirror://kernel.org/software/"
1702 "network/tftp/tftp-hpa/tftp-hpa-" version
1706 "12vidchglhyc20znq5wdsbhi9mqg90jnl7qr9qs8hbvaz4fkdvmg"))))
1707 (build-system gnu-build-system)
1708 (arguments `(#:tests? #f)) ; no test target
1709 (synopsis "HPA's tftp client")
1711 "This is a tftp client derived from OpenBSD tftp with some extra options
1712 added and bugs fixed. The source includes readline support but it is not
1713 enabled due to license conflicts between the BSD advertising clause and the GPL.")
1714 (home-page "http://git.kernel.org/cgit/network/tftp/tftp-hpa.git/about/")
1715 ;; Some source files are distributed under a 3-clause BSD license, and
1716 ;; others under a 4-clause BSD license. Refer to the files in the source
1717 ;; distribution for clarification.
1718 (license (list license:bsd-3 license:bsd-4))))
1720 (define-public pidentd
1727 (uri (string-append "https://github.com/ptrrkssn/pidentd/archive/"
1728 "v" version ".tar.gz"))
1729 (file-name (string-append name "-" version ".tar.gz"))
1732 "0y3kd1bkydqkpc1qdff24yswysamsqivvadjy0468qri5730izgc"))))
1733 (build-system gnu-build-system)
1735 `(#:tests? #f)) ; No tests are included
1737 `(("openssl" ,openssl-1.0))) ;for the DES library
1738 (home-page "https://www.lysator.liu.se/~pen/pidentd/")
1739 (synopsis "Small Ident Daemon")
1741 "@dfn{Pidentd} (Peter's Ident Daemon) is a identd, which implements a
1742 identification server. Pidentd looks up specific TCP/IP connections and
1743 returns the user name and other information about the connection.")
1744 (license license:public-domain)))
1746 (define-public spiped
1752 (uri (string-append "https://www.tarsnap.com/spiped/spiped-"
1756 "1r51rdcl7nib1yv3yvgd5alwlkkwmr387brqavaklb0p2bwzixz6"))))
1757 (build-system gnu-build-system)
1759 '(#:test-target "test"
1760 #:make-flags (let* ((out (assoc-ref %outputs "out"))
1761 (bindir (string-append out "/bin"))
1762 (man1dir (string-append out "/share/man/man1")))
1763 (list "CC=gcc" ; It tries to invoke `c99`.
1764 (string-append "BINDIR=" bindir)
1765 (string-append "MAN1DIR=" man1dir)))
1767 (modify-phases %standard-phases
1768 (add-after 'unpack 'patch-command-invocations
1770 (substitute* '("Makefile"
1771 "libcperciva/cpusupport/Build/cpusupport.sh"
1772 "libcperciva/POSIX/posix-cflags.sh"
1773 "libcperciva/POSIX/posix-l.sh")
1774 (("command -p") ""))
1776 (delete 'configure) ; No ./configure script.
1777 (add-after 'install 'install-more-docs
1778 (lambda* (#:key outputs #:allow-other-keys)
1779 (let* ((out (assoc-ref %outputs "out"))
1780 (misc (string-append out "/share/doc/spiped")))
1781 (install-file "DESIGN.md" misc)
1784 `(("procps" ,procps))) ; `ps` is used by the test suite.
1786 `(("openssl" ,openssl)))
1787 (home-page "https://www.tarsnap.com/spiped.html")
1788 (synopsis "Create secure pipes between sockets")
1789 (description "Spiped (pronounced \"ess-pipe-dee\") is a utility for creating
1790 symmetrically encrypted and authenticated pipes between socket addresses, so
1791 that one may connect to one address (e.g., a UNIX socket on localhost) and
1792 transparently have a connection established to another address (e.g., a UNIX
1793 socket on a different system). This is similar to 'ssh -L' functionality, but
1794 does not use SSH and requires a pre-shared symmetric key.")
1795 (license license:bsd-2)))
1797 (define-public quagga
1803 (uri (string-append "mirror://savannah/quagga/quagga-"
1807 "1lsksqxij5f1llqn86pkygrf5672kvrqn1kvxghi169hqf1c0r73"))
1809 (search-patches "quagga-reproducible-build.patch"))))
1810 (build-system gnu-build-system)
1811 (native-inputs `(("pkg-config" ,pkg-config)
1813 ("dejagnu" ,dejagnu)))
1814 (inputs `(("readline" ,readline)
1815 ("c-ares" ,c-ares)))
1816 (synopsis "Routing Software Suite")
1817 (description "Quagga is a routing software suite, providing implementations
1818 of OSPFv2, OSPFv3, RIP v1 and v2, RIPng and BGP-4 for Unix platforms.
1820 The Quagga architecture consists of a core daemon, @command{zebra}, which
1821 acts as an abstraction layer to the underlying Unix kernel and presents the
1822 Zserv API over a Unix or TCP stream to Quagga clients. It is these Zserv
1823 clients which typically implement a routing protocol and communicate routing
1824 updates to the zebra daemon.")
1825 (home-page "https://www.nongnu.org/quagga/")
1826 (license license:gpl2+)))
1828 (define-public thc-ipv6
1829 (let ((revision "0")
1830 (commit "4bb72573e0950ce6f8ca2800a10748477020029e"))
1833 (version (git-version "3.4" revision commit))
1837 (url "https://github.com/vanhauser-thc/thc-ipv6.git")
1839 (file-name (git-file-name name version))
1842 "1x5i6vbsddqc2yks7r1a2fw2fk16qxvd6hpzh1lykjfpkal8fdir"))))
1843 (build-system gnu-build-system)
1845 `(#:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
1846 #:tests? #f ; No test suite.
1848 (modify-phases %standard-phases
1849 (delete 'configure) ; No ./configure script.
1850 (add-before 'build 'patch-paths
1852 (substitute* "Makefile"
1853 (("/bin/echo") "echo"))
1855 (add-after 'install 'install-more-docs
1856 (lambda* (#:key outputs #:allow-other-keys)
1857 (let* ((out (assoc-ref outputs "out"))
1858 (doc (string-append out "/share/thc-ipv6/doc")))
1859 (install-file "README" doc)
1860 (install-file "HOWTO-INJECT" doc)
1862 ;; TODO Add libnetfilter-queue once packaged.
1864 `(("libpcap" ,libpcap)
1865 ("openssl" ,openssl)
1867 (home-page "https://github.com/vanhauser-thc/thc-ipv6")
1868 (synopsis "IPv6 security research toolkit")
1869 (description "The THC IPv6 Toolkit provides command-line tools and a library
1870 for researching IPv6 implementations and deployments. It requires Linux 2.6 or
1871 newer and only works on Ethernet network interfaces.")
1872 ;; AGPL 3 with exception for linking with OpenSSL. See the 'LICENSE' file in
1873 ;; the source distribution for more information.
1874 (license license:agpl3))))
1883 (uri (string-append "https://github.com/tgraf/bmon/releases/download/v"
1884 version "/bmon-" version ".tar.gz"))
1887 "0ylzriv4pwh76344abzl1w219x188gshbycbna35gsyfp09c7z82"))))
1888 (build-system gnu-build-system)
1890 `(("libconfuse" ,libconfuse)
1892 ("ncurses" ,ncurses)))
1894 `(("pkg-config" ,pkg-config)))
1895 (synopsis "Bandwidth monitor")
1896 (description "bmon is a monitoring and debugging tool to capture
1897 networking-related statistics and prepare them visually in a human-friendly
1898 way. It features various output methods including an interactive curses user
1899 interface and a programmable text output for scripting.")
1900 (home-page "https://github.com/tgraf/bmon")
1901 ;; README.md mentions both the 2-clause BSD and expat licenses, but all
1902 ;; the source files only have expat license headers. Upstream has been
1903 ;; contacted for clarification: https://github.com/tgraf/bmon/issues/59
1904 ;; Update the license field when upstream responds.
1905 (license (list license:bsd-2
1908 (define-public libnet
1916 (url "https://github.com/sam-github/libnet")
1917 (commit (string-append "libnet-" version))))
1918 (file-name (git-file-name name version))
1921 "0cy8w4g5rv963v4p6iq3333kxgdddx2lywp70xf62553a25xhhs4"))))
1922 (build-system gnu-build-system)
1925 (modify-phases %standard-phases
1926 (add-after 'unpack 'chdir
1927 (lambda _ (chdir "libnet") #t))
1928 (add-before 'build 'build-doc
1929 (lambda* (#:key make-flags #:allow-other-keys)
1930 (apply invoke "make" "-C" "doc" "doc"
1933 `(("autoconf" ,autoconf)
1934 ("automake" ,automake)
1935 ("libtool" ,libtool)
1936 ("doxygen" ,doxygen)))
1937 (home-page "https://sourceforge.net/projects/libnet-dev/")
1938 (synopsis "Framework for low-level network packet construction")
1940 "Libnet provides a fairly portable framework for network packet
1941 construction and injection. It features portable packet creation interfaces
1942 at the IP layer and link layer, as well as a host of supplementary
1943 functionality. Using libnet, quick and simple packet assembly applications
1944 can be whipped up with little effort.")
1945 (license license:bsd-2)))
1954 (uri (string-append "ftp://ftp.bitwizard.nl/mtr/"
1955 "mtr-" version ".tar.gz"))
1957 (base32 "03gid8g4r6a9r40855s4345xm1bylj2kfqkicjwxpmvvccyng712"))))
1958 (build-system gnu-build-system)
1960 `(("libcap" ,libcap)
1961 ("ncurses" ,ncurses)))
1963 `(#:tests? #f)) ; tests require network access
1964 (home-page "https://www.bitwizard.nl/mtr/")
1965 (synopsis "Network diagnostic tool")
1967 "@acronym{mtr, My TraceRoute} combines the functionality of the
1968 @command{traceroute} and @command{ping} programs in a single network diagnostic
1969 tool. @command{mtr} can use several network protocols to detect intermediate
1970 routers (or @dfn{hops}) between the local host and a user-specified destination.
1971 It then continually measures the response time and packet loss at each hop, and
1972 displays the results in real time.")
1973 (license license:gpl2+)))
1975 (define-public strongswan
1982 (uri (string-append "https://download.strongswan.org/strongswan-"
1983 version ".tar.bz2"))
1985 (base32 "03j3fx357bh89n44a5v9wdc92azdx2d37j7jmlyr4z1kwzdhv446"))))
1986 (build-system gnu-build-system)
1989 (modify-phases %standard-phases
1990 (add-before 'build 'patch-command-file-names
1991 (lambda* (#:key inputs #:allow-other-keys)
1992 (substitute* "src/libstrongswan/utils/process.c"
1994 (string-append (assoc-ref inputs "bash") "/bin/sh")))
1996 (substitute* "src/libstrongswan/tests/suites/test_process.c"
1997 (("/bin/sh") (which "sh"))
1998 (("/bin/echo") (which "echo"))
1999 (("cat") (which "cat")))
2001 (add-before 'check 'set-up-test-environment
2002 (lambda* (#:key inputs #:allow-other-keys)
2003 (setenv "TZDIR" (string-append (assoc-ref inputs "tzdata")
2008 ;; Disable bsd-4 licensed plugins.
2010 "--disable-blowfish")))
2014 ("libgcrypt" ,libgcrypt)
2015 ("openssl" ,openssl)))
2017 `(("coreutils" ,coreutils)
2018 ("tzdata" ,tzdata-for-tests)))
2019 (synopsis "IKEv1/v2 keying daemon")
2020 (description "StrongSwan is an IPsec implementation originally based upon
2021 the FreeS/WAN project. It contains support for IKEv1, IKEv2, MOBIKE, IPv6,
2023 (home-page "https://strongswan.org/")
2027 ;; src/libcharon/plugins/dnscert/*
2028 ;; src/libcharon/plugins/ext_auth/*
2029 ;; src/libcharon/plugins/vici/ruby/*
2030 ;; src/libcharon/plugins/xauth_pam/xauth_pam_listener.[ch]
2034 ;; src/libstrongswan/plugins/sha3/sha3_keccak.c
2035 license:public-domain
2036 ;; src/libstrongswan/plugins/pkcs11/pkcs11.h
2037 (license:non-copyleft
2038 "file://src/libstrongswan/plugins/pkcs11/pkcs11.h"
2039 "pkcs11 contains a unknown permissive license. View the specific
2040 file for more details.")
2041 ;; These files are not included in the
2042 ;; build, they are disabled through
2043 ;; options to ./configure
2045 ;; src/libstrongswan/plugins/blowfish/bf_enc.c
2046 ;; src/libstrongswan/plugins/blowfish/bf_locl.h
2047 ;; src/libstrongswan/plugins/blowfish/bf_pi.h
2048 ;; src/libstrongswan/plugins/blowfish/bf_skey.c
2049 ;; src/libstrongswan/plugins/blowfish/blowfish_crypter.c
2050 ;; src/libstrongswan/plugins/des/des_crypter.c
2053 (define-public amule
2060 (url "https://github.com/amule-project/amule")
2062 (file-name (git-file-name name version))
2065 "010wxm6g9f92x6fympj501zbnjka32rzbx0sk3a2y4zpih5d2nsn"))
2066 ;; Patch for adopting crypto++ >= 6.0.
2067 (patches (search-patches "amule-crypto-6.patch"))))
2068 (build-system gnu-build-system)
2071 (modify-phases %standard-phases
2072 (delete 'bootstrap) ; bootstrap phase runs too early.
2073 (add-after 'patch-source-shebangs 'autogen
2075 (invoke "sh" "autogen.sh")
2089 "--enable-amule-gui"
2090 "--enable-amule-daemon"
2091 "--enable-webserver"
2092 "--with-denoise-level=0")))
2094 `(("autoconf" ,autoconf)
2095 ("automake" ,automake)
2096 ("gettext-minimal" ,gettext-minimal)
2100 ("crypto++" ,crypto++)
2102 ("wxwidgets-gtk2" ,wxwidgets-gtk2)))
2103 (home-page "http://amule.org/")
2104 (synopsis "Peer-to-peer client for the eD2K and Kademlia networks")
2106 "aMule is an eMule-like client for the eD2k and Kademlia peer-to-peer
2107 file sharing networks. It includes a graphical user interface (GUI), a daemon
2108 allowing you to run a client with no graphical interface, and a Web GUI for
2109 remote access. The @command{amulecmd} command allows you to control aMule
2111 (license license:gpl2+)))
2120 (string-append "https://github.com/zeromq/zyre/releases/download/v"
2121 version "/" name "-" version ".tar.gz"))
2124 "0qz2730bng1gs9xbqxhkw88qbsmszgmmrl2g9k6xrg6r3bqvsdc7"))))
2125 (build-system gnu-build-system)
2127 `(;; Ensure the kernel headers are treated as system headers to suppress
2128 ;; harmless -Werror=pedantic warnings.
2129 #:make-flags (list (string-append "C_INCLUDE_PATH="
2130 (assoc-ref %build-inputs "kernel-headers")
2132 (inputs `(("zeromq" ,zeromq)
2134 ("libsodium" ,libsodium)))
2135 (synopsis "Framework for proximity-based peer-to-peer applications")
2136 (description "Zyre provides reliable group messaging over local area
2137 networks using zeromq. It has these key characteristics:
2140 @item Zyre needs no administration or configuration.
2141 @item Peers may join and leave the network at any time.
2142 @item Peers talk to each other without any central brokers or servers.
2143 @item Peers can talk directly to each other.
2144 @item Peers can join groups, and then talk to groups.
2145 @item Zyre is reliable, and loses no messages even when the network is heavily loaded.
2146 @item Zyre is fast and has low latency, requiring no consensus protocols.
2147 @item Zyre is designed for WiFi networks, yet also works well on Ethernet networks.
2149 (home-page "https://github.com/zeromq/zyre")
2150 (license license:mpl2.0)))
2152 (define-public can-utils
2155 (version "2018.02.0")
2159 (url "https://github.com/linux-can/can-utils.git")
2160 (commit (string-append "v" version))))
2161 (file-name (git-file-name name version))
2164 "0r0zkm67bdcmbfypjr7z041d4zp0xzb379dyl8cvhmflh12fd2jb"))))
2165 (build-system gnu-build-system)
2167 `(#:tests? #f ; No tests exist.
2168 #:make-flags (list "CC=gcc"
2169 (string-append "PREFIX="
2170 (assoc-ref %outputs "out")))
2172 (modify-phases %standard-phases
2174 (delete 'configure))))
2175 (home-page "https://github.com/linux-can/can-utils")
2176 (synopsis "CAN utilities")
2177 (description "This package provides CAN utilities in the following areas:
2180 @item Basic tools to display, record, generate and replay CAN traffic
2181 @item CAN access via IP sockets
2182 @item CAN in-kernel gateway configuration
2183 @item CAN bus measurement and testing
2184 @item ISO-TP (ISO15765-2:2016 - this means messages with a body larger than
2186 @item Log file converters
2187 @item Serial Line Discipline configuration for slcan driver
2189 ;; Either BSD-3 or GPL-2 can be used.
2190 (license (list license:bsd-3 license:gpl2))))
2199 (uri (string-append "mirror://sourceforge/asio/asio/"
2200 version " (Stable)/asio-" version ".tar.bz2"))
2202 (base32 "1akray4l3hgahmb92sbvsqg128c7g7s92jrkf1sp1fjnfjrxq9sf"))))
2203 (build-system gnu-build-system)
2206 ("openssl" ,openssl)))
2210 (string-append "--with-boost=" (assoc-ref %build-inputs "boost"))
2211 (string-append "--with-openssl=" (assoc-ref %build-inputs "openssl")))))
2212 (home-page "https://think-async.com/Asio")
2213 (synopsis "C++ library for ASynchronous network I/O")
2214 (description "Asio is a cross-platform C++ library for network and
2215 low-level I/O programming that provides developers with a consistent
2216 asynchronous model using a modern C++ approach.")
2217 (license license:boost1.0)))
2219 (define-public shadowsocks
2220 ;; There are some security fixes after the last release.
2221 (let* ((commit "e332ec93e9c90f1cbee676b022bf2c5d5b7b1239")
2223 (version (git-version "2.8.2" revision commit)))
2225 (name "shadowsocks")
2227 (home-page "https://github.com/shadowsocks/shadowsocks")
2235 "1idd9b4f2pnhcpk1bh030hqg5zq25gkwxd53xi3c0cj242w7sp2j"))
2236 (file-name (git-file-name name version))))
2237 (build-system python-build-system)
2238 (synopsis "Fast tunnel proxy that helps you bypass firewalls")
2240 "This package is a fast tunnel proxy that helps you bypass firewalls.
2244 @item TCP & UDP support
2245 @item User management API
2247 @item Workers and graceful restart
2248 @item Destination IP blacklist
2250 (license license:asl2.0))))
2252 (define-public net-snmp
2258 (uri (string-append "mirror://sourceforge/net-snmp/net-snmp/"
2259 version "/net-snmp-" version ".tar.gz"))
2262 "1pvajzj9gmj56dmwix0ywmkmy2pglh6nny646hkm7ghfhh03bz5j"))
2263 (modules '((guix build utils)))
2266 ;; Drop bundled libraries.
2267 (delete-file-recursively "snmplib/openssl")
2269 (build-system gnu-build-system)
2271 `(#:test-target "test"
2272 ;; XXX: With parallel build enabled, Perl modules may not get linked with
2273 ;; libnetsnmp. See e.g. <https://bugzilla.novell.com/show_bug.cgi?id=819497>.
2274 #:parallel-build? #f
2276 (list (string-append "LDFLAGS=-Wl,-rpath="
2277 (assoc-ref %outputs "out")
2279 "--with-logfile=/var/log/snmpd.log"
2280 (string-append "--with-openssl="
2281 (assoc-ref %build-inputs "openssl")))
2283 (modify-phases %standard-phases
2284 (add-after 'unpack 'patch-tests
2285 (lambda* (#:key inputs #:allow-other-keys)
2286 (substitute* "testing/fulltests/support/simple_TESTCONF.sh"
2288 (string-append "NETSTAT=\"" (which "netstat") "\"")))
2289 (substitute* '("testing/fulltests/default/T065agentextend_simple"
2290 "testing/fulltests/default/T115agentxperl_simple")
2291 (("/usr/bin/env") (which "env")))
2292 (substitute* "testing/fulltests/default/T065agentextend_sh_simple"
2293 (("/bin/sh") (which "sh")))
2294 ;; These tests require network access.
2295 (for-each delete-file
2296 '("testing/fulltests/default/T070com2sec_simple"
2297 "testing/fulltests/default/T071com2sec6_simple"))
2299 (add-after 'unpack 'patch-Makefile.PL
2300 (lambda* (#:key outputs #:allow-other-keys)
2301 (substitute* "Makefile.in"
2302 (("Makefile.PL -NET")
2303 (string-append "Makefile.PL PREFIX="
2304 (assoc-ref outputs "out")
2305 " INSTALLDIRS=site" " NO_PERLLOCAL=1"
2310 ("openssl" ,openssl)
2312 ;; These inputs are only needed for tests.
2314 `(("net-tools" ,net-tools)
2315 ("coreutils" ,coreutils)
2317 (home-page "http://www.net-snmp.org/")
2318 (synopsis "Simple Network Management Protocol library and tools")
2319 (description "The @dfn{Simple Network Management Protocol} (SNMP) is a
2320 widely used protocol for monitoring the health and welfare of network
2321 equipment (e.g. routers), computer equipment and even devices like UPSs.
2322 Net-SNMP is a suite of applications used to implement SNMP v1, SNMP v2c and
2323 SNMP v3 using both IPv4 and IPv6.")
2324 ;; This only affects OpenBSD
2325 ;; https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2015-8100
2326 (properties `((lint-hidden-cve . ("CVE-2015-8100"))))
2327 (license (list license:bsd-3
2328 (license:non-copyleft
2329 "http://www.net-snmp.org/about/license.html"
2330 "CMU/UCD copyright notice")))))
2332 (define-public ubridge
2340 (url "https://github.com/GNS3/ubridge.git")
2341 (commit (string-append "v" version))))
2342 (file-name (git-file-name name version))
2344 (base32 "1bind7ylgxs743vfdmpdrpp4iamy461bc3i7nxza91kj7hyyjz6h"))))
2345 (build-system gnu-build-system)
2347 `(#:tests? #f ; no tests
2348 #:make-flags '("CC=gcc")
2350 (modify-phases %standard-phases
2351 (delete 'configure) ; no configure script
2352 (add-before 'install 'set-bindir
2353 (lambda* (#:key inputs outputs #:allow-other-keys)
2354 (let ((bin (string-append (assoc-ref outputs "out")
2357 (substitute* "Makefile"
2358 (("\\$\\(BINDIR\\)") bin)
2359 (("\tsetcap cap_net.*$") "")))
2362 `(("libpcap" ,libpcap)))
2363 (home-page "https://github.com/GNS3/ubridge/")
2364 (synopsis "Bridge for UDP tunnels, Ethernet, TAP and VMnet interfaces")
2365 (description "uBridge is a simple program to create user-land bridges
2366 between various technologies. Currently, bridging between UDP tunnels,
2367 Ethernet and TAP interfaces is supported. Packet capture is also supported.")
2368 (license license:gpl3+)))
2370 (define-public hcxtools
2378 (url "https://github.com/ZerBea/hcxtools.git")
2381 (base32 "0k2qlq9hz5zc21nyc6yrnfqzga7hydn5mm0x3rpl2fhkwl81lxcn"))
2382 (file-name (git-file-name name version))))
2383 (build-system gnu-build-system)
2386 ("libpcap" ,libpcap)
2387 ("openssl" ,openssl)
2392 (string-append "INSTALLDIR=" (assoc-ref %outputs "out") "/bin"))
2393 #:tests? #f ; no test suite
2395 (modify-phases %standard-phases
2397 (add-after 'unpack 'set-environment
2398 (lambda* (#:key inputs #:allow-other-keys)
2399 (setenv "C_INCLUDE_PATH"
2400 (string-append (assoc-ref inputs "curl") "/include:"
2401 (assoc-ref inputs "libpcap") "/include:"
2402 (assoc-ref inputs "openssl") "/include:"
2403 (assoc-ref inputs "zlib") "/include"))
2405 (home-page "https://github.com/ZerBea/hcxtools")
2406 (synopsis "Capture wlan traffic to hashcat and John the Ripper")
2408 "This package contains a small set of tools to capture and convert
2409 packets from wireless devices for use with hashcat or John the Ripper.")
2410 (license license:expat)))
2412 (define-public hcxdumptool
2414 (name "hcxdumptool")
2420 (url "https://github.com/ZerBea/hcxdumptool.git")
2423 (base32 "0pg1pvg029gm4rj0fj5kcsjb32hixgn4cxsgiir7spkmacf1qm4q"))
2424 (file-name (git-file-name name version))))
2425 (build-system gnu-build-system)
2429 (string-append "INSTALLDIR=" (assoc-ref %outputs "out") "/bin"))
2430 #:tests? #f ; no test suite
2432 (modify-phases %standard-phases
2433 (delete 'configure))))
2434 (home-page "https://github.com/ZerBea/hcxdumptool")
2435 (synopsis "Small tool to capture packets from wlan devices")
2437 "Small tool to capture packets from WLAN devices. After capturing,
2438 upload the \"uncleaned\" cap to @url{https://wpa-sec.stanev.org/?submit} to
2439 see if the access point or the client is vulnerable to a dictionary attack.
2440 Convert the cap file to hccapx format and/or to WPA-PMKID-PBKDF2
2441 hashline (16800) with @command{hcxpcaptool} from the @code{hcxtools} package
2442 and check if the WLAN key or the master key was transmitted unencrypted.")
2443 (license license:expat)))
2445 (define-public dante
2452 (uri (string-append "https://www.inet.no/dante/files/dante-"
2456 "19rqzj167q73ag20zxpvswhkk0bj56r5maf83v5016sw7vrcz5sc"))))
2457 (build-system gnu-build-system)
2459 ;; XXX: The dynamic socks library doesn't work with 'libc.so' (GNU ld
2460 ;; script). When preloading is enabled, 'sockd' failed with:
2461 ;; … Failed to open library "libc.so": …: invalid ELF header
2462 '(#:configure-flags '("--disable-preload")))
2463 (home-page "https://www.inet.no/dante/")
2464 (synopsis "SOCKS server and client")
2465 (description "Dante is a SOCKS client and server implementation. It can
2466 be installed on a machine with access to an external TCP/IP network and will
2467 allow all other machines, without direct access to that network, to be relayed
2468 through the machine the Dante server is running on. The external network will
2469 never see any machines other than the one Dante is running on.")
2470 (license (license:non-copyleft "file://LICENSE"))))
2472 (define-public restbed
2473 (let ((commit "6eb385fa9051203f28bf96cc1844bbb5a9a6481f"))
2476 (version (git-version "4.6" "1" commit))
2481 (url "https://github.com/Corvusoft/restbed/")
2483 (file-name (string-append name "-" version ".tar.gz"))
2485 (base32 "0k60i5drklqqrb4khb25fzkgz9y0sncxf1sp6lh2bm1m0gh0661n"))))
2486 (build-system cmake-build-system)
2489 ("catch" ,catch-framework)
2490 ("openssl" ,openssl)))
2494 '("-DBUILD_TESTS=NO"
2495 "-DBUILD_EXAMPLES=NO"
2497 "-DBUILD_SHARED=NO")
2499 (modify-phases %standard-phases
2500 (add-after 'unpack 'apply-patches-and-fix-paths
2501 (lambda* (#:key inputs #:allow-other-keys)
2502 (let ((asio (assoc-ref inputs "asio"))
2503 (catch (assoc-ref inputs "catch"))
2504 (openssl (assoc-ref inputs "openssl")))
2505 (substitute* "cmake/Findasio.cmake"
2506 (("(find_path\\( asio_INCLUDE asio\\.hpp HINTS ).*$" all begin)
2507 (string-append begin " \"" asio "/include\" )")))
2508 (substitute* "cmake/Findcatch.cmake"
2509 (("(find_path\\( catch_INCLUDE catch\\.hpp HINTS ).*$" all begin)
2510 (string-append begin " \"" catch "/include\" )")))
2511 (substitute* "cmake/Findopenssl.cmake"
2512 (("(find_library\\( ssl_LIBRARY ssl ssleay32 HINTS ).*$" all begin)
2513 (string-append begin " \"" openssl "/lib\" )"))
2514 (("(find_library\\( crypto_LIBRARY crypto libeay32 HINTS ).*$" all begin)
2515 (string-append begin " \"" openssl "/lib\" )"))
2516 (("(find_path\\( ssl_INCLUDE openssl/ssl\\.h HINTS ).*$" all begin)
2517 (string-append begin " \"" openssl "/include\" )")))))))))
2518 (synopsis "Asynchronous RESTful functionality to C++11 applications")
2519 (description "Restbed is a comprehensive and consistent programming
2520 model for building applications that require seamless and secure
2521 communication over HTTP.")
2522 (home-page "https://github.com/Corvusoft/restbed")
2523 (license license:agpl3+))))
2525 (define-public restinio
2532 (url "https://github.com/Stiffstream/restinio.git")
2533 (commit (string-append "v." version))))
2534 (file-name (git-file-name name version))
2537 "1c25kpx652nng8m1sqf5an2c3c4g3k6zj85mkkaxzk88iwfzq1s8"))))
2538 (build-system cmake-build-system)
2539 (inputs ; TODO: Need to force-keep references on some inputs, e.g. boost.
2541 ("catch2" ,catch-framework2)
2542 ("openssl" ,openssl)
2546 ("sobjectizer" ,sobjectizer)))
2550 ("http-parser", http-parser)))
2552 `(#:configure-flags '("-DRESTINIO_INSTALL=on")
2553 #:tests? #f ; TODO: The tests are called from the root CMakelist, need RESTINIO_TEST=on.
2555 (modify-phases %standard-phases
2556 (add-after 'unpack 'change-directory
2558 (chdir "dev/restinio")
2560 (home-page "https://stiffstream.com/en/products/restinio.html")
2561 (synopsis "C++14 library that gives you an embedded HTTP/Websocket server")
2562 (description "RESTinio is a header-only C++14 library that gives you an embedded
2563 HTTP/Websocket server. It is based on standalone version of ASIO
2564 and targeted primarily for asynchronous processing of HTTP-requests.")
2565 (license license:bsd-3)))
2567 (define-public opendht
2570 (version "2.0.0beta2")
2574 (url "https://github.com/savoirfairelinux/opendht.git")
2576 (file-name (git-file-name name version))
2579 "02ix0rvvyhq22gd5djcq84qz08ji7ln93faf23b27zjzni2klzv5"))))
2580 ;; Since 2.0, the gnu-build-system does not seem to work anymore, upstream bug?
2581 (build-system cmake-build-system)
2583 `(("gnutls" ,gnutls)
2585 ("readline" ,readline)
2586 ("jsoncpp" ,jsoncpp)
2587 ("openssl" ,openssl)
2590 `(("argon2" ,argon2) ; TODO: Needed for the pkg-config .pc file to work?
2591 ("msgpack" ,msgpack))) ;included in several installed headers
2593 `(("autoconf" ,autoconf)
2594 ("pkg-config" ,pkg-config)
2595 ("restinio" ,restinio)
2596 ("automake" ,automake)
2597 ("libtool" ,libtool)
2598 ("cppunit" ,cppunit)))
2600 `(#:tests? #f ; Tests require network connection.
2602 '(;; "-DOPENDHT_TESTS=on"
2603 "-DOPENDHT_TOOLS=off"
2604 "-DOPENDHT_PYTHON=off"
2605 "-DOPENDHT_PROXY_SERVER=on"
2606 "-DOPENDHT_PUSH_NOTIFICATIONS=on"
2607 "-DOPENDHT_PROXY_SERVER_IDENTITY=on"
2608 "-DOPENDHT_PROXY_CLIENT=on")))
2609 (home-page "https://github.com/savoirfairelinux/opendht/")
2610 (synopsis "Distributed Hash Table (DHT) library")
2611 (description "OpenDHT is a Distributed Hash Table (DHT) library. It may
2612 be used to manage peer-to-peer network connections as needed for real time
2614 (license license:gpl3+)))
2616 (define-public frrouting
2622 (uri (string-append "https://github.com/FRRouting/frr/releases/"
2623 "download/frr-" version "/frr-" version
2627 "0xfrvi62w8qlh46f504ka0skb7pm0g0p8vmdng4w90gsbirlzpdd"))))
2628 (build-system gnu-build-system)
2630 `(("c-ares" ,c-ares)
2632 ("readline" ,readline)))
2635 ("pkg-config" ,pkg-config)
2636 ("python" ,python-wrapper)
2637 ("python-pytest" ,python-pytest)))
2638 (home-page "https://frrouting.org/")
2639 (synopsis "IP routing protocol suite")
2640 (description "FRRouting (FRR) is an IP routing protocol suite which includes
2641 protocol daemons for BGP, IS-IS, LDP, OSPF, PIM, and RIP. ")
2642 (license license:gpl2+)))
2651 (url "https://git.kernel.org/pub/scm/network/wireless/iwd.git")
2653 (file-name (git-file-name name version))
2656 "001dikinsa6kshwscjbvwipavzwpqnpvx9fpshcn63gbvbhyd393"))))
2657 (build-system gnu-build-system)
2660 ("libtool" ,libtool)
2662 ("readline" ,readline)))
2664 `(("asciidoc" ,asciidoc)
2665 ("autoconf" ,autoconf)
2666 ("automake" ,automake)
2667 ("pkgconfig" ,pkg-config)
2669 ("openssl" ,openssl)))
2672 (let ((dbus (assoc-ref %outputs "out")))
2673 (list "--disable-systemd-service"
2674 "--enable-external-ell"
2679 "--localstatedir=/var"
2680 (string-append "--with-dbus-datadir=" dbus "/share/")
2681 (string-append "--with-dbus-busdir="
2682 dbus "/share/dbus-1/system-services")))
2684 (modify-phases %standard-phases
2685 (add-before 'bootstrap 'pre-bootstrap
2687 (substitute* "Makefile.am"
2688 ;; Test disabled because it needs the kernel module
2689 ;; 'pkcs8_key_parser' loaded.
2690 (("unit\\/test-eapol.*? ") "")
2691 ;; Don't try to 'mkdir /var'.
2692 (("\\$\\(MKDIR_P\\) -m 700") "true"))
2694 (home-page "https://git.kernel.org/pub/scm/network/wireless/iwd.git/")
2695 (synopsis "Internet Wireless Daemon")
2696 (description "iwd is a wireless daemon for Linux that aims to replace WPA
2697 Supplicant. It optimizes resource utilization by not depending on any external
2698 libraries and instead utilizing features provided by the Linux kernel to the
2699 maximum extent possible.")
2700 (license license:lgpl2.1+)))
2702 (define-public batctl
2709 (uri (string-append "https://downloads.open-mesh.org/batman/releases/batman-adv-"
2710 version "/batctl-" version ".tar.gz"))
2712 (base32 "1b9w4636dq8m38nzr8j0v0j3b0vdsw84c58c2isc33h66dx8brgz"))))
2714 `(("libnl" ,libnl)))
2716 `(("pkg-config" ,pkg-config)))
2717 (build-system gnu-build-system)
2720 ;; Batctl only has a makefile. Thus we disable tests and
2721 ;; configuration, passing in a few make-flags.
2722 #:phases (modify-phases %standard-phases (delete 'configure))
2724 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
2725 (string-append "PKG_CONFIG=" (assoc-ref %build-inputs "pkg-config")
2728 (home-page "https://www.open-mesh.org/projects/batman-adv/wiki/Wiki")
2729 (synopsis "Management tool for the mesh networking BATMAN protocol")
2730 (description "This package provides a control tool for the
2731 B.A.T.M.A.N. mesh networking routing protocol provided by the Linux kernel
2732 module @code{batman-adv}, for Layer 2.")
2733 (license license:gpl2+)))
2735 (define-public pagekite
2738 (version "1.5.0.191126")
2743 (url "https://github.com/pagekite/PyPagekite.git")
2744 (commit (string-append "v" version))))
2745 (file-name (git-file-name name version))
2747 (base32 "0mncfjfrr13sm84g5z49qxg5cy791h5qxphjsl77x91zs3m36c8l"))))
2748 (build-system python-build-system)
2751 (modify-phases %standard-phases
2752 (add-after 'install 'install-man-page
2753 (lambda* (#:key inputs outputs #:allow-other-keys)
2754 (let* ((out (assoc-ref outputs "out"))
2755 (man (string-append out "/share/man")))
2757 (string-append "PYTHONPATH=" (getenv "PYTHONPATH"))
2759 (install-file "doc/pagekite.1" (string-append man "/man1"))
2762 `(("python-six" ,python-six)
2763 ("python-socksipychain" ,python-socksipychain)))
2764 (home-page "https://pagekite.net/")
2765 (synopsis "Make localhost servers publicly visible")
2767 "PageKite implements a tunneled reverse proxy which makes it easy to make
2768 a service (such as an HTTP or SSH server) on localhost visible to the wider
2769 Internet, even behind NAT or restrictive firewalls. A managed front-end relay
2770 service is available at @url{https://pagekite.net/}, or you can run your own.")
2771 (license license:agpl3+)))
2773 (define-public ipcalc
2779 (uri (string-append "http://jodies.de/ipcalc-archive/"
2780 name "-" version ".tar.gz"))
2783 "12if9sm8h2ac0pgwkw835cgyqjxm6h27k4kfn2vfas9krrqwbafx"))))
2784 (inputs `(("perl" ,perl)
2787 ("tarball" ,source)))
2788 (build-system trivial-build-system) ;no Makefile.PL
2790 `(#:modules ((guix build utils))
2793 (use-modules (guix build utils))
2794 (use-modules (srfi srfi-1))
2795 (let* ((source (assoc-ref %build-inputs "source"))
2796 (perl (string-append (assoc-ref %build-inputs "perl")
2798 (tar (assoc-ref %build-inputs "tar"))
2799 (gz (assoc-ref %build-inputs "gzip"))
2800 (out (assoc-ref %outputs "out"))
2801 (bin (string-append out "/bin"))
2802 (doc (string-append out "/share/doc/ipcalc")))
2803 (setenv "PATH" (string-append gz "/bin"))
2804 (invoke (string-append tar "/bin/tar") "xvf" source)
2805 (chdir (string-append ,name "-" ,version))
2807 (install-file "ipcalc" bin)
2808 (patch-shebang (string-append bin "/ipcalc") (list perl))
2810 (synopsis "Simple IP network calculator")
2811 (description "ipcalc takes an IP address and netmask and calculates the
2812 resulting broadcast, network, Cisco wildcard mask, and host range. By giving
2813 a second netmask, you can design subnets and supernets. It is also intended
2814 to be a teaching tool and presents the subnetting results as
2815 easy-to-understand binary values.")
2816 (home-page "http://jodies.de/ipcalc")
2817 (license license:gpl2+)))
2826 (uri "mirror://sourceforge/vde/vde2/2.3.2/vde2-2.3.2.tar.gz")
2828 (base32 "14xga0ib6p1wrv3hkl4sa89yzjxv7f1vfqaxsch87j6scdm59pr2"))))
2829 (build-system gnu-build-system)
2831 `(#:parallel-build? #f)) ; Build fails if #t.
2833 `(("python" ,python)
2834 ("libpcap" ,libpcap)
2835 ("openssl" ,openssl-1.0))) ; Build fails with 1.1.
2836 (home-page "https://github.com/virtualsquare/vde-2")
2837 (synopsis "Virtual Distributed Ethernet")
2838 (description "VDE is a set of programs to provide virtual software-defined
2839 Ethernet network interface controllers across multiple virtual or
2840 physical, local or remote devices. The VDE architecture provides
2841 virtual counterparts to hardware components such as switches and
2843 (license (list license:gpl2
2844 license:lgpl2.1 ; libvdeplug
2845 (license:non-copyleft ; slirpvde
2846 "file://COPYING.slirpvde"
2847 "See COPYING.slirpvde in the distribution.")))))