Bug 1014958

Summary: firewall-offline-cmd --forward-port requires 'toaddr' which should be optional
Product: [Fedora] Fedora Reporter: Niels de Vos <ndevos>
Component: firewalldAssignee: Thomas Woerner <twoerner>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 19CC: 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:

Description Niels de Vos 2013-10-03 08:16:21 UTC
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.

Comment 2 Fedora Update System 2013-10-17 15:59:51 UTC
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

Comment 3 Fedora Update System 2013-10-18 19:50:07 UTC
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).

Comment 4 Fedora Update System 2013-10-22 04:57:34 UTC
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.