ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Alternatives to OpenVPN for FreePBX on cell phone...

    IT Discussion
    freepbx openvpn android zoiper zulu linphone pbx telephony vpn responsive firewall sangoma voip
    7
    60
    5.3k
    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
      manxam
      last edited by scottalanmiller

      We use Android phones here along with Zoiper to tie into our FreePBX instance for when we're out of the office/on-site.
      Each device uses the OpenVPN client to connect to FreePBX but we've been experiencing massive battery drain issues using that client for months (today OpenVPN was responsible for 73% of my battery usage).
      Is there an alternate AND SECURE way for users to connect back in to FreePBX using their cell phones aside from using OpenVPN?
      I had tried using the responsive firewall but got locked out frequently.
      Also tried dyndns apps for android but they sucked as much battery as OpenVPN and, often times, we'd be banned via the firewall before dyndns updated.

      Any suggestions would be greatly appreciated.

      Thanks!

      C 1 Reply Last reply Reply Quote 1
      • JaredBuschJ
        JaredBusch
        last edited by

        What are you trying to secure? The Voice? That is not secure anywhere else. Why does it matter?

        The SIP registration? That is not in the clear in the first place.

        1 Reply Last reply Reply Quote 1
        • scottalanmillerS
          scottalanmiller
          last edited by

          Secure voice is difficult, overrated, and pretty much always going to be a huge battery drain because encrypting streams of media takes a lot of processor power. I'm with Jared, before you try to solve this problem, really dig into it and see if it makes sense. Almost all people who request VPN for voice traffic do so without actually evaluating it. It's not the import thing that it sounds like. Nice, of course. If it was free and easy, then duh, more security trumps less security. But it's not easy or "free", there is a lot of cost involved (complexity, performance, battery, etc.) So almost always the evaluation says it doesn't really matter, and in over a century of telecommunications history it has never mattered, and should just be skipped.

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

            I thought I was pretty clear in my OP but I suppose some clarification is in order: This is strictly so that we can connect Android phones to our FreePBX instance. I'm not at all concerned about encrypting / securing voice, just the successful registration of the Zoiper client.

            OpenVPN was the only consistent way of getting mobile devices to keep their registration as we can whitelist the VPN ip subnet.

            As mentioned, turning on the responsive firewall and using that instead of OpenVPN did not work out well as the IP addresses of the cell phones changes regularly and the firewall would randomly lock users out during re-registration. Perhaps there are some changes that we can make to either the client or FreePBX that will prevent this?

            EDIT: When I said "AND SECURE", I was speaking of ensuring that FreePBX itself was kept as secure from "rogue users" as possible while fulfilling our requirement of allowing our mobile devices to register with the service.

            scottalanmillerS 1 Reply Last reply Reply Quote 1
            • scottalanmillerS
              scottalanmiller @manxam
              last edited by

              @manxam said in Alternatives to OpenVPN for VoiP on cell phone...:

              I thought I was pretty clear in my OP but I suppose some clarification is in order: This is strictly so that we can connect Android phones to our FreePBX instance. I'm not at all concerned about encrypting / securing voice, just the successful registration of the Zoiper client.

              OpenVPN was the only consistent way of getting mobile devices to keep their registration as we can whitelist the VPN ip subnet.

              Oh, that's odd. We don't see that problem happening. Our mobile devices work very consistently with FreePBX (unless people are at a site that is blocking traffic, then I could see the VPN being used as a work around to a location's own security rules.) But in general, no VPN needed for consistent connections.

              But that makes more sense as an issue to overcome.

              1 Reply Last reply Reply Quote 0
              • scottalanmillerS
                scottalanmiller
                last edited by

                Are your Zoiper users primarily on like 4G or LTE connections rather than Wifi? Maybe that's causing it. We do that, but not most of the time.

                M 1 Reply Last reply Reply Quote 0
                • Reid CooperR
                  Reid Cooper
                  last edited by

                  This had come up in the past and @bigbear had recommended putting an SBC in front of FreePBX to handle the issue. Although that creates the issue of dealing with that security at a different point, so not a fix completely in and of itself.

                  https://mangolassi.it/topic/15747/responsive-firewall-and-external-freepbx-users/

                  1 Reply Last reply Reply Quote 0
                  • M
                    manxam @scottalanmiller
                    last edited by

                    @scottalanmiller : If they're using their mobile phones it means that they're out of the office travelling or on-site at a client and, likely, not connected to WiFi.

                    When using the responsive firewall, it was during network status changes where there would be a high likelihood that the device would get locked out (e.g. when transitioning WiFi -> LTE)

                    1 Reply Last reply Reply Quote 0
                    • DashrenderD
                      Dashrender
                      last edited by

                      I have totally had an issue roaming around and the responsive firewall constantly locked me out as well.

                      M 1 Reply Last reply Reply Quote 0
                      • M
                        manxam @Dashrender
                        last edited by

                        @Dashrender said in Alternatives to OpenVPN for VoiP on cell phone...:

                        I have totally had an issue roaming around and the responsive firewall constantly locked me out as well.

                        Exactly. To which the only "resolution" that worked for us at the time was OpenVPN but it's taking a massive toll on the batteries of the phones 😞

                        1 Reply Last reply Reply Quote 0
                        • JaredBuschJ
                          JaredBusch
                          last edited by

                          Okay that makes way more sense.

                          I have also had issues with the responsive firewall and mobile phones.

                          But not seemingly as bad as you are.

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

                            Yeah, unfortunately we're seeing at LEAST a 50% chance of being locked out during network connection change or IP address renewal.

                            1 Reply Last reply Reply Quote 1
                            • JaredBuschJ
                              JaredBusch
                              last edited by

                              I put ZeroTier on my PBX and on my devices. Never thought about using it for a SIP softphone.

                              1 Reply Last reply Reply Quote 0
                              • 1
                                1337
                                last edited by 1337

                                A few ideas to try. Change openvpn tunnel to not use encryption (save cpu power) but keep authentication. Also extend the time for the keepalive packages (save battery by not having to wake up as often when there is no real traffic over the tunnel).

                                Might also want to check that the sip client is actually using push notification so it isn't alive all the time when there are no calls. There are also at least two different openvpn clients so there might be a difference in power drain there as well.

                                1 Reply Last reply Reply Quote 2
                                • M
                                  manxam
                                  last edited by

                                  @Pete-S : I've increased the default timeout from 10 120 to 300 900.
                                  We'll see if a) the connection remains stable b) if battery usage decreases.

                                  I don't want to disable encryption as FreePBX automatically generates the client config and I don't want to have to custom edit each.

                                  Unless this can be configured strictly on the server side like keepalive?

                                  1 1 Reply Last reply Reply Quote 0
                                  • C
                                    Coreytay @manxam
                                    last edited by Coreytay

                                    @manxam I found this while looking for alternative also. http://dsiprouter.org/

                                    scottalanmillerS 1 Reply Last reply Reply Quote 0
                                    • scottalanmillerS
                                      scottalanmiller @Coreytay
                                      last edited by

                                      @Coreytay said in Alternatives to OpenVPN for VoiP on cell phone...:

                                      @manxam I found this while looking for alternative also. http://dsiprouter.org/

                                      Not a lot of info obvious on the page.

                                      M 1 Reply Last reply Reply Quote 1
                                      • M
                                        manxam @scottalanmiller
                                        last edited by

                                        @scottalanmiller : Yeah, I'm not really certain what that software does..
                                        "dSIPRouter can be used to implement different use cases within minutes"

                                        Ummm, then this shows a few examples but I'm not certain of the use case for any of these...

                                        scottalanmillerS 1 Reply Last reply Reply Quote 0
                                        • 1
                                          1337 @manxam
                                          last edited by

                                          @manxam said in Alternatives to OpenVPN for VoiP on cell phone...:

                                          @Pete-S : I've increased the default timeout from 10 120 to 300 900.
                                          We'll see if a) the connection remains stable b) if battery usage decreases.

                                          I don't want to disable encryption as FreePBX automatically generates the client config and I don't want to have to custom edit each.

                                          Unless this can be configured strictly on the server side like keepalive?

                                          Any progress on this?

                                          I don't know how freepbx does the openvpn config files but you should have a setting on what cipher to run. That information ends up in both the client and server config files. To disable encryption you set the cipher to none.

                                          You should probably turn of compression too as voip is already compressed. Just takes more battery power to compress something that is compressed already.

                                          M scottalanmillerS 2 Replies Last reply Reply Quote 1
                                          • M
                                            manxam @1337
                                            last edited by manxam

                                            @Pete-S : within the GUI there are no available options for tailoring OpenVPN unfortunately.

                                            The client config that it generates is :

                                            # Configuration automatically generated via Sysadmin RPM
                                            # MODIFICATIONS TO THIS FILE WILL BE OVERWRITTEN.
                                            # Generated at: Sun, 13 Jan 2019 03:33:14 +0000
                                            client
                                            dev tun
                                            proto udp
                                            resolv-retry 60
                                            nobind
                                            persist-key
                                            persist-tun
                                            remote-cert-tls server
                                            ca sysadmin_ca.crt
                                            cert sysadmin_client1.crt
                                            key sysadmin_client1.key
                                            comp-lzo
                                            verb 3
                                            remote x.x.x.x 1194
                                            remote x.x.x.x 1194
                                            

                                            The server config is :

                                            # Configuration automatically generated via Sysadmin RPM
                                            # MODIFICATIONS TO THIS FILE WILL BE OVERWRITTEN.
                                            # Generated at: Sun, 13 Jan 2019 03:33:14 +0000
                                            port 1194
                                            proto udp
                                            dev tun
                                            topology subnet
                                            ca sysadmin_ca.crt
                                            dh sysadmin_dh.pem
                                            crl-verify sysadmin_crl.pem
                                            cert sysadmin_server1.crt
                                            key sysadmin_server1.key
                                            ifconfig-pool-persist ipp.txt
                                            #keepalive 10 120
                                            keepalive 300 900
                                            comp-lzo
                                            persist-key
                                            persist-tun
                                            verb 3
                                            client-config-dir ccd
                                            ccd-exclusive
                                            status sysadmin_server1-status.log 10
                                            status-version 3
                                            script-security 2
                                            server 10.8.0.0 255.255.255.0
                                            

                                            Note the header stating that this file will be overritten so I'm not certain how "permanent" this will be nor do I see information regarding encryption type (though do see the compression).

                                            1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 3
                                            • 1 / 3
                                            • First post
                                              Last post