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 Tobias Geerinckx-Rice <me@tobias.gr>
8 ;;; Copyright © 2016 John Darrington <jmd@gnu.org>
9 ;;; Copyright © 2016, 2017, 2018 Nicolas Goaziou <mail@nicolasgoaziou.fr>
10 ;;; Copyright © 2016 Eric Bavier <bavier@member.fsf.org>
11 ;;; Copyright © 2016, 2017 Nils Gillmann <ng0@n0.is>
12 ;;; Copyright © 2016, 2017 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 Efraim Flashner <efraim@flashner.co.il>
18 ;;; Copyright © 2017, 2018 Rutger Helling <rhelling@mykolab.com>
19 ;;; Copyright © 2017 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>
29 ;;; This file is part of GNU Guix.
31 ;;; GNU Guix is free software; you can redistribute it and/or modify it
32 ;;; under the terms of the GNU General Public License as published by
33 ;;; the Free Software Foundation; either version 3 of the License, or (at
34 ;;; your option) any later version.
36 ;;; GNU Guix is distributed in the hope that it will be useful, but
37 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
38 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
39 ;;; GNU General Public License for more details.
41 ;;; You should have received a copy of the GNU General Public License
42 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
44 (define-module (gnu packages networking)
45 #:use-module ((guix licenses) #:prefix license:)
46 #:use-module (guix packages)
47 #:use-module (guix download)
48 #:use-module (guix git-download)
49 #:use-module (guix build-system cmake)
50 #:use-module (guix build-system glib-or-gtk)
51 #:use-module (guix build-system gnu)
52 #:use-module (guix build-system perl)
53 #:use-module (guix build-system python)
54 #:use-module (gnu packages)
55 #:use-module (gnu packages admin)
56 #:use-module (gnu packages adns)
57 #:use-module (gnu packages algebra)
58 #:use-module (gnu packages audio)
59 #:use-module (gnu packages autotools)
60 #:use-module (gnu packages base)
61 #:use-module (gnu packages bison)
62 #:use-module (gnu packages boost)
63 #:use-module (gnu packages check)
64 #:use-module (gnu packages code)
65 #:use-module (gnu packages compression)
66 #:use-module (gnu packages crypto)
67 #:use-module (gnu packages curl)
68 #:use-module (gnu packages databases)
69 #:use-module (gnu packages dejagnu)
70 #:use-module (gnu packages documentation)
71 #:use-module (gnu packages flex)
72 #:use-module (gnu packages gettext)
73 #:use-module (gnu packages glib)
74 #:use-module (gnu packages gnome)
75 #:use-module (gnu packages gnupg)
76 #:use-module (gnu packages gtk)
77 #:use-module (gnu packages image)
78 #:use-module (gnu packages libidn)
79 #:use-module (gnu packages linux)
80 #:use-module (gnu packages lua)
81 #:use-module (gnu packages multiprecision)
82 #:use-module (gnu packages kerberos)
83 #:use-module (gnu packages ncurses)
84 #:use-module (gnu packages pcre)
85 #:use-module (gnu packages perl)
86 #:use-module (gnu packages perl-check)
87 #:use-module (gnu packages pkg-config)
88 #:use-module (gnu packages python)
89 #:use-module (gnu packages qt)
90 #:use-module (gnu packages readline)
91 #:use-module (gnu packages ssh)
92 #:use-module (gnu packages textutils)
93 #:use-module (gnu packages tls)
94 #:use-module (gnu packages valgrind)
95 #:use-module (gnu packages wm)
96 #:use-module (gnu packages wxwidgets)
97 #:use-module (gnu packages xml)
98 #:use-module (ice-9 match))
100 ;; The gnu.org ‘home’ for this GNU project is a directory listing with 1.6.0 as
101 ;; the latest version. The author's git repository, mentioned in the 1.6.0
102 ;; README and otherwise legit-looking, contains a proper 1.7.0 release tarball
103 ;; with many OUI updates. Use it, even though it's also several years old now.
104 (define-public macchanger
111 (uri (string-append "https://github.com/alobbs/macchanger/"
112 "releases/download/" version "/"
113 name "-" version ".tar.gz"))
115 (base32 "1gs5m0jxyprdp00w2qkbnaqm3ilkjz0q1gqdg4nzdm8g4xy73qns"))))
116 (build-system gnu-build-system)
117 (home-page "https://www.gnu.org/software/macchanger/")
118 (synopsis "Viewing and manipulating MAC addresses of network interfaces")
119 (description "GNU MAC Changer is a utility for viewing and changing MAC
120 addresses of networking devices. New addresses may be set explicitly or
121 randomly. They can include MAC addresses of the same or other hardware vendors
122 or, more generally, MAC addresses of the same category of hardware.")
123 (license license:gpl2+)))
125 (define-public miredo
131 (uri (string-append "http://www.remlab.net/files/miredo/miredo-"
135 "0j9ilig570snbmj48230hf7ms8kvcwi2wblycqrmhh85lksd49ps"))))
136 (build-system gnu-build-system)
139 (modify-phases %standard-phases
140 ;; The checkconf test in src/ requires network access.
142 'check 'disable-checkconf-test
144 (substitute* "src/Makefile"
145 (("^TESTS = .*") "TESTS = \n")))))))
146 (home-page "http://www.remlab.net/miredo/")
147 (synopsis "Teredo IPv6 tunneling software")
149 "Miredo is an implementation (client, relay, server) of the Teredo
150 specification, which provides IPv6 Internet connectivity to IPv6 enabled hosts
151 residing in IPv4-only networks, even when they are behind a NAT device.")
152 (license license:gpl2+)))
161 "http://www.dest-unreach.org/socat/download/socat-"
165 "0lcj6zpra33xhgvhmz9l3cqz10v8ybafb8dd1yqkwf1rhy01ymp3"))))
166 (build-system gnu-build-system)
167 (arguments '(#:tests? #f)) ;no 'check' phase
168 (inputs `(("openssl" ,openssl)))
169 (home-page "http://www.dest-unreach.org/socat/")
171 "Open bidirectional communication channels from the command line")
173 "socat is a relay for bidirectional data transfer between two independent
174 data channels---files, pipes, devices, sockets, etc. It can create
175 \"listening\" sockets, named pipes, and pseudo terminals.
177 socat can be used, for instance, as TCP port forwarder, as a shell interface
178 to UNIX sockets, IPv6 relay, for redirecting TCP oriented programs to a serial
179 line, to logically connect serial lines on different computers, or to
180 establish a relatively secure environment (su and chroot) for running client
181 or server shell scripts with network connections.")
182 (license license:gpl2)))
184 (define-public tcp-wrappers
186 (name "tcp-wrappers")
191 "ftp://ftp.porcupine.org/pub/security/tcp_wrappers_"
195 "0p9ilj4v96q32klavx0phw9va21fjp8vpk11nbh6v2ppxnnxfhwm"))))
196 (build-system gnu-build-system)
199 (modify-phases %standard-phases
200 (delete 'configure) ; there is no configure script
201 (delete 'check) ; there are no tests
205 ;; Upstream doesn't generate a shared library. So we have to do it.
206 (setenv "CC" "gcc -fno-builtin -fPIC")
207 (substitute* "Makefile"
208 (("^(all[^\n]*)" line) (string-append line " libwrap.so\n
209 libwrap.so: $(LIB_OBJ)\n
210 \tgcc -shared $^ -o $@\n")))
211 ;; Deal with some gcc breakage.
212 (substitute* "percent_m.c"
213 (("extern char .sys_errlist.*;") ""))
214 (substitute* "scaffold.c"
215 (("extern char .malloc.*;") ""))
216 ;; This, believe it or not, is the recommended way to build!
217 (zero? (system* "make" "REAL_DAEMON_DIR=/etc" "linux"))))
218 ;; There is no make install stage, so we have to do it ourselves.
221 (let ((out (assoc-ref %outputs "out"))
222 (man-pages `("hosts_access.3"
230 (headers `("tcpd.h"))
231 (bins `("safe_finger"
238 (install-file x (string-append out "/include")))
242 (install-file x (string-append out "/share/man/man"
243 (string-take-right x 1))))
247 (install-file x (string-append out "/lib/")))
251 (install-file x (string-append out "/bin/")))
253 (home-page "http://www.porcupine.org")
254 (synopsis "Monitor and filter incoming requests for network services")
255 (description "With this package you can monitor and filter incoming requests for
256 network services. It includes a library which may be used by daemons to
257 transparently check connection attempts against an access control list.")
258 (license (license:non-copyleft "file://DISCLAIMER"
259 "See the file DISCLAIMER in the distribution."))))
262 (define-public zeromq
268 (uri (string-append "http://download.zeromq.org/zeromq-"
272 "00vvwhgcdr1lva2pavicvy92iad0hj8cf71n702hv6blw1kjj2z0"))))
273 (build-system gnu-build-system)
274 (home-page "http://zeromq.org")
275 (synopsis "Library for message-based applications")
277 "The 0MQ lightweight messaging kernel is a library which extends the
278 standard socket interfaces with features traditionally provided by specialized
279 messaging middle-ware products. 0MQ sockets provide an abstraction of
280 asynchronous message queues, multiple messaging patterns, message
281 filtering (subscriptions), seamless access to multiple transport protocols and
283 (license license:lgpl3+)))
292 "https://github.com/zeromq/" name
293 "/releases/download/v" version
294 "/" name "-" version ".tar.gz"))
297 "1h5hrcsc30fcwb032vy5gxkq4j4vv1y4dj460rfs1hhxi0cz83zh"))))
298 (build-system gnu-build-system)
300 '(;; TODO Tests fail for some reason:
302 ;; * zbeacon: OK (skipping test, no UDP broadcasting)
303 ;; E: (czmq_selftest) 18-02-24 16:25:52 No broadcast interface found, (ZSYS_INTERFACE=lo)
304 ;; make[2]: *** [Makefile:2245: check-local] Segmentation fault
305 ;; make[2]: Leaving directory '/tmp/guix-build-czmq-4.1.0.drv-0/czmq-4.1.0'
306 ;; make[1]: *** [Makefile:2032: check-am] Error 2
307 ;; make[1]: Leaving directory '/tmp/guix-build-czmq-4.1.0.drv-0/czmq-4.1.0'
308 ;; make: *** [Makefile:1588: check-recursive] Error 1
309 ;; phase `check' failed after 19.4 seconds
311 #:configure-flags '("--enable-drafts")))
313 `(("zeromq" ,zeromq)))
314 (home-page "http://zeromq.org")
315 (synopsis "High-level C bindings for ØMQ")
317 "czmq provides bindings for the ØMQ core API that hides the differences
318 between different versions of ØMQ.")
319 (license license:mpl2.0)))
321 (define-public cppzmq
323 (commit "d9f0f016c07046742738c65e1eb84722ae32d7d4"))
326 (version (string-append "4.2.2-" revision "."
327 (string-take commit 7)))
331 (url "https://github.com/zeromq/cppzmq")
335 "1gmqlm00y6xpa5m6d4ajq3ww63n2w7h4sy997wj81vcqmqx45b1f"))
336 (file-name (string-append name "-" version "-checkout"))))
337 (build-system cmake-build-system)
338 (arguments '(#:tests? #f)) ; No tests.
340 `(("pkg-config" ,pkg-config)))
342 `(("zeromq" ,zeromq)))
343 (home-page "http://zeromq.org")
344 (synopsis "C++ bindings for the ØMQ messaging library")
346 "This package provides header-only C++ bindings for ØMQ. The header
347 files contain direct mappings of the abstractions provided by the ØMQ C API.")
348 (license license:expat))))
350 (define-public librdkafka
357 "https://github.com/edenhill/librdkafka/archive/"
359 (file-name (string-append name "-" version ".tar.gz"))
362 "10ldx7g7ymmg17snzx78vy4n8ma1rjx0agzi34g15j2fk867xmas"))))
363 (build-system gnu-build-system)
366 (modify-phases %standard-phases
368 ;; its custom configure script doesn't understand 'CONFIG_SHELL'.
369 (lambda* (#:key outputs #:allow-other-keys)
370 (let ((out (assoc-ref outputs "out")))
371 ;; librdkafka++.so lacks RUNPATH for librdkafka.so
373 (string-append "-Wl,-rpath=" out "/lib"))
374 (zero? (system* "./configure"
375 (string-append "--prefix=" out)))))))))
377 `(("python" ,python-wrapper)))
379 `(("zlib" ,zlib))) ; in the Libs.private field of rdkafka.pc
380 (home-page "https://github.com/edenhill/librdkafka")
381 (synopsis "Apache Kafka C/C++ client library")
383 "librdkafka is a C library implementation of the Apache Kafka protocol,
384 containing both Producer and Consumer support.")
385 (license license:bsd-2)))
387 (define-public libndp
393 (uri (string-append "http://libndp.org/files/"
394 name "-" version ".tar.gz"))
397 "1dlinhl39va00v55qygjc9ap77yqf7xvn4rwmvdr49xhzzxhlj1c"))))
398 (build-system gnu-build-system)
399 (home-page "http://libndp.org/")
400 (synopsis "Library for Neighbor Discovery Protocol")
402 "libndp contains a library which provides a wrapper for IPv6 Neighbor
403 Discovery Protocol. It also provides a tool named ndptool for sending and
404 receiving NDP messages.")
405 (license license:lgpl2.1+)))
407 (define-public ethtool
413 (uri (string-append "mirror://kernel.org/software/network/"
414 name "/" name "-" version ".tar.xz"))
417 "00ss07jc7p276d83f6jpafgwyc9yiribciyqcgx9j86v49kpm5py"))))
418 (build-system gnu-build-system)
419 (home-page "https://www.kernel.org/pub/software/network/ethtool/")
420 (synopsis "Display or change Ethernet device settings")
422 "ethtool can be used to query and change settings such as speed,
423 auto-negotiation and checksum offload on many network devices, especially
425 (license license:gpl2)))
427 (define-public ifstatus
433 (uri (string-append "mirror://sourceforge/ifstatus/ifstatus/"
434 "ifstatus%20v" version "/ifstatus-v"
438 "045cbsq9ps32j24v8y5hpyqxnqn9mpaf3mgvirlhgpqyb9jsia0c"))
439 (modules '((guix build utils)))
442 (substitute* "Main.h"
443 (("#include <stdio.h>")
444 "#include <stdio.h>\n#include <stdlib.h>"))
446 (build-system gnu-build-system)
448 '(#:tests? #f ; no "check" target
450 (modify-phases %standard-phases
451 (delete 'configure) ; no configure script
453 (lambda* (#:key outputs #:allow-other-keys)
454 (let* ((out (assoc-ref outputs "out"))
455 (bin (string-append out "/bin")))
457 (copy-file "ifstatus"
458 (string-append bin "/ifstatus"))))))))
459 (inputs `(("ncurses" ,ncurses)))
460 (home-page "http://ifstatus.sourceforge.net/graphic/index.html")
461 (synopsis "Text based network interface status monitor")
463 "IFStatus is a simple, easy-to-use program for displaying commonly
464 needed/wanted real-time traffic statistics of multiple network
465 interfaces, with a simple and efficient view on the command line. It is
466 intended as a substitute for the PPPStatus and EthStatus projects.")
467 (license license:gpl2+)))
475 (uri (string-append "mirror://sourceforge/nload/nload/" version
476 "/nload-" version ".tar.gz"))
479 "1rb9skch2kgqzigf19x8bzk211jdfjfdkrcvaqyj89jy2pkm3h61"))))
480 (build-system gnu-build-system)
481 (inputs `(("ncurses" ,ncurses)))
482 (home-page "http://www.roland-riegel.de/nload/")
483 (synopsis "Realtime console network usage monitor")
485 "Nload is a console application which monitors network traffic and
486 bandwidth usage in real time. It visualizes the in- and outgoing traffic using
487 two graphs, and provides additional info like total amount of transferred data
488 and min/max network usage.")
489 (license license:gpl2+)))
491 (define-public iodine
497 (uri (string-append "http://code.kryo.se/" name "/"
498 name "-" version ".tar.gz"))
501 "0gh17kcxxi37k65zm4gqsvbk3aw7yphcs3c02pn1c4s2y6n40axd"))))
502 (build-system gnu-build-system)
505 (modify-phases %standard-phases
507 (add-before 'build 'fix-ifconfig-path
508 ;; This package works only with the net-tools version of ifconfig.
509 (lambda* (#:key inputs #:allow-other-keys)
510 (substitute* "src/tun.c"
512 (string-append (assoc-ref inputs "net-tools") "/bin/")))))
513 (add-before 'check 'delete-failing-tests
514 ;; Avoid https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=802105.
516 (substitute* "tests/common.c"
517 (("tcase_add_test\\(tc, \
518 test_parse_format_ipv(4(|_listen_all|_mapped_ipv6)|6)\\);")
520 #:make-flags (list "CC=gcc"
521 (string-append "prefix=" (assoc-ref %outputs "out")))
522 #:test-target "test"))
523 (inputs `(("net-tools" ,net-tools)
525 (native-inputs `(("check" ,check)
526 ("pkg-config" ,pkg-config)))
527 (home-page "http://code.kryo.se/iodine/")
528 (synopsis "Tunnel IPv4 data through a DNS server")
529 (description "Iodine tunnels IPv4 data through a DNS server. This
530 can be useful in different situations where internet access is firewalled, but
531 DNS queries are allowed. The bandwidth is asymmetrical, with limited upstream
532 and up to 1 Mbit/s downstream.")
533 ;; src/md5.[ch] is released under the zlib license
534 (license (list license:isc license:zlib))))
543 (uri (string-append "mirror://debian/pool/main/w/whois/"
544 name "_" version ".tar.xz"))
547 "0m3352d5b0ragygbqjbaimghrbx4va2rixa34j5a1g3jj6l4nwbr"))))
548 (build-system gnu-build-system)
550 `(#:tests? #f ; no test suite
551 #:make-flags (list "CC=gcc"
552 (string-append "prefix=" (assoc-ref %outputs "out")))
554 (modify-phases %standard-phases
555 (delete 'configure) ; no configure script
556 (add-before 'build 'setenv
558 (setenv "HAVE_ICONV" "1")
561 `(("libidn2" ,libidn2)))
563 `(("gettext" ,gettext-minimal)
565 ("pkg-config" ,pkg-config)))
566 (synopsis "Intelligent client for the WHOIS directory service")
568 "whois searches for an object in a @dfn{WHOIS} (RFC 3912) database.
569 It is commonly used to look up the registered users or assignees of an Internet
570 resource, such as a domain name, an IP address block, or an autonomous system.
571 It can automatically select the appropriate server for most queries.
573 For historical reasons, this package also includes @command{mkpasswd}, which
574 encrypts passwords using @code{crypt(3)} and is unrelated to the Expect command
576 (home-page "https://github.com/rfc1036/whois")
577 (license license:gpl2+)))
579 (define-public wireshark
586 (uri (string-append "https://www.wireshark.org/download/src/wireshark-"
590 "153h6prxamv5a62f3pfadkry0y57696xrgxfy2gfy5xswdg8kcj9"))))
591 (build-system gnu-build-system)
592 (inputs `(("c-ares" ,c-ares)
596 ("libgcrypt" ,libgcrypt)
602 ("lua" ,lua-5.2) ;Lua 5.3 unsupported
604 ("portaudio" ,portaudio)
606 ("qtmultimedia" ,qtmultimedia)
610 (native-inputs `(("perl" ,perl)
611 ("pkg-config" ,pkg-config)
612 ("python" ,python-wrapper)
613 ("qttools" ,qttools)))
616 (list (string-append "--with-c-ares=" (assoc-ref %build-inputs "c-ares"))
617 (string-append "--with-krb5=" (assoc-ref %build-inputs "krb5"))
618 (string-append "--with-libcap=" (assoc-ref %build-inputs "libcap"))
619 (string-append "--with-libssh=" (assoc-ref %build-inputs "libssh"))
620 (string-append "--with-lua=" (assoc-ref %build-inputs "lua"))
621 (string-append "--with-lz4=" (assoc-ref %build-inputs "lz4"))
622 (string-append "--with-pcap=" (assoc-ref %build-inputs "libpcap"))
623 (string-append "--with-portaudio="
624 (assoc-ref %build-inputs "portaudio"))
625 (string-append "--with-sbc=" (assoc-ref %build-inputs "sbc"))
626 (string-append "--with-snappy=" (assoc-ref %build-inputs "snappy"))
627 (string-append "--with-zlib=" (assoc-ref %build-inputs "zlib")))
629 (modify-phases %standard-phases
630 (add-after 'unpack 'patch-source
632 ;; Fix build against Qt 5.11.
633 (substitute* "ui/qt/packet_format_group_box.cpp"
634 (("#include <QStyle>") "#include <QStyle>
635 #include <QStyleOption>"))
636 (substitute* "ui/qt/time_shift_dialog.cpp"
637 (("#include <ui/time_shift.h>") "#include <ui/time_shift.h>
638 #include <QStyleOption>"))
639 (substitute* "ui/qt/wireless_frame.cpp"
640 (("#include <QProcess>") "#include <QProcess>
641 #include <QAbstractItemView>"))
643 (synopsis "Network traffic analyzer")
644 (description "Wireshark is a network protocol analyzer, or @dfn{packet
645 sniffer}, that lets you capture and interactively browse the contents of
647 (home-page "https://www.wireshark.org/")
648 (license license:gpl2+)))
657 (uri (string-append "https://fping.org/dist/fping-"
661 "1kp81wchi79l8z8rrj602fpjrd8bi84y3i7fsaclzlwap5943sv7"))))
662 (build-system gnu-build-system)
663 (home-page "http://fping.org/")
664 (synopsis "Send ICMP ECHO_REQUEST packets to network hosts")
666 "fping is a ping like program which uses the Internet Control Message
667 Protocol (ICMP) echo request to determine if a target host is responding.
668 fping differs from ping in that you can specify any number of targets on the
669 command line, or specify a file containing the lists of targets to ping.
670 Instead of sending to one target until it times out or replies, fping will
671 send out a ping packet and move on to the next target in a round-robin
673 (license license:expat)))
675 (define-public httping
682 (uri (string-append "https://www.vanheusden.com/httping/httping-"
686 "1y7sbgkhgadmd93x1zafqc4yp26ssiv16ni5bbi9vmvvdl55m29y"))))
687 (build-system gnu-build-system)
689 `(("gettext" ,gettext-minimal)))
693 ("openssl" ,openssl)))
695 `(#:make-flags (list "CC=gcc"
696 (string-append "DESTDIR=" (assoc-ref %outputs "out"))
698 #:tests? #f)) ; no tests
699 (home-page "https://www.vanheusden.com/httping/")
700 (synopsis "Web server latency and throughput monitor")
702 "httping measures how long it takes to connect to a web server, send an
703 HTTP(S) request, and receive the reply headers. It is somewhat similar to
704 @command{ping}, but can be used even in cases where ICMP traffic is blocked
705 by firewalls or when you want to monitor the response time of the actual web
706 application stack itself.")
707 (license license:gpl2))) ; with permission to link with OpenSSL
709 (define-public httpstat
716 (uri (pypi-uri "httpstat" version))
719 "1chw2nk56vaq87aba012a270k9na06hfx1pfbsrc3jfvlc2kb9hb"))))
720 (build-system python-build-system)
721 (inputs `(("curl" ,curl)))
724 (modify-phases %standard-phases
725 (add-before 'build 'fix-curl-path
726 (lambda* (#:key inputs #:allow-other-keys)
727 (substitute* "httpstat.py"
728 (("ENV_CURL_BIN.get\\('curl'\\)")
729 (string-append "ENV_CURL_BIN.get('"
730 (assoc-ref inputs "curl")
731 "/bin/curl')"))))))))
732 (home-page "https://github.com/reorx/httpstat")
733 (synopsis "Visualize curl statistics")
735 "@command{httpstat} is a tool to visualize statistics from the
736 @command{curl} HTTP client. It acts as a wrapper for @command{curl} and
737 prints timing information for each step of the HTTP request (DNS lookup,
738 TCP connection, TLS handshake and so on) in the terminal.")
739 (license license:expat)))
741 (define-public bwm-ng
748 (uri (string-append "https://www.gropp.org/bwm-ng/bwm-ng-"
752 "1w0dwpjjm9pqi613i8glxrgca3rdyqyp3xydzagzr5ndc34z6z02"))))
753 (build-system gnu-build-system)
754 (inputs `(("ncurses" ,ncurses)))
755 (synopsis "Console based live network and disk I/O bandwidth monitor")
756 (description "Bandwidth Monitor NG is a small and simple console based
757 live network and disk I/O bandwidth monitor.")
758 (home-page "https://www.gropp.org/?id=projects&sub=bwm-ng")
759 (license license:gpl2)))
761 (define-public aircrack-ng
768 (uri (string-append "http://download.aircrack-ng.org/aircrack-ng-"
772 "0dpzx9kddxpgzmgvdpl3rxn0jdaqhm5wxxndp1xd7d75mmmc2fnr"))))
773 (build-system gnu-build-system)
775 `(("pkg-config" ,pkg-config)))
777 `(("libgcrypt" ,libgcrypt)
784 `(#:make-flags `("sqlite=true"
788 "experimental=true" ;build wesside-ng, etc.
789 "AVX2FLAG=N" "AVX1FLAG=N"
790 ,,@(match (%current-system)
791 ((or "x86_64-linux" "i686-linux")
795 ,(string-append "prefix=" %output))
796 #:phases (modify-phases %standard-phases
797 (delete 'configure) ;no configure phase
798 (add-after 'build 'absolutize-tools
799 (lambda* (#:key inputs #:allow-other-keys)
800 (let ((ethtool (string-append (assoc-ref inputs "ethtool")
802 (substitute* "scripts/airmon-ng"
803 (("\\[ ! -x \"\\$\\(command -v ethtool 2>&1)\" \\]")
804 (string-append "! " ethtool " --version "
807 (string-append "$(" ethtool)))
809 (home-page "http://www.aircrack-ng.org")
810 (synopsis "Assess WiFi network security")
812 "Aircrack-ng is a complete suite of tools to assess WiFi network
813 security. It focuses on different areas of WiFi security: monitoring,
814 attacking, testing, and cracking. All tools are command-line driven, which
815 allows for heavy scripting.")
816 (license (list license:gpl2+ license:bsd-3))))
818 (define-public perl-net-dns
820 (name "perl-net-dns")
826 "mirror://cpan/authors/id/N/NL/NLNETLABS/Net-DNS-"
831 "1q62w9rf2w8kjzqagzr0rdn20ybl8gj3l6cdq4k8fw0sxa7zsycs"))))
832 (build-system perl-build-system)
834 `(("perl-digest-hmac" ,perl-digest-hmac)))
835 (home-page "http://search.cpan.org/dist/Net-DNS")
837 "Perl Interface to the Domain Name System")
838 (description "Net::DNS is the Perl Interface to the Domain Name System.")
839 (license license:x11)))
841 (define-public perl-socket6
843 (name "perl-socket6")
849 "mirror://cpan/authors/id/U/UM/UMEMOTO/Socket6-"
854 "11j5jzqbzmwlws9zals43ry2f1nw9qy6im7yhn9ck5rikywrmm5z"))))
855 (build-system perl-build-system)
858 (modify-phases %standard-phases
860 (lambda* (#:key outputs #:allow-other-keys)
861 (let* ((out (assoc-ref outputs "out"))
862 (args `("Makefile.PL"
863 ,(string-append "PREFIX=" out)
864 "INSTALLDIRS=site")))
865 (setenv "CONFIG_SHELL" (which "sh"))
866 (zero? (apply system* "perl" args))))))))
867 (home-page "http://search.cpan.org/dist/Socket6")
869 "IPv6 related part of the C socket.h defines and structure manipulators for Perl")
870 (description "Socket6 binds the IPv6 related part of the C socket header
871 definitions and structure manipulators for Perl.")
872 (license license:bsd-3)))
874 (define-public perl-net-dns-resolver-programmable
876 (name "perl-net-dns-resolver-programmable")
882 "mirror://cpan/authors/id/J/JM/JMEHNLE/net-dns-resolver-programmable/"
883 "Net-DNS-Resolver-Programmable-" version ".tar.gz"))
886 "1v3nl2kaj4fs55n1617n53q8sa3mir06898vpy1rq98zjih24h4d"))
888 (search-patches "perl-net-dns-resolver-programmable-fix.patch"))))
889 (build-system perl-build-system)
891 `(("perl-module-build" ,perl-module-build)))
892 (inputs `(("perl-net-dns" ,perl-net-dns)))
894 "http://search.cpan.org/dist/Net-DNS-Resolver-Programmable")
896 "Programmable DNS resolver class for offline emulation of DNS")
897 (description "Net::DNS::Resolver::Programmable is a programmable DNS resolver for
898 offline emulation of DNS.")
899 (license license:perl-license)))
901 (define-public perl-netaddr-ip
903 (name "perl-netaddr-ip")
909 "mirror://cpan/authors/id/M/MI/MIKER/NetAddr-IP-"
914 "1rx0dinrz9fk9qcg4rwqq5n1dm3xv2arymixpclcv2q2nzgq4npc"))))
915 (build-system perl-build-system)
918 (modify-phases %standard-phases
920 (lambda* (#:key outputs #:allow-other-keys)
921 (let* ((out (assoc-ref outputs "out"))
922 (args `("Makefile.PL"
923 ,(string-append "PREFIX=" out)
924 "INSTALLDIRS=site")))
925 (setenv "CONFIG_SHELL" (which "sh"))
926 (zero? (apply system* "perl" args))))))))
928 "http://search.cpan.org/dist/NetAddr-IP")
930 "Manages IPv4 and IPv6 addresses and subnets")
931 (description "NetAddr::IP manages IPv4 and IPv6 addresses and subsets.")
932 (license license:perl-license)))
934 (define-public perl-net-patricia
936 (name "perl-net-patricia")
942 "mirror://cpan/authors/id/G/GR/GRUBER/Net-Patricia-"
947 "0ln5f57vc8388kyh9vhx2infrdzfhbpgyby74h1qsnhwds95m0vh"))))
948 (build-system perl-build-system)
950 `(("perl-net-cidr-lite" ,perl-net-cidr-lite)
951 ("perl-socket6" ,perl-socket6)))
953 "http://search.cpan.org/dist/Net-Patricia")
955 "Patricia Trie Perl module for fast IP address lookups")
957 "Net::Patricia does IP address lookups quickly in Perl.")
958 ;; The bindings are licensed under GPL2 or later.
959 ;; libpatricia is licensed under 2-clause BSD.
960 (license (list license:gpl2+ license:bsd-2))))
962 (define-public perl-net-cidr-lite
964 (name "perl-net-cidr-lite")
970 "mirror://cpan/authors/id/D/DO/DOUGW/Net-CIDR-Lite-"
975 "14shj73zbqmfjbp0qz1fs9j4p2dpvz5hfkm4qfdjbydflbl2b8fg"))))
976 (build-system perl-build-system)
978 "http://search.cpan.org/dist/Net-CIDR-Lite")
980 "Perl extension for merging IPv4 or IPv6 CIDR addresses")
981 (description "Net::CIDR::Lite merges IPv4 or IPv6 CIDR addresses.")
982 (license license:gpl1+)))
984 ;; TODO: Use the geolite-mirror-simple.pl script from the example
985 ;; directory to stay current with the databases. How?
986 (define-public perl-geo-ip
994 "mirror://cpan/authors/id/M/MA/MAXMIND/Geo-IP-"
999 "1fka8fr7fw6sh3xa9glhs1zjg3s2gfkhi7n7da1l2m2wblqj0c0n"))))
1000 (build-system perl-build-system)
1001 (home-page "http://search.cpan.org/dist/Geo-IP")
1003 "Look up location and network information by IP Address in Perl")
1004 (description "The Perl module 'Geo::IP'. It looks up location and network
1005 information by IP Address.")
1006 (license license:perl-license)))
1008 (define-public perl-io-socket-inet6
1010 (name "perl-io-socket-inet6")
1016 "mirror://cpan/authors/id/S/SH/SHLOMIF/IO-Socket-INET6-"
1021 "1fqypz6qa5rw2d5y2zq7f49frwra0aln13nhq5gi514j2zx21q45"))))
1022 (build-system perl-build-system)
1024 `(("perl-module-build" ,perl-module-build)
1025 ("perl-test-pod" ,perl-test-pod)
1026 ("perl-test-pod-coverage" ,perl-test-pod-coverage)))
1027 (inputs `(("perl-socket6" ,perl-socket6)))
1028 (arguments `(;; Need network socket API
1031 "http://search.cpan.org/dist/IO-Socket-INET6")
1033 "Perl object interface for AF_INET/AF_INET6 domain sockets")
1034 (description "IO::Socket::INET6 is an interface for AF_INET/AF_INET6 domain
1036 (license license:perl-license)))
1038 (define-public libproxy
1044 (uri (string-append "https://github.com/libproxy/libproxy/"
1045 "releases/download/" version "/libproxy-"
1049 "0kvdrazlzwia876w988cmlypp253gwy6idlh8mjk958c29jb8kb5"))))
1050 (build-system cmake-build-system)
1052 `(("pkg-config" ,pkg-config)))
1056 ("network-manager" ,network-manager)))
1059 (modify-phases %standard-phases
1062 (zero? (system* "ctest" "-E" "url-test")))))))
1063 (synopsis "Library providing automatic proxy configuration management")
1064 (description "Libproxy handles the details of HTTP/HTTPS proxy
1065 configuration for applications across all scenarios. Applications using
1066 libproxy only have to specify which proxy to use.")
1067 (home-page "https://libproxy.github.io/libproxy")
1068 (license license:lgpl2.1+)))
1070 (define-public proxychains-ng
1072 (name "proxychains-ng")
1076 (uri (string-append "https://github.com/rofl0r/" name "/releases/"
1077 "download/v" version "/" name "-" version
1081 "0kiss3ih6cwayzvqi5cx4kw4vh7r2kfxlbgk56v1f1066ncm8aj8"))))
1082 (build-system gnu-build-system)
1084 `(#:tests? #f ; there are no tests
1085 #:make-flags '("CC=gcc")
1087 (modify-phases %standard-phases
1088 (add-after 'unpack 'fix-configure-script
1090 ;; The configure script is very intolerant to unknown arguments,
1091 ;; such as "CONFIG_SHELL".
1092 (substitute* "configure"
1093 (("\\*\\) break ;;" line)
1094 (string-append "[A-Z]*) shift ;;\n"
1097 (synopsis "Redirect any TCP connection through a proxy or proxy chain")
1098 (description "Proxychains-ng is a preloader which hooks calls to sockets
1099 in dynamically linked programs and redirects them through one or more SOCKS or
1101 (home-page "https://github.com/rofl0r/proxychains-ng")
1102 (license license:gpl2+)))
1110 (uri (string-append "http://enet.bespin.org/download/"
1111 name "-" version ".tar.gz"))
1114 "0p53mnmjbm56wizwraznynx13fcibcxiqny110dp6a5a3w174q73"))))
1115 (build-system gnu-build-system)
1117 `(("pkg-config" ,pkg-config)))
1119 "Network communication layer on top of UDP")
1121 "ENet's purpose is to provide a relatively thin, simple and robust network
1122 communication layer on top of UDP. The primary feature it provides is optional
1123 reliable, in-order delivery of packets. ENet omits certain higher level
1124 networking features such as authentication, server discovery, encryption, or
1125 other similar tasks that are particularly application specific so that the
1126 library remains flexible, portable, and easily embeddable.")
1127 (home-page "http://enet.bespin.org")
1128 (license license:expat)))
1136 (uri (string-append "https://github.com/yrutschle/sslh/archive/v"
1138 (file-name (string-append name "-" version ".tar.gz"))
1141 "0pd8hifa9h0rm7vms3k6ic1k29xigrlv2idc5wgcafmb1v1243di"))))
1142 (build-system gnu-build-system)
1144 `(;; Test dependencies.
1147 ("perl-io-socket-inet6" ,perl-io-socket-inet6)
1148 ("perl-socket6" ,perl-socket6)
1150 ("valgrind" ,valgrind)))
1152 `(("libcap" ,libcap)
1153 ("libconfig" ,libconfig)
1155 ("tcp-wrappers" ,tcp-wrappers)))
1158 (modify-phases %standard-phases
1159 (delete 'configure) ; no configure script
1160 (add-before 'check 'fix-tests
1163 (("\"/tmp") "$ENV{\"TMPDIR\"} . \"")
1164 ;; The Guix build environment lacks ‘ip6-localhost’.
1165 (("ip6-localhost") "localhost"))
1167 ;; Many of these files are mentioned in the man page. Install them.
1168 (add-after 'install 'install-documentation
1169 (lambda* (#:key outputs #:allow-other-keys)
1170 (let* ((out (assoc-ref outputs "out"))
1171 (doc (string-append out "/share/doc/sslh")))
1172 (install-file "README.md" doc)
1175 (install-file file (string-append doc "/examples")))
1176 (append (find-files "." "\\.cfg")
1177 (find-files "scripts"))))
1179 #:make-flags (list "CC=gcc"
1182 (string-append "PREFIX=" (assoc-ref %outputs "out")))
1183 #:test-target "test"))
1184 (home-page "https://www.rutschle.net/tech/sslh/README.html")
1185 (synopsis "Applicative network protocol demultiplexer")
1187 "sslh is a network protocol demultiplexer. It acts like a switchboard,
1188 accepting connections from clients on one port and forwarding them to different
1189 servers based on the contents of the first received data packet. Detection of
1190 common protocols like HTTP(S), SSL, SSH, OpenVPN, tinc, and XMPP is already
1191 implemented, but any other protocol that matches a regular expression can be
1192 added. sslh's name comes from its original application of serving both SSH and
1193 HTTPS on port 443, allowing SSH connections from inside corporate firewalls
1194 that block port 22.")
1195 (license (list license:bsd-2 ; tls.[ch]
1196 license:gpl2+)))) ; everything else
1198 (define-public iperf
1204 (uri (string-append "http://downloads.es.net/pub/iperf"
1205 "/iperf-" version ".tar.gz"))
1208 "0kvk8d0a3dcxc8fisyprbn01y8akxj4sx8ld5dh508p9dx077vx4"))))
1209 (build-system gnu-build-system)
1210 (synopsis "TCP, UDP and SCTP bandwidth measurement tool")
1212 "iPerf is a tool to measure achievable bandwidth on IP networks. It
1213 supports tuning of various parameters related to timing, buffers and
1214 protocols (TCP, UDP, SCTP with IPv4 and IPv6). For each test it reports
1215 the bandwidth, loss, and other parameters.")
1216 (home-page "http://software.es.net/iperf/")
1217 (license (list license:bsd-3 ; Main distribution.
1218 license:ncsa ; src/{units,iperf_locale,tcp_window_size}.c
1219 license:expat ; src/{cjson,net}.[ch]
1220 license:public-domain)))) ; src/portable_endian.h
1222 (define-public nethogs
1228 (uri (string-append "https://github.com/raboof/nethogs/archive/v"
1232 "1k4x8r7s4dgcb6n2rjn28h2yyij92mwm69phncl3597cdxr954va"))
1233 (file-name (string-append name "-" version ".tar.gz"))))
1234 (build-system gnu-build-system)
1236 `(("libpcap" ,libpcap)
1237 ("ncurses" ,ncurses)))
1239 `(#:make-flags `("CC=gcc"
1240 ,(string-append "PREFIX=" %output))
1242 (modify-phases %standard-phases
1243 (delete 'configure)))) ; No ./configure script.
1244 (home-page "https://github.com/raboof/nethogs")
1245 (synopsis "Per-process bandwidth monitor")
1246 (description "NetHogs is a small 'net top' tool for Linux. Instead of
1247 breaking the traffic down per protocol or per subnet, like most tools do, it
1248 groups bandwidth by process.
1250 NetHogs does not rely on a special kernel module to be loaded. If there's
1251 suddenly a lot of network traffic, you can fire up NetHogs and immediately see
1252 which PID is causing this. This makes it easy to identify programs that have
1253 gone wild and are suddenly taking up your bandwidth.")
1254 (license license:gpl2+)))
1256 (define-public nzbget
1263 (uri (string-append "https://github.com/nzbget/nzbget/archive/v"
1265 (file-name (string-append name "-" version ".tar.gz"))
1268 "0q93aqqyzccn5r9sny38499rmg846qdh9pi2v5kvf9m23v54yk60"))
1269 (modules '((guix build utils)))
1271 ;; Reported upstream as <https://github.com/nzbget/nzbget/pull/414>.
1273 (substitute* "daemon/connect/TlsSocket.cpp"
1274 (("gnutls_certificate-verification_status_print")
1275 "gnutls_certificate_verification_status_print"))
1280 (string-append "--with-libcurses-includes="
1281 (assoc-ref %build-inputs "ncurses") "/include")
1282 (string-append "--with-libcurses-libraries="
1283 (assoc-ref %build-inputs "ncurses") "/lib")
1284 (string-append "--with-tlslib=GnuTLS"))))
1285 (build-system gnu-build-system)
1286 (inputs `(("gnutls" ,gnutls)
1287 ("libxml2" ,libxml2)
1288 ("ncurses" ,ncurses)
1290 (native-inputs `(("pkg-config" ,pkg-config)))
1291 (home-page "https://github.com/nzbget/nzbget")
1292 (synopsis "Usenet binary file downloader")
1294 "NZBGet is a binary newsgrabber, which downloads files from Usenet based
1295 on information given in @code{nzb} files. NZBGet can be used in standalone
1296 and in server/client modes. In standalone mode, you pass NZBGet @command{nzb}
1297 files as command-line parameters and it downloads them and exits. NZBGet also
1298 contains a Web interface. Its server can be controlled through remote
1299 procedure calls (RPCs).")
1300 (license license:gpl2+)))
1302 (define-public openvswitch
1304 (name "openvswitch")
1309 "http://openvswitch.org/releases/openvswitch-"
1313 "14rqqhfyv49irz8ag0qbv9jn8z0bn3qzxir3r074y16p4sg4674d"))))
1314 (build-system gnu-build-system)
1316 '(;; FIXME: many tests fail with:
1318 ;; test -e $OVS_RUNDIR/ovs-vswitchd.pid
1319 ;; ovs-appctl -t ovs-vswitchd exit
1324 "--localstatedir=/var"
1325 "--with-dbdir=/var/lib/openvswitch")
1327 (modify-phases %standard-phases
1330 (zero? (system* "make"
1331 ;; Don't try to create directories under /var.
1339 ("pkg-config" ,pkg-config)
1340 ("python" ,python-2)
1342 ("util-linux" ,util-linux)))
1344 `(("python-six" ,python2-six)))
1346 `(("libcap-ng" ,libcap-ng)
1347 ("openssl" ,openssl)))
1348 (synopsis "Virtual network switch")
1349 (home-page "http://www.openvswitch.org/")
1351 "Open vSwitch is a multilayer virtual switch. It is designed to enable
1352 massive network automation through programmatic extension, while still
1353 supporting standard management interfaces and protocols (e.g. NetFlow, sFlow,
1354 IPFIX, RSPAN, CLI, LACP, 802.1ag).")
1355 (license ; see debian/copyright for detail
1356 (list license:lgpl2.1 ; xenserver and utilities/bugtool
1357 license:gpl2 ; datapath
1358 license:bsd-2 license:bsd-3
1359 license:asl2.0)))) ; all other
1361 (define-public python-ipy
1367 (uri (pypi-uri "IPy" version))
1370 "1f6sdrxclifky4gvkf4gvyv5hx3fjh8vzspnfrqki6qm5d9mmnk1"))))
1371 (build-system python-build-system)
1372 (home-page "https://github.com/autocracy/python-ipy/")
1373 (synopsis "Python class and tools for handling IP addresses and networks")
1374 (description "The @code{IP} class allows a comfortable parsing and
1375 handling for most notations in use for IPv4 and IPv6 addresses and
1377 (license license:bsd-3)))
1379 (define-public python2-ipy
1380 (package-with-python2 python-ipy))
1382 (define-public speedtest-cli
1384 (name "speedtest-cli")
1390 (url "https://github.com/sivel/speedtest-cli")
1391 (commit (string-append "v" version))))
1392 (file-name (git-file-name name version))
1395 "0vv2z37g2kgm2dzkfa4bhri92hs0d1acxi8z66gznsl5148q7sdi"))))
1396 (build-system python-build-system)
1397 (home-page "https://github.com/sivel/speedtest-cli")
1398 (synopsis "Internet bandwidth tester")
1400 "Command line interface for testing internet bandwidth using
1402 (license license:asl2.0)))
1404 (define-public tftp-hpa
1410 (uri (string-append "mirror://kernel.org/software/"
1411 "network/tftp/tftp-hpa/tftp-hpa-" version
1415 "12vidchglhyc20znq5wdsbhi9mqg90jnl7qr9qs8hbvaz4fkdvmg"))))
1416 (build-system gnu-build-system)
1417 (arguments `(#:tests? #f)) ; no test target
1418 (synopsis "HPA's tftp client")
1420 "This is a tftp client derived from OpenBSD tftp with some extra options
1421 added and bugs fixed. The source includes readline support but it is not
1422 enabled due to license conflicts between the BSD advertising clause and the GPL.")
1423 (home-page "http://git.kernel.org/cgit/network/tftp/tftp-hpa.git/about/")
1424 ;; Some source files are distributed under a 3-clause BSD license, and
1425 ;; others under a 4-clause BSD license. Refer to the files in the source
1426 ;; distribution for clarification.
1427 (license (list license:bsd-3 license:bsd-4))))
1429 (define-public pidentd
1436 (uri (string-append "https://github.com/ptrrkssn/pidentd/archive/"
1437 "v" version ".tar.gz"))
1438 (file-name (string-append name "-" version ".tar.gz"))
1441 "0y3kd1bkydqkpc1qdff24yswysamsqivvadjy0468qri5730izgc"))))
1442 (build-system gnu-build-system)
1444 `(#:tests? #f)) ; No tests are included
1446 `(("openssl" ,openssl))) ; For the DES library
1447 (home-page "https://www.lysator.liu.se/~pen/pidentd/")
1448 (synopsis "Small Ident Daemon")
1450 "@dfn{Pidentd} (Peter's Ident Daemon) is a identd, which implements a
1451 identification server. Pidentd looks up specific TCP/IP connections and
1452 returns the user name and other information about the connection.")
1453 (license license:public-domain)))
1455 (define-public spiped
1461 (uri (string-append "https://www.tarsnap.com/spiped/spiped-"
1465 "1r51rdcl7nib1yv3yvgd5alwlkkwmr387brqavaklb0p2bwzixz6"))))
1466 (build-system gnu-build-system)
1468 '(#:test-target "test"
1469 #:make-flags (let* ((out (assoc-ref %outputs "out"))
1470 (bindir (string-append out "/bin"))
1471 (man1dir (string-append out "/share/man/man1")))
1472 (list "CC=gcc" ; It tries to invoke `c99`.
1473 (string-append "BINDIR=" bindir)
1474 (string-append "MAN1DIR=" man1dir)))
1476 (modify-phases %standard-phases
1477 (add-after 'unpack 'patch-command-invocations
1479 (substitute* '("Makefile"
1480 "libcperciva/cpusupport/Build/cpusupport.sh"
1481 "libcperciva/POSIX/posix-cflags.sh"
1482 "libcperciva/POSIX/posix-l.sh")
1483 (("command -p") ""))
1485 (delete 'configure) ; No ./configure script.
1486 (add-after 'install 'install-more-docs
1487 (lambda* (#:key outputs #:allow-other-keys)
1488 (let* ((out (assoc-ref %outputs "out"))
1489 (misc (string-append out "/share/doc/spiped")))
1490 (install-file "DESIGN.md" misc)
1493 `(("procps" ,procps))) ; `ps` is used by the test suite.
1495 `(("openssl" ,openssl)))
1496 (home-page "https://www.tarsnap.com/spiped.html")
1497 (synopsis "Create secure pipes between sockets")
1498 (description "Spiped (pronounced \"ess-pipe-dee\") is a utility for creating
1499 symmetrically encrypted and authenticated pipes between socket addresses, so
1500 that one may connect to one address (e.g., a UNIX socket on localhost) and
1501 transparently have a connection established to another address (e.g., a UNIX
1502 socket on a different system). This is similar to 'ssh -L' functionality, but
1503 does not use SSH and requires a pre-shared symmetric key.")
1504 (license license:bsd-2)))
1506 (define-public quagga
1512 (uri (string-append "mirror://savannah/quagga/quagga-"
1516 "1lsksqxij5f1llqn86pkygrf5672kvrqn1kvxghi169hqf1c0r73"))
1518 (search-patches "quagga-reproducible-build.patch"))))
1519 (build-system gnu-build-system)
1520 (native-inputs `(("pkg-config" ,pkg-config)
1522 ("dejagnu" ,dejagnu)))
1523 (inputs `(("readline" ,readline)
1524 ("c-ares" ,c-ares)))
1525 (synopsis "Routing Software Suite")
1526 (description "Quagga is a routing software suite, providing implementations
1527 of OSPFv2, OSPFv3, RIP v1 and v2, RIPng and BGP-4 for Unix platforms.
1529 The Quagga architecture consists of a core daemon, @command{zebra}, which
1530 acts as an abstraction layer to the underlying Unix kernel and presents the
1531 Zserv API over a Unix or TCP stream to Quagga clients. It is these Zserv
1532 clients which typically implement a routing protocol and communicate routing
1533 updates to the zebra daemon.")
1534 (home-page "https://www.nongnu.org/quagga/")
1535 (license license:gpl2+)))
1537 (define-public thc-ipv6
1538 (let ((revision "0")
1539 (commit "4bb72573e0950ce6f8ca2800a10748477020029e"))
1542 (version (git-version "3.4" revision commit))
1546 (url "https://github.com/vanhauser-thc/thc-ipv6.git")
1548 (file-name (git-file-name name version))
1551 "1x5i6vbsddqc2yks7r1a2fw2fk16qxvd6hpzh1lykjfpkal8fdir"))))
1552 (build-system gnu-build-system)
1554 `(#:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
1555 #:tests? #f ; No test suite.
1557 (modify-phases %standard-phases
1558 (delete 'configure) ; No ./configure script.
1559 (add-before 'build 'patch-paths
1561 (substitute* "Makefile"
1562 (("/bin/echo") "echo"))
1564 (add-after 'install 'install-more-docs
1565 (lambda* (#:key outputs #:allow-other-keys)
1566 (let* ((out (assoc-ref outputs "out"))
1567 (doc (string-append out "/share/thc-ipv6/doc")))
1568 (install-file "README" doc)
1569 (install-file "HOWTO-INJECT" doc)
1571 ;; TODO Add libnetfilter-queue once packaged.
1573 `(("libpcap" ,libpcap)
1574 ("openssl" ,openssl)
1576 (home-page "https://github.com/vanhauser-thc/thc-ipv6")
1577 (synopsis "IPv6 security research toolkit")
1578 (description "The THC IPv6 Toolkit provides command-line tools and a library
1579 for researching IPv6 implementations and deployments. It requires Linux 2.6 or
1580 newer and only works on Ethernet network interfaces.")
1581 ;; AGPL 3 with exception for linking with OpenSSL. See the 'LICENSE' file in
1582 ;; the source distribution for more information.
1583 (license license:agpl3))))
1592 (uri (string-append "https://github.com/tgraf/bmon/releases/download/v"
1593 version "/bmon-" version ".tar.gz"))
1596 "0ylzriv4pwh76344abzl1w219x188gshbycbna35gsyfp09c7z82"))))
1597 (build-system gnu-build-system)
1599 `(("libconfuse" ,libconfuse)
1601 ("ncurses" ,ncurses)))
1603 `(("pkg-config" ,pkg-config)))
1604 (synopsis "Bandwidth monitor")
1605 (description "bmon is a monitoring and debugging tool to capture
1606 networking-related statistics and prepare them visually in a human-friendly
1607 way. It features various output methods including an interactive curses user
1608 interface and a programmable text output for scripting.")
1609 (home-page "https://github.com/tgraf/bmon")
1610 ;; README.md mentions both the 2-clause BSD and expat licenses, but all
1611 ;; the source files only have expat license headers. Upstream has been
1612 ;; contacted for clarification: https://github.com/tgraf/bmon/issues/59
1613 ;; Update the license field when upstream responds.
1614 (license (list license:bsd-2
1617 (define-public libnet
1623 (uri (string-append "https://github.com/sam-github/libnet/"
1624 "archive/libnet-" version ".tar.gz"))
1625 (file-name (string-append name "-" version ".tar.gz"))
1628 "0l4gbzzvr199fzczzricjz7b825i7dlk6sgl5p5alnkcagmq0xys"))))
1629 (build-system gnu-build-system)
1632 (modify-phases %standard-phases
1633 (add-after 'unpack 'chdir
1634 (lambda _ (chdir "libnet") #t))
1635 (add-before 'build 'build-doc
1636 (lambda* (#:key make-flags #:allow-other-keys)
1637 (zero? (apply system* "make" "-C" "doc" "doc"
1640 `(("autoconf" ,autoconf)
1641 ("automake" ,automake)
1642 ("libtool" ,libtool)
1643 ("doxygen" ,doxygen)))
1644 (home-page "https://sourceforge.net/projects/libnet-dev/")
1645 (synopsis "Framework for low-level network packet construction")
1647 "Libnet provides a fairly portable framework for network packet
1648 construction and injection. It features portable packet creation interfaces
1649 at the IP layer and link layer, as well as a host of supplementary
1650 functionality. Using libnet, quick and simple packet assembly applications
1651 can be whipped up with little effort.")
1652 (license license:bsd-2)))
1661 (uri (string-append "ftp://ftp.bitwizard.nl/" name "/"
1662 name "-" version ".tar.gz"))
1664 (base32 "10j3ds3p27jygys4x08kj8fi3zlsgiv72xsfazkah6plwawrv5zj"))))
1665 (build-system gnu-build-system)
1667 `(("libcap" ,libcap)
1668 ("ncurses" ,ncurses)))
1670 ;; The 0.92 release tarball still requires the ‘autoheader’ tool.
1671 `(("autoconf" ,autoconf)))
1673 `(#:tests? #f)) ; tests require network access
1674 (home-page "https://www.bitwizard.nl/mtr/")
1675 (synopsis "Network diagnostic tool")
1677 "@dfn{mtr} (My TraceRoute) combines the functionality of the
1678 @command{traceroute} and @command{ping} programs in a single network diagnostic
1679 tool. @command{mtr} can use several network protocols to detect intermediate
1680 routers (or @dfn{hops}) between the local host and a user-specified destination.
1681 It then continually measures the response time and packet loss at each hop, and
1682 displays the results in real time.")
1683 (license license:gpl2+)))
1685 (define-public strongswan
1692 (uri (string-append "https://download.strongswan.org/strongswan-"
1693 version ".tar.bz2"))
1695 (base32 "14ifqay54brw2b2hbmm517bxw8bs9631d7jm4g139igkxcq0m9p0"))))
1696 (build-system gnu-build-system)
1699 (modify-phases %standard-phases
1700 (add-before 'build 'patch-command-file-names
1701 (lambda* (#:key inputs #:allow-other-keys)
1702 (substitute* "src/libstrongswan/utils/process.c"
1704 (string-append (assoc-ref inputs "bash") "/bin/sh")))
1706 (substitute* "src/libstrongswan/tests/suites/test_process.c"
1707 (("/bin/sh") (which "sh"))
1708 (("/bin/echo") (which "echo"))
1709 (("cat") (which "cat")))
1711 (add-before 'check 'set-up-test-environment
1712 (lambda* (#:key inputs #:allow-other-keys)
1713 (setenv "TZDIR" (string-append (assoc-ref inputs "tzdata")
1718 ;; Disable bsd-4 licensed plugins
1720 "--disable-blowfish")))
1724 ("libgcrypt" ,libgcrypt)
1725 ("openssl" ,openssl)))
1727 `(("coreutils" ,coreutils)
1728 ("tzdata" ,tzdata-for-tests)))
1729 (synopsis "IKEv1/v2 keying daemon")
1730 (description "StrongSwan is an IPsec implementation originally based upon
1731 the FreeS/WAN project. It contains support for IKEv1, IKEv2, MOBIKE, IPv6,
1733 (home-page "https://strongswan.org/")
1737 ;; src/libcharon/plugins/dnscert/*
1738 ;; src/libcharon/plugins/ext_auth/*
1739 ;; src/libcharon/plugins/vici/ruby/*
1740 ;; src/libcharon/plugins/xauth_pam/xauth_pam_listener.[ch]
1744 ;; src/libstrongswan/plugins/sha3/sha3_keccak.c
1745 license:public-domain
1746 ;; src/libstrongswan/plugins/pkcs11/pkcs11.h
1747 (license:non-copyleft
1748 "file://src/libstrongswan/plugins/pkcs11/pkcs11.h"
1749 "pkcs11 contains a unknown permissive license. View the specific
1750 file for more details.")
1751 ;; These files are not included in the
1752 ;; build, they are disabled through
1753 ;; options to ./configure
1755 ;; src/libstrongswan/plugins/blowfish/bf_enc.c
1756 ;; src/libstrongswan/plugins/blowfish/bf_locl.h
1757 ;; src/libstrongswan/plugins/blowfish/bf_pi.h
1758 ;; src/libstrongswan/plugins/blowfish/bf_skey.c
1759 ;; src/libstrongswan/plugins/blowfish/blowfish_crypter.c
1760 ;; src/libstrongswan/plugins/des/des_crypter.c
1763 (define-public amule
1770 "https://github.com/amule-project/amule/archive/"
1772 (file-name (string-append name "-" version ".tar.gz"))
1775 "1wvcj0n9xz03xz5c2xwp6dwfp7sqjhhwbki3m0lwikskpn9lkzk2"))
1776 ;; Patch for adopting crypto++ >= 6.0.
1777 (patches (search-patches "amule-crypto-6.patch"))))
1778 (build-system gnu-build-system)
1781 (modify-phases %standard-phases
1782 (add-after 'patch-source-shebangs 'autogen
1784 (invoke "sh" "autogen.sh")
1798 "--enable-amule-gui"
1799 "--enable-amule-daemon"
1800 "--enable-webserver"
1801 "--with-denoise-level=0")))
1803 `(("autoconf" ,autoconf)
1804 ("automake" ,automake)
1805 ("gettext-minimal" ,gettext-minimal)
1809 ("crypto++" ,crypto++)
1811 ("wxwidgets-gtk2" ,wxwidgets-gtk2)))
1812 (home-page "http://amule.org/")
1813 (synopsis "Peer-to-peer client for the eD2K and Kademlia networks")
1815 "aMule is an eMule-like client for the eD2k and Kademlia peer-to-peer
1816 file sharing networks. It includes a graphical user interface (GUI), a daemon
1817 allowing you to run a client with no graphical interface, and a Web GUI for
1818 remote access. The @command{amulecmd} command allows you to control aMule
1820 (license license:gpl2+)))
1829 (string-append "https://github.com/zeromq/zyre/releases/download/v"
1830 version "/" name "-" version ".tar.gz"))
1833 "0qz2730bng1gs9xbqxhkw88qbsmszgmmrl2g9k6xrg6r3bqvsdc7"))))
1834 (build-system gnu-build-system)
1835 (inputs `(("zeromq" ,zeromq)
1837 ("libsodium" ,libsodium)))
1838 (synopsis "Framework for proximity-based peer-to-peer applications")
1839 (description "Zyre provides reliable group messaging over local area
1840 networks using zeromq. It has these key characteristics:
1843 @item Zyre needs no administration or configuration.
1844 @item Peers may join and leave the network at any time.
1845 @item Peers talk to each other without any central brokers or servers.
1846 @item Peers can talk directly to each other.
1847 @item Peers can join groups, and then talk to groups.
1848 @item Zyre is reliable, and loses no messages even when the network is heavily loaded.
1849 @item Zyre is fast and has low latency, requiring no consensus protocols.
1850 @item Zyre is designed for WiFi networks, yet also works well on Ethernet networks.
1852 (home-page "https://github.com/zeromq/zyre")
1853 (license license:mpl2.0)))
1855 (define-public can-utils
1858 (version "2018.02.0")
1862 (url "https://github.com/linux-can/can-utils.git")
1863 (commit (string-append "v" version))))
1864 (file-name (git-file-name name version))
1867 "0r0zkm67bdcmbfypjr7z041d4zp0xzb379dyl8cvhmflh12fd2jb"))))
1868 (build-system gnu-build-system)
1870 `(#:tests? #f ; No tests exist.
1871 #:make-flags (list "CC=gcc"
1872 (string-append "PREFIX="
1873 (assoc-ref %outputs "out")))
1875 (modify-phases %standard-phases
1877 (delete 'configure))))
1878 (home-page "https://github.com/linux-can/can-utils")
1879 (synopsis "CAN utilities")
1880 (description "This package provides CAN utilities in the following areas:
1883 @item Basic tools to display, record, generate and replay CAN traffic
1884 @item CAN access via IP sockets
1885 @item CAN in-kernel gateway configuration
1886 @item CAN bus measurement and testing
1887 @item ISO-TP (ISO15765-2:2016 - this means messages with a body larger than
1889 @item Log file converters
1890 @item Serial Line Discipline configuration for slcan driver
1892 ;; Either BSD-3 or GPL-2 can be used.
1893 (license (list license:bsd-3 license:gpl2))))
1903 (url "https://github.com/chriskohlhoff/asio.git")
1904 (commit (string-join (cons name (string-split version #\.))
1906 (file-name (git-file-name name version))
1909 "04dg8kpgriay7q62mqcq2gl439k5y4mf761zghsd6wfl0farh3mx"))))
1910 (build-system gnu-build-system)
1912 `(("autoconf" ,autoconf)
1913 ("automake" ,automake)
1914 ("libtool" ,libtool)))
1917 ("openssl" ,openssl)))
1921 (string-append "--with-boost=" (assoc-ref %build-inputs "boost"))
1922 (string-append "--with-openssl=" (assoc-ref %build-inputs "openssl")))
1924 (modify-phases %standard-phases
1925 (add-after 'unpack 'chdir-to-asio
1928 (add-before 'configure 'bootstrap
1930 (invoke "sh" "autogen.sh"))))))
1931 (home-page "https://think-async.com/Asio")
1932 (synopsis "C++ library for ASynchronous network I/O")
1933 (description "Asio is a cross-platform C++ library for network and
1934 low-level I/O programming that provides developers with a consistent
1935 asynchronous model using a modern C++ approach.")
1936 (license license:boost1.0)))
1938 (define-public shadowsocks
1939 ;; There are some security fixes after the last release.
1940 (let* ((commit "e332ec93e9c90f1cbee676b022bf2c5d5b7b1239")
1942 (version (git-version "2.8.2" revision commit)))
1944 (name "shadowsocks")
1946 (home-page "https://github.com/shadowsocks/shadowsocks")
1954 "1idd9b4f2pnhcpk1bh030hqg5zq25gkwxd53xi3c0cj242w7sp2j"))
1955 (file-name (git-file-name name version))))
1956 (build-system python-build-system)
1957 (synopsis "Fast tunnel proxy that helps you bypass firewalls")
1959 "This package is a fast tunnel proxy that helps you bypass firewalls.
1963 @item TCP & UDP support
1964 @item User management API
1966 @item Workers and graceful restart
1967 @item Destination IP blacklist
1969 (license license:asl2.0))))
1971 (define-public net-snmp
1977 (uri (string-append "mirror://sourceforge/net-snmp/net-snmp/"
1978 version "/net-snmp-" version ".tar.gz"))
1981 "1pvajzj9gmj56dmwix0ywmkmy2pglh6nny646hkm7ghfhh03bz5j"))
1982 (modules '((guix build utils)))
1985 ;; Drop bundled libraries.
1986 (delete-file-recursively "snmplib/openssl")
1988 (build-system gnu-build-system)
1990 `(#:test-target "test"
1991 ;; XXX: With parallel build enabled, Perl modules may not get linked with
1992 ;; libnetsnmp. See e.g. <https://bugzilla.novell.com/show_bug.cgi?id=819497>.
1993 #:parallel-build? #f
1995 (list (string-append "LDFLAGS=-Wl,-rpath="
1996 (assoc-ref %outputs "out")
1998 "--with-logfile=/var/log/snmpd.log")
2000 (modify-phases %standard-phases
2001 (add-after 'unpack 'patch-tests
2002 (lambda* (#:key inputs #:allow-other-keys)
2003 (substitute* "testing/fulltests/support/simple_TESTCONF.sh"
2005 (string-append "NETSTAT=\"" (which "netstat") "\"")))
2006 (substitute* '("testing/fulltests/default/T065agentextend_simple"
2007 "testing/fulltests/default/T115agentxperl_simple")
2008 (("/usr/bin/env") (which "env")))
2009 (substitute* "testing/fulltests/default/T065agentextend_sh_simple"
2010 (("/bin/sh") (which "sh")))
2011 ;; These tests require network access.
2012 (for-each delete-file
2013 '("testing/fulltests/default/T070com2sec_simple"
2014 "testing/fulltests/default/T071com2sec6_simple"))
2016 (add-after 'unpack 'patch-Makefile.PL
2017 (lambda* (#:key outputs #:allow-other-keys)
2018 (substitute* "Makefile.in"
2019 (("Makefile.PL -NET")
2020 (string-append "Makefile.PL PREFIX="
2021 (assoc-ref outputs "out")
2022 " INSTALLDIRS=site" " NO_PERLLOCAL=1"
2027 ("openssl" ,openssl)
2029 ;; These inputs are only needed for tests.
2031 `(("net-tools" ,net-tools)
2032 ("coreutils" ,coreutils)
2034 (home-page "http://www.net-snmp.org/")
2035 (synopsis "Simple Network Management Protocol library and tools")
2036 (description "The @dfn{Simple Network Management Protocol} (SNMP) is a
2037 widely used protocol for monitoring the health and welfare of network
2038 equipment (e.g. routers), computer equipment and even devices like UPSs.
2039 Net-SNMP is a suite of applications used to implement SNMP v1, SNMP v2c and
2040 SNMP v3 using both IPv4 and IPv6.")
2041 (license (list license:bsd-3
2042 (license:non-copyleft
2043 "http://www.net-snmp.org/about/license.html"
2044 "CMU/UCD copyright notice")))))
2046 (define-public ubridge
2052 (uri (string-append "https://github.com/GNS3/ubridge/archive/v"
2054 (file-name (string-append name "-" version ".tar.gz"))
2057 "1hivb8wqkk5047bdl2vbsbcvkmam1107hx1ahy4virq2bkqki1fj"))))
2058 (build-system gnu-build-system)
2060 `(#:tests? #f ;no tests
2061 #:make-flags '("CC=gcc")
2063 (modify-phases %standard-phases
2065 (add-before 'install 'set-bindir
2066 (lambda* (#:key inputs outputs #:allow-other-keys)
2067 (let ((bin (string-append (assoc-ref outputs "out")
2070 (substitute* "Makefile"
2071 (("\\$\\(BINDIR\\)") bin)
2072 (("\tsetcap cap_net.*$") "")))
2075 `(("libpcap" ,libpcap)))
2076 (home-page "https://github.com/GNS3/ubridge/")
2077 (synopsis "Bridge for UDP tunnels, Ethernet, TAP and VMnet interfaces")
2078 (description "uBridge is a simple program to create user-land bridges
2079 between various technologies. Currently, bridging between UDP tunnels,
2080 Ethernet and TAP interfaces is supported. Packet capture is also supported.")
2081 (license license:gpl3+)))