Red Hat Bugzilla – Bug 602613
Disable system-config-firewall in a script
Last modified: 2010-06-10 09:20:10 EDT
Basicly, I want to be able to disable the fedora firewall using a script. I know that I can disable the iptables service but I want to keep system-config-firewall working (to re-enable the fw at some point for example).
system-config-firewall-tui only seems to offer an interactive mode. Some simple command line options like "--disable" and "--enable" would be nice.
Alternatively, maybe you could provide some simple commands that system-config-firewall runs when disabling the firewall using the button?
The command for firewall modifications in a shell is lokkit.
Please have a look at lokkit --help.
"lokkit --disabled" and "lokkit --enabled" are the commands you are looking for.