FIREWALL: iptables: Setup Default (en)

From OnnoWiki
Revision as of 08:05, 7 January 2025 by Onnowpurbo (talk | contribs) (Created page with "If we want to clear all iptables & ip6tables rules and allow all packets to be accepted: iptables -F ip6tables -F iptables -P INPUT ACCEPT iptables -P OUTPUT ACCEPT ipta...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

If we want to clear all iptables & ip6tables rules and allow all packets to be accepted:

iptables -F
ip6tables -F
iptables -P INPUT ACCEPT
iptables -P OUTPUT ACCEPT
iptables -P FORWARD ACCEPT
ip6tables -P INPUT ACCEPT
ip6tables -P OUTPUT ACCEPT
ip6tables -P FORWARD ACCEPT