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

    Wireguard site2site NAT / IP of tunnel shown instead of real IP

    Scheduled Pinned Locked Moved WireGuard
    2 Posts 1 Posters 242 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
      bamje
      last edited by

      Hello, i know there is another post about this, but it is marked as solved and it's few months old, also the solution is not really clear to me, so i decided to create a new one.

      I did setup a wireguard site to site vpn between two pfsense firewalls.
      Everything looked good until i tried to mount a nfs share from a site A server in a site B client, the server sees the connection as from the wg tunnel ip and not from the real client ip, not allowing me to mount the share.

      I don't want to nat connections in my wg tunnel.

      i tried to switch to hybid nat and create a rule to disable nat in the tunnel interface but that broke the site to site vpn.

      i must also mention that i have set an upstream gateway in the tunnel interface in each site, because the netgate guide i followed said to do so, but at this point i am not sure this is necessary.

      Can anyone point me in the right direction to solve this?
      Thanks

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

        To anyone having the same problem follow this guide
        https://blog.matrixpost.net/set-up-wireguard-site-to-site-vpn-on-pfsense/

        or in short, do not set an upstream gateway and set static routes as allowed ips.

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