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

    Access to PC while connected to VPN

    OpenVPN
    2
    2
    633
    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.
    • M
      mcit
      last edited by

      I have an issue that I hope is easily solved. I am connecting to an openVPN server [hosted by a third party] from a linux server [ubuntu server 14.01]. I can establish the VPN and traffic flows without an issue, however, I need to be able to remote into this linux machine from a network outside the LAN via SSH. When the VPN is not established, this works fine, however, once I connect to the VPN, I can only SSH in from the local LAN.

      My theory is that the change of default gateway creates the problem, but I am not sure what I can do to overcome the problem.

      Can anyone advise what I can do here?

      1 Reply Last reply Reply Quote 0
      • P
        phil.davis
        last edited by

        On the Linux server you could add static routes to these other subnets, presumably pointing to the pfSense router on your LAN from where the SSH comes.
        Or on pfSense on LAN put an Outbound NAT so the SSH from another subnet gets translated to pfSense LAN address as it goes out to the Linux server. Then the Linux server will think you are coming from the local LAN, and should answer fine.

        As the Greek philosopher Isosceles used to say, "There are 3 sides to every triangle."
        If I helped you, then help someone else - buy someone a gift from the INF catalog http://secure.inf.org/gifts/usd/

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