Temporary Reset existing IPTables rules till system reboot
|- Create a script
vim /etc/stop_firewall.sh
- Copy this inside
#!/bin/sh echo "Reseting iptables rules..." sleep 1 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
- Make the file executable
chmod +x /etc/stop_firewall.sh
- Run it
sh /etc/stop_firewall.sh