How Set Iptables Rule in Linux?
Contents How Do I Make Iptables Rules in Linux? Basic Iptables Rules for Linux Check the Default Policy Chain Behavior. $ Sudo Iptables -L | Grep Policy. …...
Contents
How do I make iptables rules in Linux?
Basic IPtables Rules for Linux
- Check the Default Policy Chain Behavior. $ sudo iptables -L | grep policy. …
- Check the Current Rules. $ sudo iptables -L. …
- List Rules by Specification. $ sudo iptables -S. …
- Check Your Iptables Status. …
- Reset Your Iptables Rules. …
- Saving Modified Iptables. …
- Flush Iptables and Persist Changes.
Must Read
How do I change iptables rules?
In this how-to, we will illustrate three ways to edit iptables Rules :
- CLI : iptables command line interface and system configuration file /etc/sysconfig/iptables.
- TUI (text-based) interface : setup or system-config-firewall-tui.
- GUI : system-config-firewall.
24 дек. 2017 г.