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

    Connected to OpenVPN server but Public IP address remains the same

    Scheduled Pinned Locked Moved OpenVPN
    6 Posts 2 Posters 708 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.
    • L
      Lamia
      last edited by Lamia

      Could anyone please tell me why my connection and invariably the traffic is not routed through the VPN despite being successfully connected to it?

      IPleak.net shows the same public IP from my mobile operator.

      L V 2 Replies Last reply Reply Quote 0
      • L
        Lamia @Lamia
        last edited by

        @lamia Here is the error being reported - https://imgshare.io/image/screenshot-20210816-213400-copy-1080x493.pJT7bx . Pardon me for the shared link. I'm on a constrained device.

        1 Reply Last reply Reply Quote 0
        • V
          viragomann @Lamia
          last edited by

          @lamia
          Presumably your client doesn't add the routs.
          Did you check "Redirect gateway" in the server settings?
          Did you add anoutbound NAT rule?

          From the Screenshot I suspect that your client isn't compatible with the provided settings. You should export the settings with "Legacy Client" checked.

          1 Reply Last reply Reply Quote 1
          • L
            Lamia
            last edited by

            Enabling gateway redirect fixed it.

            How can I get it to work without the redirection? Other ovpn confs from other providers don't require the redirection. Any option to (un)check in Pfsense?

            V 1 Reply Last reply Reply Quote 0
            • V
              viragomann @Lamia
              last edited by

              @lamia said in Connected to OpenVPN server but Public IP address remains the same:

              How can I get it to work without the redirection?

              What are the concerns on this?

              Directing upstream traffic to a VPN server means that the default route has to point to the servers virtual IP. This is what "redirect gateway" does in the end.
              And this is what you need, if you want to use the servers public IP when accessing the internet.

              Other ovpn confs from other providers don't require the redirection.

              Most VPN providers push the default route to the clients (push redirect-gateway def1). So it needs not to be added to the .ovpn file. This effects exactly the same on the client. It makes the client adding a default route pointing to the server.

              L 1 Reply Last reply Reply Quote 0
              • L
                Lamia @viragomann
                last edited by

                @viragomann Thank you Sir.
                The redirect IPv4 Gateway option in PfSense OPENVPN did the trick.

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