PHP/Apache REMOTE_ADDR not resolving as expected when connected via IPsec
when connecting with my iPhone to my pfSense box via IPsec, almost every thing works: I can connect to my local machines behind pfSense and when browsing in the internet, the servers I'm visiting will see the public IP of pfSense -> fine.
But what isn't really working: When I connect via IPsec an browse one of my local web servers (behind pfSense), then the web server will see the IPv4 my mobile carrier handed out to my iPhone and not the IPsec-IP (in the range of 192.168.100.0/24 as configured).
How can this behavior be changed? This makes IP-based access rights on the web server impossible (goal is to make certain folders only available to machines in my network).
I followed this guide to set up IPsec: https://docs.netgate.com/pfsense/en/latest/recipes/ipsec-mobile-ikev2-eap-mschapv2.html
Just checked: I have the same behavior with OpenVPN?! Maybe I'm stupid, but I don't understand this. Please enlighten me