I would like to forward http & https traffic that reaches my external interface on OpenSUSE Leap 15.6 to a wordpress container inside a Podman pod on a bridged network that’s connected to my trusted zone.
It works just fine connecting to the wordpress host (172.16.200.20) when I’m located in the trusted zone, BUT I can’t get it to work when I’m trying to connect from the outside!
Any ideas on what I should specify with the firewall-cmd command in order to get it to work?
(Maybe someone have done something similar)?
If you are wanting to forward traffic between networks, then kernel-level IP forwarding needs to be enabled via sysctl (net.ipv4.ip_forward=1) before firewalld port forwarding rules will work.
You can do this on the fly (IPv4 traffic) with sudo sysctl -w net.ipv4.ip_forward=1
For persistent configuration refer man systctl.conf