Linux Deleting Iptables Firewall rule. - Printable Version +- Red Security (https://redsecurity.info/cc) +-- Forum: Computer (https://redsecurity.info/cc/forumdisplay.php?fid=10) +--- Forum: Operating Systems (https://redsecurity.info/cc/forumdisplay.php?fid=11) +--- Thread: Linux Deleting Iptables Firewall rule. (/showthread.php?tid=416) |
Deleting Iptables Firewall rule. - Mr.Kurd - 12-25-2017 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" After that Copy the rule which you wanted to delete: "-A ufw-user-input -p tcp -m tcp --dport 80 -j ACCEPT" Then basically replace -A with -D to delete the rule: "iptables -D ufw-user-input -p tcp -m tcp --dport 80 -j ACCEPT" Finally check if it has been deleted or not by listing the rules again: "iptables -S" Thank you for reading Wa Salam Alekum |