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

    How stable is OpenVPN?

    Scheduled Pinned Locked Moved OpenVPN
    25 Posts 8 Posters 2.6k 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
      DominikHoffmann
      last edited by

      I installed OpenVPN on the SG-2100 of a client of mine. Over Christmas and New Year’s I was unable to connect and check on the performance of the client’s system. Once I was on-site, I restarted the OpenVPN service (Status → OpenVPN), I was able to VPN in again.

      How stable is OpenVPN on pfSense+ (22.05-RELEASE [arm64]) currently?

      Somewhere I saw something about a Watchdog daemon. Does the SG-2100 have that capability?

      AndyRHA MaxK 0M V GertjanG 4 Replies Last reply Reply Quote 0
      • AndyRHA
        AndyRH @DominikHoffmann
        last edited by

        @dominikhoffmann Mine is not an ARM system, but for me OpenVPN has been up for over 2 years except maintenance times.

        o||||o
        7100-1u

        1 Reply Last reply Reply Quote 1
        • MaxK 0M
          MaxK 0 @DominikHoffmann
          last edited by

          @dominikhoffmann anything in the logs?

          D 1 Reply Last reply Reply Quote 1
          • V
            viragomann @DominikHoffmann
            last edited by

            @dominikhoffmann said in How stable is OpenVPN?:

            I restarted the OpenVPN service (Status → OpenVPN), I was able to VPN in again.

            Somewhere I saw something about a Watchdog daemon. Does the SG-2100 have that capability?

            Was the service stopped?

            In your case, with an access server, Watchdog can only monitor the service and restart it if it's not running.

            D 1 Reply Last reply Reply Quote 1
            • M
              michmoor LAYER 8 Rebel Alliance
              last edited by

              Currently running it on a 6100 with 22.05 release.
              You have some important questions to answer namely was the service stopped when you discovered the problem? What does the system logs show? Was the service running when you noticed the problem? Any logged in users? What does the system logs show?

              Firewall: NetGate,Palo Alto-VM,Juniper SRX
              Routing: Juniper, Arista, Cisco
              Switching: Juniper, Arista, Cisco
              Wireless: Unifi, Aruba IAP
              JNCIP,CCNP Enterprise

              D 1 Reply Last reply Reply Quote 1
              • GertjanG
                Gertjan @DominikHoffmann
                last edited by Gertjan

                @dominikhoffmann said in How stable is OpenVPN?:

                How stable is OpenVPN on pfSense+ (22.05-RELEASE [arm64]) currently?

                I've had the same question a couple of month ago.

                I know the pfSense OpenVPN server is ok, as I'm using it since day one : that's now a bit over 10 years. Note that I'm using it to remote admin pfSense, or gain access to my 'work' LAN so I can access security camera's, or fool around with the airco.
                I never use it with "x" users that needed to work from home.

                I've been paying a commercial VPN service (XpressVPN for not to name the brand) for years, just to play with it. I never had to need use a VPN to change fixed ISP IPv4.
                But I was asking to myself lately : why not route my captive portals users over the VPN client out the VPN ISP ? This way, my clients can not 'taint' my IPv4, because, after all, I am still responsible for whatever comes in and goes out of my IPv4.
                So, I decided to really test XpressVPN, and I set up a VPN client also on pfSense.
                I policy routed with an alias all captive portal clients out over the VPN client interface. I don't have to use this :

                4380b82e-42aa-476a-ac7f-6aa50e7b4d66-image.png

                And guess what : the OpenVPN is up and running for 2 months now.
                Bandwidth is ok, as my ADSL only gives me 24 Mbits down 2 Mbits up (2 Gbit fiber is coming next week - we'll see what happens then)
                I know my clients do have some "web browse issues" as not every internet host plays well when it discovers a VPN IP is in use, but I didn't hear real complaints.

                I start to think this OpenVPN client is also rock solid.

                Still, the ISP up-link quality is important here.
                The VPN ISP quality is important also, as they are not all equal, except for the fact that they all manage to debit your credit card into perfection.

                Also : if you've been watching TV for the last 2 years or so, did you notice that half the planet was 'working from home' ?
                So, employees used their equipment from home to connect to the company to continue working.
                The software used was mostly : OpenVPN. So, if it could drive the planet, I guess it's pretty good.

                On the other hand, it is still 'close to rocket science' to set it up, as it includes the concept of server and client, and you only control well one side **. When working with stuff like, OpenVPN, you really start to abandon the pfSense Dashboard, when you login, you go straight to the main log menu, and that's where you are looking all day because that's the system's most important page.

                ** except when you set up a system where pfSense is the OpenVPN server : you can see the logs of both the server and client and test everything into perfection.

                No "help me" PM's please. Use the forum, the community will thank you.
                Edit : and where are the logs ??

                M 1 Reply Last reply Reply Quote 1
                • D
                  DominikHoffmann @MaxK 0
                  last edited by

                  @maxk-0: The logs are empty between December 24 and January 3, when I restarted the OpenVPN process:

                  Dec 24 05:14:57	openvpn	62444	UDPv4 link local (bound): [AF_INET]192.168.1.250:1194
                  Dec 24 05:14:57	openvpn	62444	UDPv4 link remote: [AF_UNSPEC]
                  Dec 24 05:14:57	openvpn	62444	Initialization Sequence Completed
                  Jan 3 13:26:15	openvpn	62444	event_wait : Interrupted system call (fd=-1,code=4)
                  Jan 3 13:26:17	openvpn	62444	/usr/local/sbin/ovpn-linkdown ovpns1 1500 0 192.168.18.1 255.255.255.0 init
                  Jan 3 13:26:17	openvpn	62444	SIGTERM[hard,] received, process exiting
                  Jan 3 13:26:18	openvpn	19435	OpenVPN 2.6_git aarch64-portbld-freebsd12.3 [SSL (OpenSSL)] [LZO] [LZ4] [MH/RECVDA] [AEAD] [DCO] built on Sep 8 2022
                  
                  GertjanG 1 Reply Last reply Reply Quote 0
                  • D
                    DominikHoffmann @viragomann
                    last edited by

                    @viragomann: It looked like it was stopped, but the first three log entries on January 3 have the same PID as the entries on New Year’s Eve and before had.

                    1 Reply Last reply Reply Quote 0
                    • D
                      DominikHoffmann @michmoor
                      last edited by

                      @michmoor said in How stable is OpenVPN?:

                      Any logged in users? What does the system logs show?

                      I am the only user using it, currently.

                      1 Reply Last reply Reply Quote 0
                      • M
                        michmoor LAYER 8 Rebel Alliance @Gertjan
                        last edited by

                        @gertjan said in How stable is OpenVPN?:

                        But I was asking to myself lately : why not route my captive portals users over the VPN client out the VPN ISP ? This way, my clients can not 'taint' my IPv4, because, after all, I am still responsible for whatever comes in and goes out of my IPv4.

                        Hmm..This is a good idea.

                        Firewall: NetGate,Palo Alto-VM,Juniper SRX
                        Routing: Juniper, Arista, Cisco
                        Switching: Juniper, Arista, Cisco
                        Wireless: Unifi, Aruba IAP
                        JNCIP,CCNP Enterprise

                        D M 2 Replies Last reply Reply Quote 0
                        • D
                          DominikHoffmann @michmoor
                          last edited by

                          @michmoor, @Gertjan

                          I am wondering, how that works. Is it like this:

                          Captive Portal → VPN Client running on pfSense → VPN Server running on ISP’s hardware

                          ?

                          How is this substantially different from

                          Captive Portal → Client assigned to VLAN segregated from LAN → WAN via ISP

                          ?

                          1 Reply Last reply Reply Quote 0
                          • M
                            michmoor LAYER 8 Rebel Alliance @michmoor
                            last edited by

                            @Gertjan I had an existing 3rd party VPN operating so what the heck...switched over my Guest VLAN.

                            1c60f6f9-8875-451d-8199-9af9f82bf8b2-image.png

                            Firewall: NetGate,Palo Alto-VM,Juniper SRX
                            Routing: Juniper, Arista, Cisco
                            Switching: Juniper, Arista, Cisco
                            Wireless: Unifi, Aruba IAP
                            JNCIP,CCNP Enterprise

                            1 Reply Last reply Reply Quote 0
                            • M
                              michmoor LAYER 8 Rebel Alliance
                              last edited by

                              @dominikhoffmann We were discussing something different than the OpenVPN crashing issue.
                              What we are talking about is policy routing.
                              Our PFsense firewall is an OpenVPN client to a OpenVPN server (Nordvpn or PIA or insert 3rd party].
                              As that OpenVPN server is now enabled as a gateway, we can direct clients to that gateway via firewall rules , aka, policy routing.
                              So now users on our LAN or GuestNet or whichever interface will be routed out the OpenVPN connection. Any user that goes against our network policy will only be hurting the IP reputation of the VPN provider and leaving our IP that we own (or assigned to us) alone.
                              Its really not a bad idea.

                              Firewall: NetGate,Palo Alto-VM,Juniper SRX
                              Routing: Juniper, Arista, Cisco
                              Switching: Juniper, Arista, Cisco
                              Wireless: Unifi, Aruba IAP
                              JNCIP,CCNP Enterprise

                              D 1 Reply Last reply Reply Quote 1
                              • D
                                DominikHoffmann @michmoor
                                last edited by

                                @michmoor: I get it now

                                Is there a tutorial somewhere, that you know of, that you would recommend, on how to set up a pfSense box as an OpenVPN client?

                                johnpozJ 1 Reply Last reply Reply Quote 0
                                • johnpozJ
                                  johnpoz LAYER 8 Global Moderator @DominikHoffmann
                                  last edited by

                                  @dominikhoffmann said in How stable is OpenVPN?:

                                  pfSense box as an OpenVPN client?

                                  To where? Pretty much every vpn service has some "guide" on how to connect to their service - most of them have a section for pfsense.

                                  An intelligent man is sometimes forced to be drunk to spend time with his fools
                                  If you get confused: Listen to the Music Play
                                  Please don't Chat/PM me for help, unless mod related
                                  SG-4860 24.11 | Lab VMs 2.7.2, 24.11

                                  1 Reply Last reply Reply Quote 0
                                  • GertjanG
                                    Gertjan @DominikHoffmann
                                    last edited by Gertjan

                                    @dominikhoffmann

                                    39b0f79c-df99-4120-9e1c-7a2a71c09898-image.png

                                    Not crashing.
                                    62444 was signaled to stop. For the usual reasons like : an interface (WAN ?) went down.
                                    I agree : it should restart when the that interface came back.

                                    edit : to see what happened, look in the main system log for events at that moment.

                                    No "help me" PM's please. Use the forum, the community will thank you.
                                    Edit : and where are the logs ??

                                    D 1 Reply Last reply Reply Quote 0
                                    • D
                                      DominikHoffmann @Gertjan
                                      last edited by

                                      @gertjan said in How stable is OpenVPN?:

                                      @dominikhoffmann

                                      Not crashing.
                                      62444 was signaled to stop.

                                      Correct! That was, when I restarted the service.

                                      GertjanG 1 Reply Last reply Reply Quote 0
                                      • GertjanG
                                        Gertjan @DominikHoffmann
                                        last edited by

                                        @dominikhoffmann
                                        Ah, ok, so the openvpn server 62444 stayed silent - no log lines since last 24 December.
                                        Do you have enforced your openvpn server vpn rule, like not using port 1194, or limited to a known list op source IPs ?
                                        Normally, for a openvpn server, you would see ones in a while some log lines because your openvpn is "scanned". A bit scary at first, but actually quiet handy as you could see these tests as a sort of 'I'm still alive' tests.
                                        Or, true : openvpn was running but not listening anymore, which is close to a dead process.

                                        No "help me" PM's please. Use the forum, the community will thank you.
                                        Edit : and where are the logs ??

                                        D 1 Reply Last reply Reply Quote 0
                                        • D
                                          DominikHoffmann @Gertjan
                                          last edited by

                                          @gertjan said in How stable is OpenVPN?:

                                          Do you have enforced your openvpn server vpn rule, like not using port 1194, or limited to a known list op source IPs ?

                                          The firewall rule is the default one generated by the setup wizard:
                                          Screenshot 2023-01-05 at 12.16.51 PM.png

                                          So, the answer is, no.

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

                                            It went down again in the last couple of days. The OpenVPN logs did not show anything. Is there anything else I should check for?

                                            1 Reply Last reply Reply Quote 0
                                            • D DominikHoffmann referenced this topic on
                                            • D DominikHoffmann referenced this topic on
                                            • First post
                                              Last post
                                            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.