brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Tip: nmap -p- --open from another machine shows what your server exposes, a security audit

Security
~/tips/tip-security-nmap-all-ports-open-own-host

nmap -Pn -p- --open 192.168.1.10

Scans all TCP ports of your own server from outside and lists only the open ones.

What a server believes it exposes and what the network sees can differ. I scan my own machines from a second one.

nmap -Pn -p- --open 192.168.1.10
nmap -Pn -sV -p 22,80,443 192.168.1.10

-p- scans all 65535 TCP ports, not only the top 1000, --open prints only the open ones and -Pn skips host discovery, which helps when ping is blocked. The second line adds -sV to read service banners on chosen ports.

Compare the result with ss -tulpn on the host itself. Scanning localhost only shows loopback and proves little about the firewall. Only scan machines you own or administer.

Further reading: nmap reference guide

More Security tips tcpdump -nn -r capture.pcap port 53 mkcert -install Strict-Transport-Security: max-age=0 Referrer-Policy: strict-origin-when-cross-origin wp super-admin list All Security tips (79) All topics

Link