Post #2431263
2026-01-14 06:13 UTC
Firewalld
sudo apt-get install firewalld
systemctl enable --now firewalld # ssh on port 22 opened but otherwise most things blocked by default
firewall-cmd --get-active-zones
firewall-cmd --info-zone=public
firewall-cmd --zone=public --add-port=1234/tcp
firewall-cmd --runtime-to-permanent
There are some decent guides online. Also take a look in /etc/firewalld/firewalld.conf and see if you want to change anything. Pay attention to the part about Docker.
You need to know about zones, ports, and interfaces for the basics. Services are optional. Policies are more advanced.
I suggest it for your laptop, too.
Replies (0)
No replies.