HTTP Server config TAB in OPNsense, using the advanced mode, choose X-Forwarded-For as Real IP Source