Navigation

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

    VPN For Server Access Only

    OpenVPN
    3
    4
    571
    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
      Streat last edited by

      Hello, I apologize if I have not placed this question in the proper forum. Previously when i had pfsense running with a configured VPN I was able to successfully access my home network remotely but all connections from my machine then ran through my home IP address. I am looking for a way to establish a VPN connection to my home simply for access to my NAS there, I wish all other internet operations to route through the IP of wherever I am. Ideally I would like to set something up on my machine to automatically connect to the VPN for my home so I maintain access to those shares wherever I am without having to route all my connections back through my home network. Is something like this possible or am I misunderstanding the mechanics of a VPN?

      1 Reply Last reply Reply Quote 0
      • D
        doktornotor Banned last edited by

        1/ Stop redirecting default GW via the VPN.
        2/ Set up the firewall rules on the OpenVPN or IPsec tab as required to restrict the access.

        1 Reply Last reply Reply Quote 0
        • M
          marvosa last edited by

          As doktornotor stated, in the Tunnel Settings section, look for "Redirect Gateway" and uncheck the checkbox next to "Force all client generated traffic through the tunnel."  Unchecking this option will only route what you have defined in "IPv4 Local Network/s" field over the tunnel.  Everything else will be routed out the client's internet connection.

          1 Reply Last reply Reply Quote 0
          • S
            Streat last edited by

            Fantastic, this is exactly what I was looking for. Thank you for the help!

            1 Reply Last reply Reply Quote 0
            • First post
              Last post