I have a reverse proxy set up and working. Our internal DNS for the URL in question points to the Caddy server. IE: (my URL) points to 10.1.13.5. This is all working. (sorry, it won’t let me put an actual formatted URL, so the ‘my URL’ is an actual URL)
I would like to use UFW on the server side (IE: the web app side, not the PC with Caddy installed) to block certain traffic. No matter what I do, it doesn’t seem to work. I am not super experienced with UFW, but I can typically get by with simple stuff.
For instance, I want to block 10.1.0.0/24 from reaching the application so I tried:
ufw deny from 10.1.0.0/24
But it still allows traffic through. The logs from Caddy show that it is processing the IP address correctly, but perhaps it isn’t sending on the original IP?
Which would then only allow 10.1.0.0/24? Of course I would have to add the second subnet, I get that. Assuming that is possible, would that break the auto certificate renewal?