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

    Tunnel all, with IP from remote net

    Scheduled Pinned Locked Moved IPsec
    5 Posts 2 Posters 2.4k 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.
    • X
      XIII
      last edited by

      Heres what I want to have happen:

      all traffic is tunneled through pfSense, with access to remote resources and if possible remote computer gets an IP thats on the remote network (I saw on another post that jimp said you must have an ip out of the remote nets range so this may not be possible), need this as I have few devices/programs that will not work unless remote computer has an IP on the local net (I can change this for some but not all devices)

      Heres what I have tried:

      I got it to tunnel all, with the following settings (using shrew client):
      Local Host Address: virtual IP address, set the ip to a range of my remote network
      policy set to 0/0

      Local Host Address: virtual, set to an ip of my remote network
      policy: remote net

      it works (tunnels all)but cant access local resources, so i tried a combination of  changing those two settings:

      this enables access to remote resources but doesnt tunnel all, remote network only
      Local Host Address: use local
      policy: remote net

      this enables access to remote resources but nothing else
      Local Host Address: use local
      policy: 0/0

      Edit: Can OpenVPN do this?

      -Chris Stutzman
      Sys0:2.0.1: AMD Sempron 140 @2.7 1024M RAM 100GHD
      Sys1:2.0.1: Intel P4 @2.66 1024M RAM 40GHD
      freedns.afraid.org - Free DNS dynamic DNS subdomain and domain hosting.
      Check out the pfSense Wiki

      1 Reply Last reply Reply Quote 0
      • jimpJ
        jimp Rebel Alliance Developer Netgate
        last edited by

        You'd probably have more luck with OpenVPN because with OpenVPN you could NAT traffic into the local network like so:

        Main Site LAN: x.x.x.1/24
        Remote LAN: x.x.y.1/24

        On the main site box, you can NAT traffic going out the LAN interface from x.x.y.1/24 to an IP (or 1:1 to several, etc) so that for devices on the x.x.x.0/24 network, they will see the traffic coming from an x.x.x.0/24 network.

        With PPTP you can VPN directly into the local network (it can overlap) but that does not work for site-to-site tunnels, only remote access from single clients.

        Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

        Need help fast? Netgate Global Support!

        Do not Chat/PM for help!

        1 Reply Last reply Reply Quote 0
        • X
          XIII
          last edited by

          I read somewhere that you cant have both an IPSec tunnel and an OpenVPN tunnel, is that just for site to site or is that for everything (ie site-site=IPSec, remote clients=OpenVPN?)

          -Chris Stutzman
          Sys0:2.0.1: AMD Sempron 140 @2.7 1024M RAM 100GHD
          Sys1:2.0.1: Intel P4 @2.66 1024M RAM 40GHD
          freedns.afraid.org - Free DNS dynamic DNS subdomain and domain hosting.
          Check out the pfSense Wiki

          1 Reply Last reply Reply Quote 0
          • jimpJ
            jimp Rebel Alliance Developer Netgate
            last edited by

            You can use both, just not for the same subnet at the same time.

            If a subnet matches an enabled IPsec tunnel, it will always try to go over IPsec.

            Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

            Need help fast? Netgate Global Support!

            Do not Chat/PM for help!

            1 Reply Last reply Reply Quote 0
            • X
              XIII
              last edited by

              I have seen this setup before, it was with a Cisco IPSec VPN client, thought maybe it was possible with shrew. I will setup OpenVPN later today and give it a try.

              -Chris Stutzman
              Sys0:2.0.1: AMD Sempron 140 @2.7 1024M RAM 100GHD
              Sys1:2.0.1: Intel P4 @2.66 1024M RAM 40GHD
              freedns.afraid.org - Free DNS dynamic DNS subdomain and domain hosting.
              Check out the pfSense Wiki

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