Clear all iptables records in one line
Published by Vitaly Musin on May 16th, 2017

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