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

    Roteamento para vpns Lans iguais

    Scheduled Pinned Locked Moved Routing and Multi WAN
    4 Posts 2 Posters 238 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.
    • P
      pablomichelin
      last edited by

      Cenário
      A 1 servidor principal onde contém o VPN server.
      B 1 servidor cliente VPN com lan 192.168.1.0/22
      C 1 servidor cliente VPN com lan 192.168.1.0/23

      Ambas as redes possuem host 192.168.1.3 internamente que precisam ser acessados por um servidor que está no A
      As VPNs estão ok, é preciso de uma solução quanto a interação do server A com clientes B e C
      Já utilizei Mapeamento 1:1 dizendo que o ip 10.10.10.3 responderá ao 192.168.1.3 da VPN B
      e outro 1:1 dizendo que o ip 10.10.11.3 responderá ao 192.168.1.3 da VPN C porém não tenho tido sucesso. Sempre que o host tenta conectar tanto no 10.10.10.3 quanto no 10.10.11.3 o pfsense acaba direcionando sempre para a mesma rede.
      Alguém teria alguma ideia de como resolver esse problema?

      Scenario

      A 1 main server containing the VPN server.

      B 1 VPN client server with LAN 192.168.1.0/22

      C 1 VPN client server with LAN 192.168.1.0/23

      Both networks have host 192.168.1.3 internally that needs to be accessed by a server in A

      The VPNs are ok, a solution is needed regarding the interaction of server A with clients B and C
      I have already used 1:1 Mapping saying that IP 10.10.10.3 will respond to 192.168.1.3 of VPN B
      and another 1:1 saying that IP 10.10.11.3 will respond to 192.168.1.3 of VPN C, but I have not had any success. Whenever the host tries to connect to both 10.10.10.3 and 10.10.11.3, pfsense always ends up redirecting to the same network.

      Does anyone have any idea how to solve this problem?

      P 1 Reply Last reply Reply Quote 0
      • P
        pwood999 @pablomichelin
        last edited by

        @pablomichelin You really should not use the same LAN subnet on both sides of the VPN.

        P 1 Reply Last reply Reply Quote 0
        • P
          pablomichelin @pwood999
          last edited by

          @pwood999 yes, but I can`t. So I need configure any kind of route to separate both.

          P 1 Reply Last reply Reply Quote 0
          • P
            pwood999 @pablomichelin
            last edited by

            @pablomichelin NAT the entire subnet at each end like the Netgate docs then.

            Documentation

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