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

How to configure WG s-2-s to use device IP address vs WG tunnel IP Address?

WireGuard
1
2
235
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.
  • S
    Sn3akerz
    last edited by Aug 9, 2023, 12:04 AM

    I setup a Wireguard s-2-s tunnel using the netgate documentation to replace an ipsec tunnel.

    Site A:
    LAN: 10.0.80.0/24
    WG Tunnel: 172.16.0.1

    Site B:
    LAN: 192.168.100.0/24
    WG Tunnel: 172.16.0.2

    When I access a resource over the VPN, instead of seeing the LAN net IP of the device in use, I see the WG Tunnel.
    eg. 10.0.80.56 ssh -> 192.168.100.30. last/who/etc. show 172.16.0.1 in the log vs what I was expecting to see as 10.0.80.56

    The same is true testing from 192.168.100.* to 10.0.80.*

    Is there a way to configure this so that the original source IP is used instead of the Tunnel IP?

    1 Reply Last reply Reply Quote 0
    • S
      Sn3akerz
      last edited by Aug 9, 2023, 2:29 AM

      This looks like it will solve my issue. I'll update after I've had a chance to try it out.

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