I want to add whitelist in my system using iptables. So I searched the web and find this:
iptables -I INPUT -s 10.0.0.0/8 -j ACCEPT iptables -I INPUT -s 127.0.0.1/8 -j ACCEPT iptables -I INPUT -s 192.168.0.0/16 -j ACCEPT iptables -P INPUT DROP
and it really works. So I fire
iptable -F to delete all rules, then I cannot connect to this server anymore.
What is the correct way to delete all rules ?