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

    Open VPN Perdendo Rota

    Scheduled Pinned Locked Moved Portuguese
    3 Posts 1 Posters 519 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.
    • D
      danielrgoes
      last edited by

      Prezados,

      Eu tenho um túnel Server - Cliente.

      Ele tem como link principal a minha MPLS:
      Interface: any
      Server host or address: 192.168.10.1 (meu IP da MPLS)

      Ai a conexão secundária é a WAN
      Custom options:
      remote 10.125.651.80 1202 udp;remote 20.189.50.658 1202 udp;push "route 192.6.1.0 255.255.255.0"
      Sendo: 10.125.651.80 (WAN primaria do server) 20.189.50.658 (WAN secundária do server)

      Só que as vezes esse tunel perde a rota com algumas redes do server, ai eu reinicio e volta.

      Quando isso acontece eu peguei os logs:

      May 7 06:51:45 rc.gateway_alarm 63701 >>> Gateway alarm: GW_WAN_EMBRATEL (Addr:8.8.8.8 Alarm:0 RTT:13.907ms RTTsd:24.443ms Loss:5%)
      May 7 06:51:45 check_reload_status updating dyndns GW_WAN_EMBRATEL
      May 7 06:51:45 check_reload_status Restarting ipsec tunnels
      May 7 06:51:45 check_reload_status Restarting OpenVPN tunnels/interfaces
      May 7 06:51:45 check_reload_status Reloading filter
      May 7 06:51:46 php-fpm 9391 /rc.openvpn: OpenVPN: One or more OpenVPN tunnel endpoints may have changed its IP. Reloading endpoints that may use GW_WAN_EMBRATEL.

      Parece que ele tenta conectar com o Gateway Default.

      Ai o que eu fiz foi tirar o Custom options para não usar mais a WAN.

      Mas mesmo assim quando oscila o link e dá o erro acima ele cai o túnel e perde a rota.

      Alguém já viu isso?

      1 Reply Last reply Reply Quote 0
      • D
        danielrgoes
        last edited by

        Pessoal,

        Acho que eu sei o que é, mas não sei resolver.

        Esse tunel fica "inativo" (sem trafego) das 20:00 até as 07:30 do outro dia.

        O problema acontece sempre as 07:30, eu acho que como não tem trafego o tunel é desativado.

        Como faço para isso não acontecer?

        1 Reply Last reply Reply Quote 0
        • D
          danielrgoes
          last edited by

          Alguém tem alguma idéia do que pode ser?

          Eu cheguei em uma definição.

          Quando o sistema vai refazer as rotas ele não refaz as rotas do túnel (IPv4 Remote network(s))

          Eu simulei, se eu entrar em System -> Routing -> Static Routing, editar uma Rota e salvar, ele perde as rotas do tunel, ai só reiniciando o túnel para voltar.

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