OPNsense Forum

English Forums => General Discussion => Topic started by: Groyk on October 27, 2020, 09:22:22 PM

Title: Local server can't get local client IP
Post by: Groyk 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