^

IpTables Flush And Allow All Traffic

Article 15 in Networking

2020-07-25 18:04:25 from bugfish
IpTables Flush And Allow All Traffic
Networking / IpTables
Last Review on: 2021-10-27 00:45:17 | Hits: 486

USE WITH OWN RISK - ALL FIREWALL RULES WILL BE DELETED

IPv4

iptables -F
iptables -X
iptables -t nat -F
iptables -t nat -X
iptables -t mangle -F
iptables -t mangle -X
iptables -P INPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -P OUTPUT ACCEPT

 

IPv6

ip6tables -F
ip6tables -X
ip6tables -t nat -F
ip6tables -t nat -X
ip6tables -t mangle -F
ip6tables -t mangle -X
ip6tables -P INPUT ACCEPT
ip6tables -P FORWARD ACCEPT
ip6tables -P OUTPUT ACCEPT

I do not guarantee the reliability of the information given here, the code described on this page is executed at your own risk and in the event of damage or other unforeseeable consequences I am in no way responsible or liable.
Currently 1 Upvotes!
captcha image
System - 2021-01-05 19:59:36
We appreciate comments on our site!

Theme
14/11
This Website is using Session Cookies for Site Functionality and AWStats.