Log inSign up

Networking and diagnostics guides

IPv6, DNS lookups, open ports, packet captures, path traces and bandwidth tools. 14 guides in this topic.

FreeRADIUS with PostgreSQL

Run a FreeRADIUS 3 server that reads users, groups and NAS clients from PostgreSQL, then test it with radtest and lock down UDP 1812 and 1813.

IPv6 on your server

Confirm your IPv6 address and default route, test reachability in both directions, cover IPv6 in the firewall and prefer IPv4 for package downloads when needed.

The ip command

Read addresses, links, routes and neighbors with the ip command from iproute2, make temporary changes safely, and know where permanent settings live.

DNS lookups with dig

Query A, AAAA, MX, TXT and CAA records with dig, ask a specific resolver or the authoritative servers, follow a trace and check DNSSEC.

Listening ports with ss and netstat

Find which program listens on which port with ss -tulpn, filter connections by state and port, count clients per address, and read the netstat equivalents.

Test ports and transfer data with netcat

Check whether a TCP or UDP port answers, open a quick listener, send raw requests and move a file between servers with nc or ncat.

Trace network paths with mtr

Run mtr in report mode in both directions, read loss and latency per hop correctly, and attach the results to a support ticket.

Capture packets with tcpdump

Watch live packets, filter by host or port, save captures to pcap files with rotation and read them later on your own computer.

Live bandwidth with iftop and nethogs

See right now which remote hosts and which local processes use your bandwidth, with iftop per connection and nethogs per program.

HTTP requests with curl

Send GET and POST requests, read headers, follow redirects, test a site before DNS points at it and time each phase of a request.

Dynamic DNS updates from a server

Keep a DNS name pointed at a home connection or a standby server, using TSIG signed nsupdate, ddclient and a small what-is-my-IP endpoint.

Latency graphs with SmokePing

Graph round trip time and packet loss to your important hosts around the clock, so short network trouble leaves a visible trace.

Traffic analysis with ntopng

Install ntopng, see hosts, flows and application protocols in a web dashboard and keep the interface private behind an SSH tunnel.

Check which ports are reachable

Work out whether a port fails because nothing listens, the firewall drops it or the path blocks it, testing from inside and from outside.