Red Security

Full Version: Deleting Iptables Firewall rule.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
In The Name OF Allah
Al-Salam Alekum

Guys In this tutorial I will teach you Deleting IPtables Firewall Rule in Linux.
Open Terminal and execute this command to list all rules: "iptables -S"

[attachment=52]


After that Copy the rule which you wanted to delete:
"-A ufw-user-input -p tcp -m tcp --dport 80 -j ACCEPT"

[attachment=53]


Then basically replace -A with -D to delete the rule:
"iptables -D ufw-user-input -p tcp -m tcp --dport 80 -j ACCEPT"

[attachment=54]

Finally check if it has been deleted or not by listing the rules again: "iptables -S"

Thank you for reading


Heart Wa Salam Alekum Heart