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

NAT the clients and then route them through VPN?

Scheduled Pinned Locked Moved OpenVPN
5 Posts 4 Posters 2.7k 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
    grav5
    last edited by May 3, 2008, 2:31 PM

    Hi folks,

    i'm fiddling around for a while trying to get something like that working:

    I want to to route everything that comes from the clients and is destinated to go "to the internet" to be routed through the VPN tunnel. That VPN tunnel is already working.

    The server (the debian box n the image) should not see the clients and which client is doing what, the server should only see one IP adress, the one of the pfSense box. Therefore pfSense has to NAT everything before sending it through the tunnel, hasn't it?

    The reason behind is, that i do not want to do a classic site-to-site scenario, it often happens that roadwarrior users having access to the VPNserver temporary want to connect a whole subnet.

    What shall I do now? Or do you think there is a better way to do this?

    1 Reply Last reply Reply Quote 0
    • G
      GruensFroeschli
      last edited by May 3, 2008, 2:40 PM

      It's not possible to NAT into the VPN tunnel
      (at least not through the GUI)
      –> not supported.

      We do what we must, because we can.

      Asking questions the smart way: http://www.catb.org/esr/faqs/smart-questions.html

      1 Reply Last reply Reply Quote 0
      • G
        grav5
        last edited by May 3, 2008, 2:50 PM

        Bad to hear…

        Thanks for the fast responding anyway!

        1 Reply Last reply Reply Quote 0
        • C
          Cry Havok
          last edited by May 3, 2008, 6:52 PM

          ISTR that NAT with OpenVPN is coming in one of the future releases.  I don't remember which, but a search of this forum should find the details.

          It is possible to manually add the required NAT configuration - again, search the forum as I don't remember the details.

          1 Reply Last reply Reply Quote 0
          • V
            Valhalla1
            last edited by May 16, 2008, 3:26 AM May 16, 2008, 3:24 AM

            I do stuff similar to this, but instead of having 1 VPN tunnel between the remote box and the pfsense box, instead each client on the LAN has to run openvpn client and connect to the remote box.   then all their traffic is routed over the tunnel.  this takes pfsense out of the openvpn equation

            disadvantage - instead of one tunnel, there are many. more to manage,  scalability problems I imagine..

            but end goal is the same,  clients on LAN all traffic goes through tunnel

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
              [[user:consent.lead]]
              [[user:consent.not_received]]