View Linux Firewall Settings: Quick Guide

You can check the firewall rules on a Linux system by using the following methods:

  1. By using the iptables command, you can check the current firewall rules on a Linux system.
sudo iptables -L
  1. To view the current firewall rules on a Red Hat system, use the “firewalld” command.
sudo firewall-cmd --list-all
  1. To use the ufw command, which is the default firewall management tool on Ubuntu systems, you can check the current firewall rules with the following command.
sudo ufw status

By using the above method, you can view the firewall rules, as well as the ports and services that have been opened on the current system.

bannerAds