No worries, ufw
might not be installed by default. You can install it easily or check if there are any other firewall rules in place. Here’s how to get it installed:
-
Install
ufw
:sudo apt-get update sudo apt-get install ufw
-
Check and manage
ufw
:- To check the status after installation:
sudo ufw status
- To allow a port:
sudo ufw allow <port>/tcp
- To disable
ufw
:sudo ufw disable
- To check the status after installation:
If you’re not keen on installing ufw
, you can also check for iptables rules directly:
sudo iptables -L
Let me know if that helps!