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

    Difference between real IP and Remote/Virtual IP

    Scheduled Pinned Locked Moved OpenVPN
    6 Posts 3 Posters 539 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.
    • P
      Plugje
      last edited by Plugje

      Hi,

      I noticed a difference in OpenVPN between the Remote/Virtual IP in pfSence and the real IP when connected to pfSense with a laptop.

      In pfSence the Remote/Virtual IP is 213.152.161.137 but when I check my IP on a connected laptop with "WhatIsMyIP.com" it is 213.152.161.138.
      Also when I reconnect to AirVPN there is always a difference from +1 in the IP.

      Is this normal, or is this a bug or something?

      JKnottJ 1 Reply Last reply Reply Quote 0
      • JKnottJ
        JKnott @Plugje
        last edited by

        @Plugje

        That looks like the addresses at the 2 ends of the VPN and is entirely normal.

        PfSense running on Qotom mini PC
        i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
        UniFi AC-Lite access point

        I haven't lost my mind. It's around here...somewhere...

        1 Reply Last reply Reply Quote 0
        • johnpozJ
          johnpoz LAYER 8 Global Moderator
          last edited by

          Where exactly are you looking at this IP in pfsense.. Normally the vpn client in pfsense would get a rfc1918 address.. Are you saying they are using a public IP for the tunnle? Or did you just make up that IP vs giving the rfc1918 address?

          An intelligent man is sometimes forced to be drunk to spend time with his fools
          If you get confused: Listen to the Music Play
          Please don't Chat/PM me for help, unless mod related
          SG-4860 24.11 | Lab VMs 2.7.2, 24.11

          P 1 Reply Last reply Reply Quote 0
          • P
            Plugje @johnpoz
            last edited by

            @johnpoz

            I am looking in the OpenVPN Dashboard widget, but the Remote Host IP in the Status - OpenVPN page is the same. I noticed already that with PIA I get a totallly different IP addres, not even in the same range. So it looks that it is a normal behaviour.

            1 Reply Last reply Reply Quote 0
            • johnpozJ
              johnpoz LAYER 8 Global Moderator
              last edited by

              So for example
              example.png

              Here that public IP on the top is the IP connecting too.. The below rfc1918 is my clients tunnel IP - which would be natted either the IP am connecting too... Or in the case of large vpn services could any pretty much any other IP.. Since you have no idea what IP they might nat your connection to the public world.. There is nothing saying its going to be the IP your connecting to their service with which is the remote/virtIP you see on the widget..

              An intelligent man is sometimes forced to be drunk to spend time with his fools
              If you get confused: Listen to the Music Play
              Please don't Chat/PM me for help, unless mod related
              SG-4860 24.11 | Lab VMs 2.7.2, 24.11

              P 1 Reply Last reply Reply Quote 0
              • P
                Plugje @johnpoz
                last edited by

                @johnpoz

                Oke, I understand. So it's a coincidence that with AirVPN the outgoing IP is just 1 number difference.

                Thanks for the explanation! ☺

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