Bug 602613

Summary: Disable system-config-firewall in a script
Product: [Fedora] Fedora Reporter: Michael Monreal <michael.monreal+bugs>
Component: system-config-firewallAssignee: Thomas Woerner <twoerner>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 13CC: twoerner
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-06-10 13:20:10 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Description Michael Monreal 2010-06-10 10:08:48 UTC
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.

Comment 1 Michael Monreal 2010-06-10 10:11:10 UTC
Alternatively, maybe you could provide some simple commands that system-config-firewall runs when disabling the firewall using the button?

Comment 2 Thomas Woerner 2010-06-10 13:20:10 UTC
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.