1
General Discussion / Local server can't get local client IP
« on: October 27, 2020, 09:22:22 pm »
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
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