CrowdSec vs fail2ban on a single VPS
fail2ban bans locally by default. CrowdSec trades alert data for a community blocklist. Pick one for an Ubuntu VPS with SSH and a reverse proxy.
Filtering by topic #firewall · clear
fail2ban bans locally by default. CrowdSec trades alert data for a community blocklist. Pick one for an Ubuntu VPS with SSH and a reverse proxy.
Run RustDesk hbbs and hbbr on your own VPS: the Ed25519 key, pinned image tags, locked down ports, and the relay bandwidth your plan pays for.
Your cloud firewall or handwritten iptables may only cover IPv4, leaving services wide open on IPv6. See why it happens on a VPS and how to close the gap.
Three views of one ruleset on Ubuntu: nft list ruleset, iptables and ufw status. Find shadowed rules with counters and see why Docker skips ufw.
A new VPS is a target from its first minute. This ten minute runbook creates a user, sets SSH keys, disables root, and turns on the firewall.
An air gap means no network path at all, and a rented VPS cannot give you one. Build inference with egress denied: deny outbound traffic, stage weights.
Two SSH errors, different signals. Refused means a rejection came back. Timed out means no reply arrived in time. Learn which test to run, and from where.
Run Cloudflare Tunnel on a VPS: named tunnel, credentials file, ingress rules, systemd service, then close 80 and 443 and bind the app to localhost.
The Ollama server ships with no authentication, so anything that reaches port 11434 can run your models and pull new ones. The three fixes, in order.
FTP logs in fine and then the directory listing hangs. The data channel needs its own ports. Here is the passive range to declare, and the firewall rule.
Locked out by ufw? Get back in through the provider console, disable the firewall, read the rules that actually applied, and stop it happening again.
UFW is the simple way to run a firewall on a VPS. Set a default deny policy, allow only the ports you need, and turn it on without locking out SSH.
Tailscale needs no inbound port in most setups. See the outbound ports it uses, why 41641 is not 51820, and the ufw and firewalld rules that help on a VPS.
Install Docker Engine on Debian 13 or 12 from Docker's apt repository, settle docker.io vs docker-ce with apt policy, and avoid the firewall and root traps.
Docker publishes container ports with iptables rules that skip UFW, so a denied port still answers the internet. See the mechanism and the fixes that work.
Open SSH, allow a web port, close one, and survive a reboot with firewalld on Rocky or AlmaLinux. Zones explained, plus the --permanent trap.
See what is really listening with ss, then test the port from outside with nc or nmap. Learn why a blocked port hangs while a closed one refuses at once.
On current Ubuntu the iptables command already writes nftables rules. Prove it on your box, read the native ruleset, and see where ufw and Docker collide.