Skip to content

portop v0.4.0

Choose a tag to compare

@github-actions github-actions released this 07 Nov 11:30
· 4 commits to main since this release
54b31a8

portop now recognises Multipath TCP sockets on Linux, and reads the ufw rules that open every port to a subnet, which previously made every port look blocked.

New

  • Multipath TCP on Linux. Sockets whose upper-layer protocol is MPTCP show MPTCP (MPTCP6 for IPv6) in the PROTO column and match portop mptcp; --json adds "mptcp": true to them. Go 1.24 and later open MPTCP listeners by default, so most Go servers (Caddy, Traefik, Grafana, Prometheus) now show it. Their protocol stays TCP: service names, the firewall verdict, --wait, --free, --compose, baselines and metrics are unchanged, and an existing baseline reports no drift. Thanks to @ottenhoff for the contribution (#36).

Fixes

  • ufw rules for every port. A rule without a port, such as Anywhere ALLOW IN 192.168.1.0/24, was skipped, so with a default deny every port read blocked; such rules now cover every port and the port reads restricted. Application profiles (OpenSSH) are still skipped. Thanks to @andgriva for the report (#37).
  • ufw rule order. A rule for some sources no longer hides a later one for everyone: with a LAN rule before 22/tcp ALLOW IN Anywhere, port 22 now reads allowed instead of restricted.

Changelog

Features

  • bc12228 feat: identify MPTCP sockets on Linux

Fixes

  • d7f3611 fix(firewall): read ufw rules that open every port to some sources

Other changes

  • e32e421 Add badge for portop on The Terminal Index
  • 8f1346b Update README.md
  • 921a4ed refactor: mark MPTCP sockets with a flag instead of a protocol