How can I permanently delete all iptables rules?
Im not in the mood for "why". I just want to know if there is a way to completely, permanently remove every single rule that has been added into iptables. If so, what is the command as I really need it. I have tried iptables -F, -Z, -X whatever it is, nothing seems to permanently remove it.
Thank You! |
Code:
iptables -F You said "it". Clarify that please. |
Quote:
EDIT: I guess I just can't use the iptables-save command anymore as it puts back the stuff from libvirt. Guess I can only use iptables-restore ...that stinks. iptables is really wonky. |
Quote:
If you want to keep your original firewall rules intact, then try... Code:
iptables-save >/etc/firewall.saved.rules So to permanently delete any runtime added rules you must have the original iptables rules script available to run after iptables -F. |
Quote:
|
Quote:
Just remember, iptables-save and iptables-restore allow you to save state and restore a saved state. Restore does NOT restore an initial non-saved state, which might be confusing you. The initial state is generally set by a shell script using iptables -N/-A/-I commands and is what you should manage for setting known states. Good luck! |
All times are GMT -5. The time now is 05:40 PM. |