To check your firewall status, you can use the following commands based on the firewall management tool you are using:
For ufw (Uncomplicated Firewall):
sudo ufw status
For firewalld:
sudo firewall-cmd --state
For iptables:
sudo iptables -L
These commands will display the current status of your firewall and any active rules.
