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

    Redirect local public IP to VPN public IP

    Scheduled Pinned Locked Moved OpenVPN
    2 Posts 2 Posters 403 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.
    • G
      gasper_gt
      last edited by

      Hello masters!
      I just got into the world of Pfsense.

      I have a VPN connection and everything is fine. I would like to know how to make my public IP the same as that of a user on the server network when connecting to the VPN.

      Example: Without a VPN connection, my public IP is: 190.189.111.274, but when I connect to the VPN it remains the same.
      In Pfsense the public IP 240.178.127.177 is configured. How can I make my public IP also change when connecting to the VPN

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

        @gasper_gt
        In the OpenVPN server settings check "Redirect gateway". This pushes the default route to the clients.

        Additionally there is an outbound NAT rule necessary on WAN for the the source of the VPN tunnel network. If it isn't added automatically by pfSense you have to configure it manually.

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