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

    OpenVPN stability issues - error 55

    Scheduled Pinned Locked Moved General pfSense Questions
    15 Posts 5 Posters 14.1k 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.
    • KOMK Offline
      KOM
      last edited by

      Is this a physical or virtual install?

      1 Reply Last reply Reply Quote 0
      • P Offline
        pette_rsson
        last edited by

        Normal physical install, x64. Nothing weird really, standard setup.

        1 Reply Last reply Reply Quote 0
        • A Offline
          Alex Atkin UK
          last edited by

          There are definitely some quirks with OpenVPN on pfSense.  I had to stop using it completely as I found that if the VPN wasn't 100% stable then pfSense would constantly be toggling the firewall up and down, causing constant connectivity issues with all traffic. (does it really need to keep restarting the WHOLE firewall and not just the VPN rules?)

          This was extremely annoying, as I only used the VPN for certain IP ranges so if the VPN is having problems it should fail gracefully rather than bringing the whole Internet crashing down.

          1 Reply Last reply Reply Quote 0
          • KOMK Offline
            KOM
            last edited by

            Strange.  I've been using it for years with some remote employees and it's worked perfectly for us.  We have a 100/100 link that is mostly idle so I don't know how it performs under heavy load, but it's been rock-solid for us.

            1 Reply Last reply Reply Quote 0
            • dotdashD Offline
              dotdash
              last edited by

              @Alex:

              There are definitely some quirks with OpenVPN on pfSense.

              I think the quirks might be with your particular setup, not with OpenVPN on pfSense in general.
              I've been using it for years at over a dozen sites, and the worst I've encountered is the process crashing and not restarting until you go into the shell and kill a phantom process. I have never had OpenVPN effect anything except the OpenVPN users.
              Back on-topic-
              OP, Any way you could test on a box with decent nics? Could be hardware, or just general realtek suckiness.

              1 Reply Last reply Reply Quote 0
              • P Offline
                pette_rsson
                last edited by

                I found my problem. When OpenVPN disconnects, which happends like once every week, I seem to loose my default gateway! OpenVPN seems to delete its own gateway, but also the default internet gateway. Then nothing works, of course, and if I re-add my default gateway the system is fully functional again.

                I guess I need to dig a bit more to find out what is happening, or does someone have any idea about this?

                1 Reply Last reply Reply Quote 0
                • KOMK Offline
                  KOM
                  last edited by

                  No, sorry.  Perhaps disable gateway monitoring and see if that makes any difference.

                  1 Reply Last reply Reply Quote 0
                  • P Offline
                    pette_rsson
                    last edited by

                    Ok thanks for answering.

                    One more question though: If gateway monitor notices that the vpn gateway is down, will it try to remove it from routing table?

                    If not, does the gateway monitor ever touch the routing table?

                    1 Reply Last reply Reply Quote 0
                    • P Offline
                      pette_rsson
                      last edited by

                      Just to report back. I have (hopefully) found my issue.

                      First issue was that I had chosen openvpn gateway as the default gateway, this is unneccessary as OpenVPN overrides default gateway anyway.

                      Second issue is more interesting. PfSense forces the "persist-tun" option to the client config file. This will instruct openvpn service to not run up or down scripts, so when you get a ping-timeout and a SIGUSR1 restart, openvpn will disconnect and try to reconnect without touching the routes.

                      This means that the, now default, gateway pushed by openvpn server earlier will remain. And trying to reconnect OpenVPN using the gateway on the OpenVPN network will of course not work. This is problem I am facing.

                      Now, since PfSense forces the persist-tun (I have not found any way to remove it), my only solution was to add the option "remap-usr1 SIGHUP". This will not even try to do a nice connection reset and keeping all the settings. It will more or less do a complete restart of openvpn when you get SIGUSR1 signal.

                      Why is the persist-tun forced into the client file? Options for every single line that file would be better!

                      1 Reply Last reply Reply Quote 0
                      • PippinP Offline
                        Pippin
                        last edited by

                        See here too:
                        https://forum.pfsense.org/index.php?topic=117557.msg651859#msg651859

                        I gloomily came to the ironic conclusion that if you take a highly intelligent person and give them the best possible, elite education, then you will most likely wind up with an academic who is completely impervious to reality.
                        Halton Arp

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