Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    PHP/Apache REMOTE_ADDR not resolving as expected when connected via IPsec

    Scheduled Pinned Locked Moved IPsec
    2 Posts 1 Posters 371 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • B
      b_chris
      last edited by

      Hi,
      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

      Thanks

      B 1 Reply Last reply Reply Quote 0
      • B
        b_chris @b_chris
        last edited by

        Just checked: I have the same behavior with OpenVPN?! Maybe I'm stupid, but I don't understand this. Please enlighten me

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.