Bug 1477897 - Support port redirects for localhost
Support port redirects for localhost
Status: NEW
Product: Fedora
Classification: Fedora
Component: firewalld (Show other bugs)
26
Unspecified Unspecified
unspecified Severity medium
: ---
: ---
Assigned To: Eric Garver
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2017-08-03 03:33 EDT by Marius Andreiana
Modified: 2017-08-17 15:55 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Marius Andreiana 2017-08-03 03:33:24 EDT
Port redirects on remote servers work fine:
https://ask.fedoraproject.org/en/question/32104/port-redirect-with-firewalld/

but localhost requires an additional command:

iptables -t nat -I OUTPUT --source 127.0.0.1 --destination 127.0.0.1 -p tcp --dport 80 -j REDIRECT --to-ports 5000

which only works with iptables

Please have an equivalent
 
firewall-cmd ... --permanent

command for that too.

Note You need to log in before you can comment on or make changes to this bug.