gnu: irssi: Update to 1.0.1.
[jackhill/guix/guix.git] / gnu / packages / networking.scm
CommitLineData
f6d9b3de 1;;; GNU Guix --- Functional package management for GNU
89e34644 2;;; Copyright © 2014, 2017 Ludovic Courtès <ludo@gnu.org>
a1c83fef 3;;; Copyright © 2015, 2016 Ricardo Wurmus <rekado@elephly.net>
a2b2aebe 4;;; Copyright © 2015 Mark H Weaver <mhw@netris.org>
9e6c7c42 5;;; Copyright © 2015, 2016 Stefan Reichör <stefan@xsteve.at>
95146623 6;;; Copyright © 2016 Raimon Grau <raimonster@gmail.com>
e05647ad 7;;; Copyright © 2016 Tobias Geerinckx-Rice <me@tobias.gr>
42ff54d5 8;;; Copyright © 2016 John Darrington <jmd@gnu.org>
834a2fc1 9;;; Copyright © 2016 Nicolas Goaziou <mail@nicolasgoaziou.fr>
d85b398b 10;;; Copyright © 2016 Eric Bavier <bavier@member.fsf.org>
5ed96226 11;;; Copyright © 2016, 2017 ng0 <ng0@libertad.pw>
307347fe 12;;; Copyright © 2016 Arun Isaac <arunisaac@systemreboot.net>
b747718e 13;;; Copyright © 2016 Benz Schenk <benz.schenk@uzh.ch>
f6d9b3de
LC
14;;;
15;;; This file is part of GNU Guix.
16;;;
17;;; GNU Guix is free software; you can redistribute it and/or modify it
18;;; under the terms of the GNU General Public License as published by
19;;; the Free Software Foundation; either version 3 of the License, or (at
20;;; your option) any later version.
21;;;
22;;; GNU Guix is distributed in the hope that it will be useful, but
23;;; WITHOUT ANY WARRANTY; without even the implied warranty of
24;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25;;; GNU General Public License for more details.
26;;;
27;;; You should have received a copy of the GNU General Public License
28;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
29
8a413bca 30(define-module (gnu packages networking)
68b14f2e 31 #:use-module (guix build-system perl)
f6d9b3de
LC
32 #:use-module ((guix licenses) #:prefix license:)
33 #:use-module (guix packages)
34 #:use-module (guix download)
834a2fc1 35 #:use-module (guix build-system glib-or-gtk)
f6d9b3de 36 #:use-module (guix build-system gnu)
9e6c7c42 37 #:use-module (guix build-system python)
8d60dd71 38 #:use-module (gnu packages)
834a2fc1
NG
39 #:use-module (gnu packages admin)
40 #:use-module (gnu packages adns)
82ee141b 41 #:use-module (gnu packages algebra)
834a2fc1
NG
42 #:use-module (gnu packages audio)
43 #:use-module (gnu packages bison)
998afc36 44 #:use-module (gnu packages check)
4fb5f830 45 #:use-module (gnu packages code)
834a2fc1 46 #:use-module (gnu packages compression)
9e6c7c42 47 #:use-module (gnu packages curl)
d85b398b 48 #:use-module (gnu packages databases)
834a2fc1 49 #:use-module (gnu packages flex)
82ee141b 50 #:use-module (gnu packages gettext)
834a2fc1
NG
51 #:use-module (gnu packages gnupg)
52 #:use-module (gnu packages gtk)
9c798f90 53 #:use-module (gnu packages libidn)
834a2fc1
NG
54 #:use-module (gnu packages linux)
55 #:use-module (gnu packages lua)
89e34644 56 #:use-module (gnu packages kerberos)
834a2fc1 57 #:use-module (gnu packages ncurses)
d85b398b 58 #:use-module (gnu packages pcre)
834a2fc1 59 #:use-module (gnu packages perl)
998afc36 60 #:use-module (gnu packages pkg-config)
834a2fc1 61 #:use-module (gnu packages python)
4fb5f830
TGR
62 #:use-module (gnu packages textutils)
63 #:use-module (gnu packages tls)
64 #:use-module (gnu packages valgrind))
f6d9b3de 65
c791efde
JD
66(define-public macchanger
67 (package
68 (name "macchanger")
69 (version "1.6.0")
70 (source (origin
71 (method url-fetch)
72 (uri (string-append "mirror://gnu/"
73 name "/" name "-" version ".tar.gz"))
74 (sha256
75 (base32
76 "1xsiivjjyhqcs6dyjcshrnxlgypvyfzacjz7gcjgl88xiw9lylri"))))
77 (build-system gnu-build-system)
78 (home-page "http://www.gnu.org/software/macchanger")
a3947cb1 79 (synopsis "Viewing and manipulating MAC addresses of network interfaces")
c791efde
JD
80 (description "GNU MAC Changer is a utility for viewing and changing MAC
81addresses of networking devices. New addresses may be set explicitly or
82randomly. They can include MAC addresses of the same or other hardware vendors
83or, more generally, MAC addresses of the same category of hardware.")
84 (license license:gpl2+)))
85
1e61e22f
TUBK
86(define-public miredo
87 (package
88 (name "miredo")
89 (version "1.2.6")
90 (source (origin
91 (method url-fetch)
92 (uri (string-append "http://www.remlab.net/files/miredo/miredo-"
93 version ".tar.xz"))
94 (sha256
95 (base32
96 "0j9ilig570snbmj48230hf7ms8kvcwi2wblycqrmhh85lksd49ps"))))
97 (build-system gnu-build-system)
98 (arguments
99 '(#:phases
100 (modify-phases %standard-phases
101 ;; The checkconf test in src/ requires network access.
102 (add-before
103 'check 'disable-checkconf-test
104 (lambda _
105 (substitute* "src/Makefile"
106 (("^TESTS = .*") "TESTS = \n")))))))
107 (home-page "http://www.remlab.net/miredo/")
108 (synopsis "Teredo IPv6 tunneling software")
109 (description
110 "Miredo is an implementation (client, relay, server) of the Teredo
111specification, which provides IPv6 Internet connectivity to IPv6 enabled hosts
112residing in IPv4-only networks, even when they are behind a NAT device.")
113 (license license:gpl2+)))
114
f6d9b3de
LC
115(define-public socat
116 (package
117 (name "socat")
4efc8eb2 118 (version "1.7.3.1")
f6d9b3de
LC
119 (source (origin
120 (method url-fetch)
121 (uri (string-append
122 "http://www.dest-unreach.org/socat/download/socat-"
123 version ".tar.bz2"))
124 (sha256
125 (base32
4efc8eb2 126 "1apvi7sahcl44arnq1ad2y6lbfqnmvx7nhz9i3rkk0f382anbnnj"))))
f6d9b3de
LC
127 (build-system gnu-build-system)
128 (arguments '(#:tests? #f)) ;no 'check' phase
129 (inputs `(("openssl" ,openssl)))
130 (home-page "http://www.dest-unreach.org/socat/")
131 (synopsis
132 "Open bidirectional communication channels from the command line")
133 (description
134 "socat is a relay for bidirectional data transfer between two independent
135data channels---files, pipes, devices, sockets, etc. It can create
136\"listening\" sockets, named pipes, and pseudo terminals.
137
138socat can be used, for instance, as TCP port forwarder, as a shell interface
139to UNIX sockets, IPv6 relay, for redirecting TCP oriented programs to a serial
140line, to logically connect serial lines on different computers, or to
141establish a relatively secure environment (su and chroot) for running client
e881752c 142or server shell scripts with network connections.")
f6d9b3de 143 (license license:gpl2)))
603090d8 144
c4947d0e
JD
145(define-public tcp-wrappers
146 (package
147 (name "tcp-wrappers")
148 (version "7.6")
149 (source (origin
150 (method url-fetch)
151 (uri (string-append
152 "ftp://ftp.porcupine.org/pub/security/tcp_wrappers_"
153 version ".tar.gz"))
154 (sha256
155 (base32
156 "0p9ilj4v96q32klavx0phw9va21fjp8vpk11nbh6v2ppxnnxfhwm"))))
157 (build-system gnu-build-system)
158 (arguments
159 `(#:phases
160 (modify-phases %standard-phases
161 (delete 'configure) ; there is no configure script
162 (delete 'check) ; there are no tests
163 (replace 'build
164 (lambda _
165 (chmod "." #o755)
166 ;; Upstream doesn't generate a shared library. So we have to do it.
167 (setenv "CC" "gcc -fno-builtin -fPIC")
168 (substitute* "Makefile"
169 (("^(all[^\n]*)" line) (string-append line " libwrap.so\n
170libwrap.so: $(LIB_OBJ)\n
171\tgcc -shared $^ -o $@\n")))
172 ;; Deal with some gcc breakage.
173 (substitute* "percent_m.c"
174 (("extern char .sys_errlist.*;") ""))
175 (substitute* "scaffold.c"
176 (("extern char .malloc.*;") ""))
177 ;; This, believe it or not, is the recommended way to build!
178 (zero? (system* "make" "REAL_DAEMON_DIR=/etc" "linux"))))
179 ;; There is no make install stage, so we have to do it ourselves.
180 (replace 'install
181 (lambda _
182 (let ((out (assoc-ref %outputs "out"))
183 (man-pages `("hosts_access.3"
184 "hosts_access.5"
185 "hosts_options.5"
186 "tcpd.8"
187 "tcpdchk.8"
188 "tcpdmatch.8"))
189 (libs `("libwrap.a"
190 "libwrap.so"))
191 (headers `("tcpd.h"))
192 (bins `("safe_finger"
193 "tcpd"
194 "tcpdchk"
195 "tcpdmatch"
196 "try-from")))
197 (for-each
198 (lambda (x)
199 (install-file x (string-append out "/include")))
200 headers)
201 (for-each
202 (lambda (x)
203 (install-file x (string-append out "/share/man/man"
204 (string-take-right x 1))))
205 man-pages)
206 (for-each
207 (lambda (x)
208 (install-file x (string-append out "/lib/")))
209 libs)
210 (for-each
211 (lambda (x)
212 (install-file x (string-append out "/bin/")))
213 bins)))))))
214 (home-page "http://www.porcupine.org")
215 (synopsis "Monitor and filter incoming requests for network services")
216 (description "With this package you can monitor and filter incoming requests for
217network services. It includes a library which may be used by daemons to
218transparently check connection attempts against an access control list.")
219 (license (license:non-copyleft "file://DISCLAIMER"
220 "See the file DISCLAIMER in the distribution."))))
221
222
603090d8
RW
223(define-public zeromq
224 (package
225 (name "zeromq")
d6c108a9 226 (version "4.0.7")
603090d8
RW
227 (source (origin
228 (method url-fetch)
229 (uri (string-append "http://download.zeromq.org/zeromq-"
230 version ".tar.gz"))
231 (sha256
232 (base32
d6c108a9 233 "00vvwhgcdr1lva2pavicvy92iad0hj8cf71n702hv6blw1kjj2z0"))))
603090d8
RW
234 (build-system gnu-build-system)
235 (home-page "http://zeromq.org")
236 (synopsis "Library for message-based applications")
237 (description
238 "The 0MQ lightweight messaging kernel is a library which extends the
239standard socket interfaces with features traditionally provided by specialized
240messaging middle-ware products. 0MQ sockets provide an abstraction of
241asynchronous message queues, multiple messaging patterns, message
242filtering (subscriptions), seamless access to multiple transport protocols and
243more.")
244 (license license:lgpl3+)))
a2b2aebe 245
2c1286f4
SB
246(define-public librdkafka
247 (package
248 (name "librdkafka")
249 (version "0.9.1")
250 (source (origin
251 (method url-fetch)
252 (uri (string-append
253 "https://github.com/edenhill/librdkafka/archive/"
254 version ".tar.gz"))
255 (file-name (string-append name "-" version ".tar.gz"))
256 (sha256
257 (base32
258 "10ldx7g7ymmg17snzx78vy4n8ma1rjx0agzi34g15j2fk867xmas"))))
259 (build-system gnu-build-system)
260 (arguments
261 '(#:phases
262 (modify-phases %standard-phases
263 (replace 'configure
264 ;; its custom configure script doesn't understand 'CONFIG_SHELL'.
265 (lambda* (#:key outputs #:allow-other-keys)
266 (let ((out (assoc-ref outputs "out")))
267 ;; librdkafka++.so lacks RUNPATH for librdkafka.so
268 (setenv "LDFLAGS"
269 (string-append "-Wl,-rpath=" out "/lib"))
270 (zero? (system* "./configure"
271 (string-append "--prefix=" out)))))))))
272 (native-inputs
273 `(("python" ,python-wrapper)))
274 (propagated-inputs
275 `(("zlib" ,zlib))) ; in the Libs.private field of rdkafka.pc
276 (home-page "https://github.com/edenhill/librdkafka")
277 (synopsis "Apache Kafka C/C++ client library")
278 (description
279 "librdkafka is a C library implementation of the Apache Kafka protocol,
280containing both Producer and Consumer support.")
281 (license license:bsd-2)))
282
a2b2aebe
MW
283(define-public libndp
284 (package
285 (name "libndp")
ad42be83 286 (version "1.6")
a2b2aebe
MW
287 (source (origin
288 (method url-fetch)
289 (uri (string-append "http://libndp.org/files/"
290 name "-" version ".tar.gz"))
291 (sha256
292 (base32
ad42be83 293 "03mczwrxqbp54msafxzzyhaazkvjdwm2kipjkrb5xg8kw22glz8c"))))
a2b2aebe
MW
294 (build-system gnu-build-system)
295 (home-page "http://libndp.org/")
296 (synopsis "Library for Neighbor Discovery Protocol")
297 (description
298 "libndp contains a library which provides a wrapper for IPv6 Neighbor
299Discovery Protocol. It also provides a tool named ndptool for sending and
300receiving NDP messages.")
301 (license license:lgpl2.1+)))
5df2316d
MW
302
303(define-public ethtool
304 (package
305 (name "ethtool")
3fe7cb87 306 (version "4.8")
5df2316d
MW
307 (source (origin
308 (method url-fetch)
309 (uri (string-append "mirror://kernel.org/software/network/"
310 name "/" name "-" version ".tar.xz"))
311 (sha256
312 (base32
3fe7cb87 313 "0hsaxcka0ks76k23sb65c46i53hjm465sgxyn3m3301diqlgwga0"))))
5df2316d
MW
314 (build-system gnu-build-system)
315 (home-page "https://www.kernel.org/pub/software/network/ethtool/")
316 (synopsis "Display or change Ethernet device settings")
317 (description
318 "ethtool can be used to query and change settings such as speed,
319auto-negotiation and checksum offload on many network devices, especially
320Ethernet devices.")
321 (license license:gpl2)))
24a848c8
SR
322
323(define-public ifstatus
324 (package
325 (name "ifstatus")
326 (version "1.1.0")
327 (source (origin
328 (method url-fetch)
de67e922
LF
329 (uri (string-append "mirror://sourceforge/ifstatus/ifstatus/"
330 "ifstatus%20v" version "/ifstatus-v"
24a848c8
SR
331 version ".tar.gz"))
332 (sha256
333 (base32
334 "045cbsq9ps32j24v8y5hpyqxnqn9mpaf3mgvirlhgpqyb9jsia0c"))
335 (modules '((guix build utils)))
336 (snippet
337 '(substitute* "Main.h"
338 (("#include <stdio.h>")
339 "#include <stdio.h>\n#include <stdlib.h>")))))
340 (build-system gnu-build-system)
341 (arguments
342 '(#:tests? #f ; no "check" target
343 #:phases
344 (modify-phases %standard-phases
345 (delete 'configure) ; no configure script
346 (replace 'install
347 (lambda* (#:key outputs #:allow-other-keys)
348 (let* ((out (assoc-ref outputs "out"))
349 (bin (string-append out "/bin")))
350 (mkdir-p bin)
351 (copy-file "ifstatus"
352 (string-append bin "/ifstatus"))))))))
353 (inputs `(("ncurses" ,ncurses)))
354 (home-page "http://ifstatus.sourceforge.net/graphic/index.html")
355 (synopsis "Text based network interface status monitor")
356 (description
357 "IFStatus is a simple, easy-to-use program for displaying commonly
8874f766 358needed/wanted real-time traffic statistics of multiple network
24a848c8
SR
359interfaces, with a simple and efficient view on the command line. It is
360intended as a substitute for the PPPStatus and EthStatus projects.")
8874f766 361 (license license:gpl2+)))
95146623
RG
362
363(define-public nload
364 (package
365 (name "nload")
366 (version "0.7.4")
367 (source (origin
368 (method url-fetch)
de67e922
LF
369 (uri (string-append "mirror://sourceforge/nload/nload/" version
370 "/nload-" version ".tar.gz"))
95146623
RG
371 (sha256
372 (base32
373 "1rb9skch2kgqzigf19x8bzk211jdfjfdkrcvaqyj89jy2pkm3h61"))))
374 (build-system gnu-build-system)
375 (inputs `(("ncurses" ,ncurses)))
376 (home-page "http://www.roland-riegel.de/nload/")
377 (synopsis "Realtime console network usage monitor")
378 (description
379 "Nload is a console application which monitors network traffic and
380bandwidth usage in real time. It visualizes the in- and outgoing traffic using
381two graphs and provides additional info like total amount of transfered data
382and min/max network usage.")
383 (license license:gpl2+)))
998afc36
TGR
384
385(define-public iodine
386 (package
387 (name "iodine")
388 (version "0.7.0")
389 (source (origin
390 (method url-fetch)
391 (uri (string-append "http://code.kryo.se/" name "/"
392 name "-" version ".tar.gz"))
393 (sha256
394 (base32
395 "0gh17kcxxi37k65zm4gqsvbk3aw7yphcs3c02pn1c4s2y6n40axd"))))
396 (build-system gnu-build-system)
397 (arguments
398 '(#:phases
399 (modify-phases %standard-phases
400 (delete 'configure)
60880ac5
TGR
401 (add-before 'build 'fix-ifconfig-path
402 ;; This package works only with the net-tools version of ifconfig.
403 (lambda* (#:key inputs #:allow-other-keys)
404 (substitute* "src/tun.c"
405 (("PATH=[^ ]* ")
406 (string-append (assoc-ref inputs "net-tools") "/sbin/")))))
998afc36 407 (add-before 'check 'delete-failing-tests
60880ac5 408 ;; Avoid https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=802105.
998afc36
TGR
409 (lambda _
410 (substitute* "tests/common.c"
411 (("tcase_add_test\\(tc, \
412test_parse_format_ipv(4(|_listen_all|_mapped_ipv6)|6)\\);")
413 "")))))
414 #:make-flags (list "CC=gcc"
415 (string-append "prefix=" (assoc-ref %outputs "out")))
416 #:test-target "test"))
60880ac5
TGR
417 (inputs `(("net-tools" ,net-tools)
418 ("zlib" ,zlib)))
998afc36
TGR
419 (native-inputs `(("check" ,check)
420 ("pkg-config" ,pkg-config)))
421 (home-page "http://code.kryo.se/iodine/")
422 (synopsis "Tunnel IPv4 data through a DNS server")
423 (description "Iodine tunnels IPv4 data through a DNS server. This
424can be useful in different situations where internet access is firewalled, but
425DNS queries are allowed. The bandwidth is asymmetrical, with limited upstream
426and up to 1 Mbit/s downstream.")
427 ;; src/md5.[ch] is released under the zlib license
428 (license (list license:isc license:zlib))))
834a2fc1 429
9c798f90 430(define-public whois
431 (package
432 (name "whois")
5ed96226 433 (version "5.2.14")
9c798f90 434 (source
435 (origin
436 (method url-fetch)
437 (uri (string-append "mirror://debian/pool/main/w/whois/"
438 name "_" version ".tar.xz"))
439 (sha256
440 (base32
5ed96226 441 "1lmh7168yby1ma8r1svgvmv9hbgjyniy9c64r6lby3zdmd0sy7d4"))))
9c798f90 442 (build-system gnu-build-system)
443 ;; TODO: unbundle mkpasswd binary + its po files.
444 (arguments
445 `(#:tests? #f ; Does not exist
446 #:make-flags (list "CC=gcc"
447 (string-append "prefix=" (assoc-ref %outputs "out")))
448 #:phases
449 (modify-phases %standard-phases
450 (delete 'configure) ; No configure
451 (add-before 'build 'setenv
452 (lambda _
453 (setenv "HAVE_ICONV" "1")
268b3802
EF
454 (setenv "HAVE_LIBIDN" "1")
455 #t)))))
9c798f90 456 (inputs
457 `(("libidn" ,libidn)))
458 (native-inputs
7c90d0f4 459 `(("gettext" ,gettext-minimal)
9c798f90 460 ("perl" ,perl)))
461 (synopsis "Improved whois client")
462 (description "This whois client is intelligent and can
463automatically select the appropriate whois server for most queries.
464Because of historical reasons this also includes a tool called mkpasswd
465which can be used to encrypt a password with @code{crypt(3)}.")
466 (home-page "https://github.com/rfc1036/whois")
467 (license license:gpl2+)))
468
834a2fc1
NG
469(define-public wireshark
470 (package
471 (name "wireshark")
49a984ce 472 (version "2.2.4")
834a2fc1
NG
473 (synopsis "Network traffic analyzer")
474 (source
475 (origin
476 (method url-fetch)
477 (uri (string-append "https://www.wireshark.org/download/src/wireshark-"
478 version ".tar.bz2"))
479 (sha256
480 (base32
49a984ce 481 "049r5962yrajhhz9r4dsnx403dab50d6091y2mw298ymxqszp9s2"))))
834a2fc1
NG
482 (build-system glib-or-gtk-build-system)
483 (inputs `(("bison" ,bison)
484 ("c-ares" ,c-ares)
485 ("flex" ,flex)
486 ("gnutls" ,gnutls)
487 ("gtk+" ,gtk+)
488 ("libcap" ,libcap)
489 ("libgcrypt" ,libgcrypt)
490 ("libnl" ,libnl)
491 ("libpcap" ,libpcap)
331ef882 492 ("lua" ,lua-5.2)
834a2fc1
NG
493 ("krb5" ,mit-krb5)
494 ("openssl" ,openssl)
495 ("portaudio" ,portaudio)
496 ("sbc" ,sbc)
497 ("zlib" ,zlib)))
498 (native-inputs `(("perl" ,perl)
499 ("pkg-config" ,pkg-config)
500 ("python" ,python-wrapper)))
501 (arguments
502 `(#:configure-flags
503 (list (string-append "--with-c-ares=" (assoc-ref %build-inputs "c-ares"))
504 (string-append "--with-krb5=" (assoc-ref %build-inputs "krb5"))
505 (string-append "--with-libcap=" (assoc-ref %build-inputs "libcap"))
506 (string-append "--with-lua=" (assoc-ref %build-inputs "lua"))
507 (string-append "--with-pcap=" (assoc-ref %build-inputs "libpcap"))
508 (string-append "--with-portaudio="
509 (assoc-ref %build-inputs "portaudio"))
510 (string-append "--with-sbc=" (assoc-ref %build-inputs "sbc"))
511 (string-append "--with-ssl=" (assoc-ref %build-inputs "openssl"))
512 (string-append "--with-zlib=" (assoc-ref %build-inputs "zlib"))
513 "--without-qt")))
514 (description "Wireshark is a network protocol analyzer, or @dfn{packet
515sniffer}, that lets you capture and interactively browse the contents of
516network frames.")
517 (license license:gpl2+)
518 (home-page "https://www.wireshark.org/")))
82ee141b
TGR
519
520(define-public httping
521 (package
522 (name "httping")
2f968727 523 (version "2.5")
82ee141b
TGR
524 (source
525 (origin
526 (method url-fetch)
527 (uri (string-append "https://www.vanheusden.com/httping/httping-"
528 version ".tgz"))
529 (sha256
530 (base32
2f968727 531 "1y7sbgkhgadmd93x1zafqc4yp26ssiv16ni5bbi9vmvvdl55m29y"))))
82ee141b
TGR
532 (build-system gnu-build-system)
533 (native-inputs
b94a6ca0 534 `(("gettext" ,gettext-minimal)))
82ee141b
TGR
535 (inputs
536 `(("fftw" ,fftw)
537 ("ncurses" ,ncurses)
538 ("openssl" ,openssl)))
539 (arguments
540 `(#:make-flags (list "CC=gcc"
541 (string-append "DESTDIR=" (assoc-ref %outputs "out"))
542 "PREFIX=")
543 #:tests? #f)) ; no tests
544 (home-page "https://www.vanheusden.com/httping/")
545 (synopsis "Web server latency and throughput monitor")
546 (description
547 "httping measures how long it takes to connect to a web server, send an
548HTTP(S) request, and receive the reply headers. It is somewhat similar to
549@command{ping}, but can be used even in cases where ICMP traffic is blocked
550by firewalls or when you want to monitor the response time of the actual web
551application stack itself.")
552 (license license:gpl2))) ; with permission to link with OpenSSL
68b14f2e 553
9e6c7c42
SR
554(define-public httpstat
555 (package
556 (name "httpstat")
557 (version "1.2.1")
558 (source
559 (origin
560 (method url-fetch)
561 (uri (pypi-uri "httpstat" version))
562 (sha256
563 (base32
564 "1chw2nk56vaq87aba012a270k9na06hfx1pfbsrc3jfvlc2kb9hb"))))
565 (build-system python-build-system)
566 (inputs `(("curl" ,curl)))
567 (arguments
568 '(#:phases
569 (modify-phases %standard-phases
570 (add-before 'build 'fix-curl-path
571 (lambda* (#:key inputs #:allow-other-keys)
572 (substitute* "httpstat.py"
573 (("ENV_CURL_BIN.get\\('curl'\\)")
574 (string-append "ENV_CURL_BIN.get('"
575 (assoc-ref inputs "curl")
576 "/bin/curl')"))))))))
577 (home-page "https://github.com/reorx/httpstat")
578 (synopsis "Visualize curl statistics")
579 (description
580 "@command{httpstat} is a tool to visualize statistics from the
581@command{curl} HTTP client. It acts as a wrapper for @command{curl} and
582prints timing information for each step of the HTTP request (DNS lookup,
583TCP connection, TLS handshake and so on) in the terminal.")
584 (license license:expat)))
585
be9f3a83
AI
586(define-public bwm-ng
587 (package
588 (name "bwm-ng")
589 (version "0.6.1")
590 (source
591 (origin
592 (method url-fetch)
593 (uri (string-append "https://www.gropp.org/bwm-ng/bwm-ng-"
594 version ".tar.gz"))
595 (sha256
596 (base32
597 "1w0dwpjjm9pqi613i8glxrgca3rdyqyp3xydzagzr5ndc34z6z02"))))
598 (build-system gnu-build-system)
599 (inputs `(("ncurses" ,ncurses)))
600 (synopsis "Console based live network and disk I/O bandwidth monitor")
601 (description "Bandwidth Monitor NG is a small and simple console based
602live network and disk I/O bandwidth monitor.")
603 (home-page "https://www.gropp.org/?id=projects&sub=bwm-ng")
604 (license license:gpl2)))
605
d85b398b
EB
606(define-public aircrack-ng
607 (package
608 (name "aircrack-ng")
609 (version "1.2-rc4")
610 (source
611 (origin
612 (method url-fetch)
613 (uri (string-append "http://download.aircrack-ng.org/aircrack-ng-"
614 version ".tar.gz"))
615 (sha256
616 (base32
617 "0dpzx9kddxpgzmgvdpl3rxn0jdaqhm5wxxndp1xd7d75mmmc2fnr"))))
618 (build-system gnu-build-system)
619 (native-inputs
620 `(("pkg-config" ,pkg-config)))
621 (inputs
622 `(("libgcrypt" ,libgcrypt)
623 ("libnl" ,libnl)
624 ("ethtool" ,ethtool)
625 ("pcre" ,pcre)
626 ("sqlite" ,sqlite)
627 ("zlib" ,zlib)))
628 (arguments
629 `(#:make-flags `("sqlite=true"
630 "gcrypt=true"
631 "libnl=true"
632 "pcre=true"
633 "experimental=true" ;build wesside-ng, etc.
634 "AVX2FLAG=N" "AVX1FLAG=N" "SSEFLAG=Y"
635 ,(string-append "prefix=" %output))
636 #:phases (modify-phases %standard-phases
637 (delete 'configure) ;no configure phase
638 (add-after 'build 'absolutize-tools
639 (lambda* (#:key inputs #:allow-other-keys)
640 (let ((ethtool (string-append (assoc-ref inputs "ethtool")
641 "/sbin/ethtool")))
642 (substitute* "scripts/airmon-ng"
643 (("\\[ ! -x \"\\$\\(command -v ethtool 2>&1)\" \\]")
644 (string-append "! " ethtool " --version "
645 ">/dev/null 2>&1"))
646 (("\\$\\(ethtool")
647 (string-append "$(" ethtool)))
648 #t))))))
649 (home-page "http://www.aircrack-ng.org")
650 (synopsis "Assess WiFi network security")
651 (description
652 "Aircrack-ng is a complete suite of tools to assess WiFi network
653security. It focuses on different areas of WiFi security: monitoring,
654attacking, testing, and cracking. All tools are command-line driven, which
655allows for heavy scripting.")
656 (license (list license:gpl2+ license:bsd-3))))
657
68b14f2e
DM
658(define-public perl-net-dns
659 (package
660 (name "perl-net-dns")
661 (version "1.06")
662 (source
663 (origin
664 (method url-fetch)
665 (uri (string-append
666 "mirror://cpan/authors/id/N/NL/NLNETLABS/Net-DNS-"
667 version
668 ".tar.gz"))
669 (sha256
670 (base32
671 "07m5331132h9xkh1i6jv9d80f571yva27iqa31aq4sm31iw7nn53"))))
672 (build-system perl-build-system)
673 (inputs
674 `(("perl-digest-hmac" ,perl-digest-hmac)))
675 (home-page "http://search.cpan.org/dist/Net-DNS")
676 (synopsis
677 "Perl Interface to the Domain Name System")
678 (description "Net::DNS is the Perl Interface to the Domain Name System.")
679 (license license:x11)))
87b14091
DM
680
681(define-public perl-socket6
682 (package
683 (name "perl-socket6")
684 (version "0.28")
685 (source
686 (origin
687 (method url-fetch)
688 (uri (string-append
689 "mirror://cpan/authors/id/U/UM/UMEMOTO/Socket6-"
690 version
691 ".tar.gz"))
692 (sha256
693 (base32
694 "11j5jzqbzmwlws9zals43ry2f1nw9qy6im7yhn9ck5rikywrmm5z"))))
695 (build-system perl-build-system)
696 (arguments
697 `(#:phases
698 (modify-phases %standard-phases
699 (replace 'configure
700 (lambda* (#:key outputs #:allow-other-keys)
701 (let* ((out (assoc-ref outputs "out"))
702 (args `("Makefile.PL"
703 ,(string-append "PREFIX=" out)
704 "INSTALLDIRS=site")))
705 (setenv "CONFIG_SHELL" (which "sh"))
706 (zero? (apply system* "perl" args))))))))
707 (home-page "http://search.cpan.org/dist/Socket6")
708 (synopsis
709 "IPv6 related part of the C socket.h defines and structure manipulators for Perl")
710 (description "Socket6 binds the IPv6 related part of the C socket header
711definitions and structure manipulators for Perl.")
712 (license license:bsd-3)))
8d60dd71
DM
713
714(define-public perl-net-dns-resolver-programmable
715 (package
716 (name "perl-net-dns-resolver-programmable")
717 (version "v0.003")
718 (source
719 (origin
720 (method url-fetch)
721 (uri (string-append
722 "mirror://cpan/authors/id/J/JM/JMEHNLE/net-dns-resolver-programmable/"
723 "Net-DNS-Resolver-Programmable-" version ".tar.gz"))
724 (sha256
725 (base32
726 "1v3nl2kaj4fs55n1617n53q8sa3mir06898vpy1rq98zjih24h4d"))
727 (patches
728 (search-patches
729 "perl-net-dns-resolver-programmable-Fix-broken-interface.patch"))))
730 (build-system perl-build-system)
731 (native-inputs
732 `(("perl-module-build" ,perl-module-build)))
733 (inputs `(("perl-net-dns" ,perl-net-dns)))
734 (home-page
735 "http://search.cpan.org/dist/Net-DNS-Resolver-Programmable")
736 (synopsis
737 "Programmable DNS resolver class for offline emulation of DNS")
738 (description "Net::DNS::Resolver::Programmable is a programmable DNS resolver for
739offline emulation of DNS.")
740 (license (package-license perl))))
1201eab9
DM
741
742(define-public perl-netaddr-ip
743 (package
744 (name "perl-netaddr-ip")
745 (version "4.079")
746 (source
747 (origin
748 (method url-fetch)
749 (uri (string-append
750 "mirror://cpan/authors/id/M/MI/MIKER/NetAddr-IP-"
751 version
752 ".tar.gz"))
753 (sha256
754 (base32
755 "1rx0dinrz9fk9qcg4rwqq5n1dm3xv2arymixpclcv2q2nzgq4npc"))))
756 (build-system perl-build-system)
757 (arguments
758 `(#:phases
759 (modify-phases %standard-phases
760 (replace 'configure
761 (lambda* (#:key outputs #:allow-other-keys)
762 (let* ((out (assoc-ref outputs "out"))
763 (args `("Makefile.PL"
764 ,(string-append "PREFIX=" out)
765 "INSTALLDIRS=site")))
766 (setenv "CONFIG_SHELL" (which "sh"))
767 (zero? (apply system* "perl" args))))))))
768 (home-page
769 "http://search.cpan.org/dist/NetAddr-IP")
770 (synopsis
771 "Manages IPv4 and IPv6 addresses and subnets")
772 (description "NetAddr::IP manages IPv4 and IPv6 addresses and subsets.")
773 (license (package-license perl))))
3ed361ea
DM
774
775(define-public perl-net-patricia
776 (package
777 (name "perl-net-patricia")
778 (version "1.22")
779 (source
780 (origin
781 (method url-fetch)
782 (uri (string-append
783 "mirror://cpan/authors/id/G/GR/GRUBER/Net-Patricia-"
784 version
785 ".tar.gz"))
786 (sha256
787 (base32
788 "0ln5f57vc8388kyh9vhx2infrdzfhbpgyby74h1qsnhwds95m0vh"))))
789 (build-system perl-build-system)
790 (inputs
791 `(("perl-net-cidr-lite" ,perl-net-cidr-lite)
792 ("perl-socket6" ,perl-socket6)))
793 (home-page
794 "http://search.cpan.org/dist/Net-Patricia")
795 (synopsis
796 "Patricia Trie Perl module for fast IP address lookups")
797 (description
798 "Net::Patricia does IP address lookups quickly in Perl.")
799 ;; The bindings are licensed under GPL2 or later.
800 ;; libpatricia is licensed under 2-clause BSD.
801 (license (list license:gpl2+ license:bsd-2))))
b09a8b6f
DM
802
803(define-public perl-net-cidr-lite
804 (package
805 (name "perl-net-cidr-lite")
806 (version "0.21")
807 (source
808 (origin
809 (method url-fetch)
810 (uri (string-append
811 "mirror://cpan/authors/id/D/DO/DOUGW/Net-CIDR-Lite-"
812 version
813 ".tar.gz"))
814 (sha256
815 (base32
816 "14shj73zbqmfjbp0qz1fs9j4p2dpvz5hfkm4qfdjbydflbl2b8fg"))))
817 (build-system perl-build-system)
818 (home-page
819 "http://search.cpan.org/dist/Net-CIDR-Lite")
820 (synopsis
821 "Perl extension for merging IPv4 or IPv6 CIDR addresses")
822 (description "Net::CIDR::Lite merges IPv4 or IPv6 CIDR addresses.")
823 (license license:gpl1+)))
e741c4e4
DM
824
825;; TODO: Use the geolite-mirror-simple.pl script from the example
826;; directory to stay current with the databases. How?
827(define-public perl-geo-ip
828 (package
829 (name "perl-geo-ip")
830 (version "1.50")
831 (source
832 (origin
833 (method url-fetch)
834 (uri (string-append
835 "mirror://cpan/authors/id/M/MA/MAXMIND/Geo-IP-"
836 version
837 ".tar.gz"))
838 (sha256
839 (base32
840 "0ar69lrm26rp6sqxjf0p6cvjfprjx8gkxx11r399lvh99rqfl7zr"))))
841 (build-system perl-build-system)
842 (home-page "http://search.cpan.org/dist/Geo-IP")
843 (synopsis
844 "Look up location and network information by IP Address in Perl")
845 (description "The Perl module 'Geo::IP'. It looks up location and network
846information by IP Address.")
847 (license (package-license perl))))
e818f321
DM
848
849(define-public perl-io-socket-inet6
850 (package
851 (name "perl-io-socket-inet6")
852 (version "2.72")
853 (source
854 (origin
855 (method url-fetch)
856 (uri (string-append
857 "mirror://cpan/authors/id/S/SH/SHLOMIF/IO-Socket-INET6-"
858 version
859 ".tar.gz"))
860 (sha256
861 (base32
862 "1fqypz6qa5rw2d5y2zq7f49frwra0aln13nhq5gi514j2zx21q45"))))
863 (build-system perl-build-system)
864 (native-inputs
865 `(("perl-module-build" ,perl-module-build)
866 ("perl-test-pod" ,perl-test-pod)
867 ("perl-test-pod-coverage" ,perl-test-pod-coverage)))
868 (inputs `(("perl-socket6" ,perl-socket6)))
869 (arguments `(;; Need network socket API
870 #:tests? #f))
871 (home-page
872 "http://search.cpan.org/dist/IO-Socket-INET6")
873 (synopsis
874 "Perl object interface for AF_INET/AF_INET6 domain sockets")
875 (description "IO::Socket::INET6 is an interface for AF_INET/AF_INET6 domain
876sockets in Perl.")
877 (license (package-license perl))))
a1c83fef 878
879(define-public proxychains-ng
880 (package
881 (name "proxychains-ng")
cdb93e50 882 (version "4.12")
a1c83fef 883 (source (origin
884 (method url-fetch)
885 (uri (string-append "https://github.com/rofl0r/" name "/releases/"
886 "download/v" version "/" name "-" version
cdb93e50 887 ".tar.xz"))
a1c83fef 888 (sha256
889 (base32
cdb93e50 890 "0kiss3ih6cwayzvqi5cx4kw4vh7r2kfxlbgk56v1f1066ncm8aj8"))))
a1c83fef 891 (build-system gnu-build-system)
892 (arguments
893 `(#:tests? #f ; there are no tests
894 #:make-flags '("CC=gcc")
895 #:phases
896 (modify-phases %standard-phases
897 (add-after 'unpack 'fix-configure-script
898 (lambda _
899 ;; The configure script is very intolerant to unknown arguments,
900 ;; such as "CONFIG_SHELL".
901 (substitute* "configure"
902 (("\\*\\) break ;;" line)
903 (string-append "[A-Z]*) shift ;;\n"
904 line)))
905 #t)))))
906 (synopsis "Redirect any TCP connection through a proxy or proxy chain")
907 (description "Proxychains-ng is a preloader which hooks calls to sockets
908in dynamically linked programs and redirects them through one or more SOCKS or
909HTTP proxies.")
910 (home-page "https://github.com/rofl0r/proxychains-ng")
911 (license license:gpl2+)))
93666cf7 912
913(define-public enet
914 (package
915 (name "enet")
916 (version "1.3.13")
917 (source (origin
918 (method url-fetch)
919 (uri (string-append "http://enet.bespin.org/download/"
920 name "-" version ".tar.gz"))
921 (sha256
922 (base32
923 "0p53mnmjbm56wizwraznynx13fcibcxiqny110dp6a5a3w174q73"))))
924 (build-system gnu-build-system)
925 (native-inputs
926 `(("pkg-config" ,pkg-config)))
927 (synopsis
928 "Network communication layer on top of UDP")
929 (description
930 "ENet's purpose is to provide a relatively thin, simple and robust network
931communication layer on top of UDP. The primary feature it provides is optional
932reliable, in-order delivery of packets. ENet omits certain higher level
933networking features such as authentication, server discovery, encryption, or
934other similar tasks that are particularly application specific so that the
935library remains flexible, portable, and easily embeddable.")
936 (home-page "http://enet.bespin.org")
937 (license license:expat)))
4fb5f830
TGR
938
939(define-public sslh
940 (package
941 (name "sslh")
942 (version "1.18")
943 (source (origin
944 (method url-fetch)
945 (uri (string-append "https://github.com/yrutschle/sslh/archive/v"
946 version ".tar.gz"))
947 (file-name (string-append name "-" version ".tar.gz"))
948 (sha256
949 (base32
950 "1vzw7a7s9lhspbn5zn3hw8hir4pkjgbd68yys4hfsnjp1h7bzjpn"))))
951 (build-system gnu-build-system)
952 (native-inputs
953 `(;; Tests dependencies.
954 ("lcov" ,lcov)
955 ("perl" ,perl)
956 ("perl-io-socket-inet6" ,perl-io-socket-inet6)
957 ("perl-socket6" ,perl-socket6)
958 ("psmisc" ,psmisc)
959 ("valgrind" ,valgrind)))
960 (inputs
961 `(("libcap" ,libcap)
962 ("libconfig" ,libconfig)
963 ("tcp-wrappers" ,tcp-wrappers)))
964 (arguments
965 '(#:phases
966 (modify-phases %standard-phases
967 (delete 'configure) ; no configure script
968 (add-before 'check 'fix-tests
969 (lambda _
970 (substitute* "./t"
971 (("\"/tmp") "$ENV{\"TMPDIR\"} . \"")
972 ;; The Guix build environment lacks ‘ip6-localhost’.
973 (("ip6-localhost") "localhost"))
974 #t))
975 ;; Many of these files are mentioned in the man page. Install them.
976 (add-after 'install 'install-documentation
977 (lambda* (#:key outputs #:allow-other-keys)
978 (let* ((out (assoc-ref outputs "out"))
979 (doc (string-append out "/share/doc/sslh")))
980 (install-file "README.md" doc)
981 (for-each
982 (lambda (file)
983 (install-file file (string-append doc "/examples")))
984 (append (find-files "." "\\.cfg")
985 (find-files "scripts"))))
986 #t)))
987 #:make-flags (list "CC=gcc"
988 "USELIBCAP=1"
989 "USELIBWRAP=1"
990 (string-append "PREFIX=" (assoc-ref %outputs "out")))
991 #:test-target "test"))
992 (home-page "http://www.rutschle.net/tech/sslh.shtml")
993 (synopsis "Applicative network protocol demultiplexer")
994 (description
995 "sslh is a network protocol demultiplexer. It acts like a switchboard,
996accepting connections from clients on one port and forwarding them to different
997servers based on the contents of the first received data packet. Detection of
998common protocols like HTTP(S), SSL, SSH, OpenVPN, tinc, and XMPP is already
999implemented, but any other protocol that matches a regular expression can be
1000added. sslh's name comes from its original application of serving both SSH and
1001HTTPS on port 443, allowing SSH connections from inside corporate firewalls
1002that block port 22.")
1003 (license (list license:bsd-2 ; tls.[ch]
1004 license:gpl2+)))) ; everything else
b747718e
BS
1005
1006(define-public iperf
1007 (package
1008 (name "iperf")
1009 (version "3.1.3")
1010 (source (origin
1011 (method url-fetch)
1012 (uri (string-append "http://downloads.es.net/pub/iperf"
1013 "/iperf-" version ".tar.gz"))
1014 (sha256
1015 (base32
1016 "1gwmhm29zlp5grrpglmqj7vgx19s6xy33hk6hpbn8jnpn5lxpn30"))))
1017 (build-system gnu-build-system)
1018 (synopsis "TCP, UDP and SCTP bandwidth measurement tool")
1019 (description
1020 "iPerf is a tool to measure achievable bandwidth on IP networks. It
1021supports tuning of various parameters related to timing, buffers and
1022protocols (TCP, UDP, SCTP with IPv4 and IPv6). For each test it reports
1023the bandwidth, loss, and other parameters.")
1024 (home-page "http://software.es.net/iperf/")
1025 (license (list license:bsd-3 ; Main distribution.
1026 license:ncsa ; src/{units,iperf_locale,tcp_window_size}.c
1027 license:expat ; src/{cjson,net}.[ch]
1028 license:public-domain)))) ; src/portable_endian.h
b7f3cf2c
AI
1029
1030(define-public nethogs
1031 (package
1032 (name "nethogs")
1033 (version "0.8.5")
1034 (source (origin
1035 (method url-fetch)
1036 (uri (string-append "https://github.com/raboof/nethogs/archive/v"
1037 version ".tar.gz"))
1038 (sha256
1039 (base32
1040 "1k4x8r7s4dgcb6n2rjn28h2yyij92mwm69phncl3597cdxr954va"))
1041 (file-name (string-append name "-" version ".tar.gz"))))
1042 (build-system gnu-build-system)
1043 (inputs
1044 `(("libpcap" ,libpcap)
1045 ("ncurses" ,ncurses)))
1046 (arguments
1047 `(#:make-flags `("CC=gcc"
1048 ,(string-append "PREFIX=" %output))
1049 #:phases
1050 (modify-phases %standard-phases
1051 (delete 'configure)))) ; No ./configure script.
1052 (home-page "https://github.com/raboof/nethogs")
1053 (synopsis "Per-process bandwidth monitor")
1054 (description "NetHogs is a small 'net top' tool for Linux. Instead of
1055breaking the traffic down per protocol or per subnet, like most tools do, it
1056groups bandwidth by process.
1057
1058NetHogs does not rely on a special kernel module to be loaded. If there's
1059suddenly a lot of network traffic, you can fire up NetHogs and immediately see
1060which PID is causing this. This makes it easy to identify programs that have
1061gone wild and are suddenly taking up your bandwidth.")
1062 (license license:gpl2+)))