User Tools

Site Tools


networking:firewall:iptables

This is an old revision of the document!


IPtables Firewall

IPtables is the default firewall on Redhat-based distros.

http://www.cyberciti.biz/faq/rhel-fedorta-linux-iptables-firewall-configuration-tutorial/

Flush All

  1. Set the default policies for each of the built-in chains to ACCEPT
  2. Flush the nat and mangle tables
  3. Flush all chains (-F)
  4. Delete all non-default chains (-X)
iptables -P INPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -P OUTPUT ACCEPT
iptables -t nat -F
iptables -t mangle -F
iptables -F
iptables -X
networking/firewall/iptables.1632766969.txt.gz · Last modified: 2021/09/27 12:22 by gcooper