geerlingguy/ansible-role-firewall — pull request #4 by seanf (2014-11-27 06:03:09+00:00)
Title: firewall_forwarded_tcp_ports does not forward connections from localhost

When accessing the forwarded port from the managed machine itself, connections are refused

$ cat vars/main.yml
firewall_allowed_tcp_ports:
- "22" # SSH
- "80" # Redirect (below)
- "8080"

firewall_forwarded_tcp_ports:
- { src: "80", dest: "8080" }

After applying the above, port 80 can be accessed from other machines, but connections from localhost receive `Connection refused`. (Note: port 8080 has a web server, and connections to 8080 are accepted.)