I'm running a single NGINX proxy container (with proxy_protocol=true) alongside with multiple web containers, which is working beautifully. The only problem however, is that using proxy protocol the firewall inside the proxy container doesn't work because it's not getting the real users IP with the exception of nginx because of reversed proxy.
Now, I wish to change the proxy protocol to NAT to get the firewall to work. But that breaks nginx instantly, which I assume is because I have to write a iptables rule to properly forward stuff. Is there anyone who can help me with this?
And, I'm using UFW for those who are curious. I only have 1 IP address, and currently running the default profile:
description: Default LXD profile
devices:
eth0:
name: eth0
network: lxdbr0
type: nic
The nginx proxy container already has a static IP address.
If you need any additional information feel free to ask.