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

    OpenVPN client service on pfSense terminates when OpenVPN remote server is rebooted/restarted

    OpenVPN
    2
    3
    594
    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.
    • G
      giox969
      last edited by

      Hi,
      I have an OpenVPN (UDP) server running on a remote router. The remote OpenVPN server router is not a pfSense, it's Mikrotik RouterOS.

      pfSense is configured as OpenVPN client, and connects without problems to the Mikrotik OpenVPN server for a LAN to LAN routing.

      When the OpenVPN server is rebooted, the local pfSense openVPN client service is terminated, and never restarted. So I have to manually restart the OpenVPN client service or reboot the pfSense.

      d285fcc3-048c-4771-9a18-40ee40a32881-image.png

      And the OpenVPN logs:

      Mar 18 15:05:31 openvpn 99632 /usr/local/sbin/ovpn-linkdown ovpnc1 1500 1621 10.67.42.249 255.255.255.0 init
      Mar 18 15:05:31 openvpn 99632 SIGTERM[soft,remote-exit] received, process exiting

      There are dozen of posts about OpenVPN server terminating on "exit-notify", but in my case the OpenVPN client is stopping, not the server.

      How can I have OpenVPN client service restarted automatically, or never killed, after a remote OpenVPN server reboot?

      Thank you

      V 1 Reply Last reply Reply Quote 0
      • V
        viragomann @giox969
        last edited by

        @giox969
        Did you enable the inactivity check in "Ping settings" area?A failing in this would cause the client service to terminate.

        G 1 Reply Last reply Reply Quote 0
        • G
          giox969 @viragomann
          last edited by

          @viragomann 3bb08830-9c77-47da-8bff-64b381fe225c-image.png

          Not enabled ;(

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