How Set Iptables Rule in Linux?
Contents

How do I make iptables rules in Linux?

Basic IPtables Rules for Linux

  1. Check the Default Policy Chain Behavior. $ sudo iptables -L | grep policy. …
  2. Check the Current Rules. $ sudo iptables -L. …
  3. List Rules by Specification. $ sudo iptables -S. …
  4. Check Your Iptables Status. …
  5. Reset Your Iptables Rules. …
  6. Saving Modified Iptables. …
  7. Flush Iptables and Persist Changes.

How do I change iptables rules?

In this how-to, we will illustrate three ways to edit iptables Rules :

  1. CLI : iptables command line interface and system configuration file /etc/sysconfig/iptables.
  2. TUI (text-based) interface : setup or system-config-firewall-tui.
  3. GUI : system-config-firewall.

24 дек. 2017 г.

Marcus Vance

Marcus Vance

Cybersecurity & Digital Privacy Researcher

Marcus Vance is a cybersecurity auditor and technology writer dedicated to educating the public about online safety, data privacy regulations, enterprise security, and emerging cyber threats.

Share this article
Twitter Facebook Pinterest