Red Hat Bugzilla – Bug 426817
system-config-firewall-tui deletes custom rules
Last modified: 2008-02-12 23:57:49 EST
Description of problem:
When using system-config-firewall-tui, if any custom rules are entered, it's
unable to parse them. Consequently, both new and already-defined custom rules
Version-Release number of selected component (if applicable):
latest from yum
Steps to Reproduce:
1. Start system-config-securitylevel-tui in a console window
2. Enter Customize screen
3. Add custom ports (bottom left text box). Format is specified as
port:protocol, e.g. 12345:tcp - but if any existing ports are defined they're
displayed as port/protocol, instead. With the included fix, both formats are
acceptable for adding new ports.
The problem can be fixed by altering the parsing routine in
/usr/share/system-config-firewall/fw_tui.py on line 216 from
val = entry.strip().split(":")
val = entry.strip().split("/")
It sould be better to modify line 37 and 39 by converting the "%s/%s" in these
line into "%s:%s"
It seems that many lines in the code use ":" instead of "/" and the french and
english prompt are using ":"
system-config-firewall-1.0.12-4.fc8 has been submitted as an update for Fedora 8
system-config-firewall-1.0.12-4.fc8 has been pushed to the Fedora 8 testing repository. If problems still persist, please make note of it in this bug report.
If you want to test the update, you can install it with
su -c 'yum --enablerepo=updates-testing update system-config-firewall'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F8/FEDORA-2008-1200
system-config-firewall-1.0.12-4.fc8 has been pushed to the Fedora 8 stable repository. If problems still persist, please make note of it in this bug report.