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

    Connected tunnel does not show up in the status page

    Scheduled Pinned Locked Moved OpenVPN
    4 Posts 2 Posters 1.0k 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.
    • M
      miguelgoncalves
      last edited by

      I have a pfSense box with a Multi-WAN setup that is the OpenVPN server and a remote office (the client) with a DSL link with a dynamic IP that changes every 36 hours.

      To prevent a connection reset in the DSL link in the middle of a working day I reset the PPPoE connection everyday at 4:00.

      The problem is that the remote office connects and it shows in the connection in the status page but, on the server, it shows as not connected. The link is established as I can ping both ways.

      I've checked the management interface on the server and the "state all" command shows a reconnection at 4:00 and some seconds and then it goes in to WAIT state.

      I've also checked the status page source code and it reads that state but shows nothing in the WAIT case.

      Restarting the server forces a reconnection and solves the problem. It just does not seem right to me…

      Suggestions?

      1 Reply Last reply Reply Quote 0
      • M
        miguelgoncalves
        last edited by

        no one??

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

          Which version of pfsense?

          1 Reply Last reply Reply Quote 0
          • M
            miguelgoncalves
            last edited by

            @kejianshi:

            Which version of pfsense?

            2.2.

            I might have found the problem but don't know how to solve it cleanly.

            The problem is that the OpenVPN server lets the peer connect with the new IP address but changes to WAIT state (echo 'states' | nc -U /var/etc/openvpn/server1.sock shows it). I looked at the OpenVPN management interface documentation and the WAIT state should only happen in the client.

            To solve the problem for now I put 'keepalive 1 10' in both and this will restart the server 10 secs after the client stops responding. I've did some tests and after the PPPoE connection reset the client takes 15 secs before initiating a new connection to the OpenVPN server and, by then, the server already expired the connection.

            A peer-to-peer OpenVPN tunnel should only allow one peer IP address and not more.

            Anything wrong in my theory?

            Thanks!

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