As of today, I noticed that all UFW rules I add inside a container, simply are not working.I forgot there’s no “proxy” set up for the firewall to see which IP’s are connecting to the container, with the exception of nginx which is set up to reverse the ip address.
Is there anyway I can make this work? If not, if there’s a way for me to share a specific directory on the container, with the main host?
config device add container name disk source=xxxxxx path=xxxxxx
But that shares the host directory with the container, not the other way around. Unless I need to make it so the container can also write/read to the directory?
In this particular case, I’d like to share the web container access log files for fail2ban to read and to deny/reject on the main hosts firewall, if I can’t get the container firewall sorted.