We have HTTPS enabled and have redirected port 80 to 8080 and port 443 to 8443:
- sudo firewall-cmd --permanent --direct --add-rule ipv4 nat OUTPUT 1 -p tcp -d 127.0.0.1 --dport 443 -j REDIRECT --to-ports 8443
- sudo firewall-cmd --permanent --direct --add-rule ipv4 nat OUTPUT 1 -p tcp -d 127.0.0.1 --dport 80 -j REDIRECT --to-ports 8080
- sudo firewall-cmd --permanent --direct --add-rule ipv4 nat PREROUTING 1 -p tcp -d XX.XX.XX.XX --dport 443 -j REDIRECT --to-ports 8443
- sudo firewall-cmd --permanent --direct --add-rule ipv4 nat PREROUTING 1 -p tcp -d XX.XX.XX.XX --dport 80 -j REDIRECT --to-ports 8080
Gadgets show correct names if visiting the site on 8443, but they show as "__MSG_gadget" on 443.
I saw some documentation saying that I needed to redirect for both local and external traffic:
https://confluence.atlassian.com/jirakb/how-to-fix-gadget-titles-showing-as-__msg_gadget-813697086.html
The sample commands in this documentation are using iptables, but we are using firewalld.
Are there similar firewalld commands that will fix this?