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

    Connect to 2 openvpn servers with the same IP

    Scheduled Pinned Locked Moved OpenVPN
    6 Posts 4 Posters 1.5k 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.
    • L Offline
      liajim
      last edited by

      Hi,

      I have 2 key files to connect to 2 differents openvpn servers. This 2 servers were configured in the same way, i.e., both have the same IP-range (10.8.0.0) and both in 1194 udp port. I have no access to any of the servers, so I cannot change anything of these servers.

      I can connect to both servers by doing:

      /etc/init.d/openvpn start connection1
      /etc/init.d/openvpn start connection2

      When I access to database of 10.8.0.1, I can only access the second connection's database. And I cannot access to both servers' databases at the same time.

      I think that exists some way to redirect the IP adress of one openvpn server, but I don't know how.

      Is to redirect the IP adress the unique solution? Or Does another solution to access the databases of both servers at the same time exist?

      Thanks in advance!

      Liajim

      1 Reply Last reply Reply Quote 0
      • K Offline
        kejianshi
        last edited by

        When you plan to connect a bunch of computers together into a wider network, its always good practice to put each on separate subnets.  Is it too late for you to do that?

        1 Reply Last reply Reply Quote 0
        • L Offline
          liajim
          last edited by

          Actually, i didn't configure these servers, I'm just a client. So, I cannot do anything to change the subnets.

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

            Tough cookies then… cannot work.

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

              Yes, you will have to bring up OpenVPN link1, do your work, disconnect the link. Then repeat with link2.
              Rather annoying if you need both remote sites accessible at the same time!

              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
              • K Offline
                kejianshi
                last edited by

                As they said, the same thing is different ways, it won't work then.

                I'd suggest getting on the admin's case and making him fix it.

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