Local server can't get local client IP

Started by Groyk, October 27, 2020, 09:22:22 PM

Previous topic - Next topic
Hi all

I have setup OPNsence as firewall. Behind I have an webserver running. Redirection from WAN and LAN works fine.

However then I access the webserver from my local network, the webserver sees the OPNsence IP, not the client IP.

How do I pass the client IP in the request.

on my webserver I am testing with PHP "$_SERVER['REMOTE_ADDR']"

I have setup unbound dns->Overrides