| Summary: | firewall-offline-cmd --forward-port requires 'toaddr' which should be optional | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Niels de Vos <ndevos> |
| Component: | firewalld | Assignee: | Thomas Woerner <twoerner> |
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 19 | CC: | jpopelka, twoerner |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | firewalld-0.3.7-1.fc19 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2013-10-22 04:57:34 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
Fixed upstream: https://git.fedorahosted.org/cgit/firewalld.git/commit/?id=5c7165eb3ea1fda8181f741957c4a6539e06b149 firewalld-0.3.7-1.fc19 has been submitted as an update for Fedora 19. https://admin.fedoraproject.org/updates/firewalld-0.3.7-1.fc19 Package firewalld-0.3.7-1.fc19: * should fix your issue, * was pushed to the Fedora 19 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing firewalld-0.3.7-1.fc19' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2013-19324/firewalld-0.3.7-1.fc19 then log in and leave karma (feedback). firewalld-0.3.7-1.fc19 has been pushed to the Fedora 19 stable repository. If problems still persist, please make note of it in this bug report. |
Description of problem: firewall-offline-cmd --forward-port requires 'toaddr' which should be optional. # firewall-offline-cmd -h --forward-port=if=<interface>:port=<port>:proto=<protocol>[:toport=<destination port>][:toaddr=<destination address>] Forward the port with protocol for the interface to either another local destination port (no destination address given) or to an other destination address with an optional destination port. This is IPv4 only. Version-Release number of selected component (if applicable): firewalld-0.3.4-1.fc19.noarch How reproducible: 100% Steps to Reproduce: # firewall-offline-cmd --forward-port=if=eth0:port=80:proto=tcp:toport=8000 Actual results: Traceback (most recent call last): File "/bin/firewall-offline-cmd", line 436, in <module> entry = (fwd["port"], fwd["proto"], fwd["toport"], fwd["toaddr"]) KeyError: 'toaddr' Expected results: # firewall-offline-cmd --forward-port=if=eth0:port=80:proto=tcp:toport=8000 Adding forward port 80:tcp:8000 to default zone. Additional info: Passing the 'toaddr' works: # firewall-offline-cmd --forward-port=if=eth0:port=80:proto=tcp:toport=8000:toaddr=192.168.0.10 Adding forward port 80:tcp:8000:192.168.0.10 to default zone.