Navigation

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

    Can't reach machines with different gateway.

    OpenVPN
    2
    2
    1719
    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.
    • O
      Ozzik last edited by

      Hi,
      Up until now I used PPTP to connect to the office and it worked great. Last week I set up the OpenVPN and faced one problem:
      I have a single LAN at the office, which is 192.168.10.0/24
      Most of the workstations use the 192.168.10.2 gateway, which is pfSense(with the OpenVPN server).
      But most of the servers use the other gateway (a more stable line, that goes through an SBox firewall) and it's 192.168.10.1.
      So I discovered that there's no problem accessing the workstations when connected with OpenVPN, but I can't reach the servers.
      I realize it's a routing problem, but since it's the same subnet - how would go about it?

      Thanks.

      1 Reply Last reply Reply Quote 0
      • GruensFroeschli
        GruensFroeschli last edited by

        Two options:
        1: Create a static route on the default gateway of your server
        2: NAT from the OpenVPN subnet to the servers subnet.

        1 is IMO the easier and more proper way.

        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
        • First post
          Last post