How do I check firewall rules in Linux?

Trung Minh

New member
How do I check firewall rules in Linux?
Answer
The procedure to list all rules on Linux is as follows:
  1. Open the terminal app or login using ssh: ssh
    [email protected]
  2. To list all IPv4 rules : sudo iptables -S.
  3. To list all IPv6 rules : sudo ip6tables -S.
  4. To list all tables rules : sudo iptables -L -v -n | more.
  5. To list all rules for INPUT tables :
 

Tìm kiếm

Back
Top