• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Register
  • Login
ModalAI Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
    • Register
    • Login

    Time taken to connect to VPN is inconsistent and long

    Ask your questions right here!
    2
    6
    143
    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.
    • H
      hmlow
      last edited by 28 Apr 2022, 16:00

      Hi devs

      Im running v0.50 of the software suite on VOXL. I have my own OpenVPN server and am using the LTEv2 board on the VOXL.

      I noticed that the time taken for the modem and time-sync (needed so that OpenVPN can validate the certs) services to complete is inconsistent and long. Sometimes it takes 2mins and at times up to 4mins.

      I also noticed that the voxl-time-sync service takes a very long time to complete; almost 1-1.5mins.

      May i know if there is a way to speed up the process?
      I noticed that while /etc/systemd/timesyncd.conf exists, ntpd.service does not exist?
      ntpd.service
      Loaded: not-found (Reason: No such file or directory)
      Active: inactive (dead)

      Hope you guys can help!

      E 1 Reply Last reply 28 Apr 2022, 16:26 Reply Quote 0
      • E
        Eric Katzfey ModalAI Team @hmlow
        last edited by 28 Apr 2022, 16:26

        @hmlow Yes, it is the ntp time sync service that takes so long. And you cannot connect to the VPN until you have a reasonable system time otherwise the certificate authentication will fail. If you could figure out how to make it happen faster that would be great!

        H 2 Replies Last reply 28 Apr 2022, 16:34 Reply Quote 0
        • H
          hmlow @Eric Katzfey
          last edited by 28 Apr 2022, 16:34

          @Eric-Katzfey but what does VOXL actually uses for the time sync?

          If I'm not mistaken voxl-time-sync is just a simple python script to grab updated system date and time?

          E 1 Reply Last reply 28 Apr 2022, 16:43 Reply Quote 0
          • E
            Eric Katzfey ModalAI Team @hmlow
            last edited by 28 Apr 2022, 16:43

            @hmlow chronyd:

            ● chronyd.service - NTP client/server
               Loaded: loaded (/lib/systemd/system/chronyd.service; enabled; vendor preset: enabled)
               Active: active (running) since Thu 1970-01-01 00:00:08 UTC; 1min 16s ago
              Process: 2334 ExecStart=/usr/sbin/chronyd $OPTIONS (code=exited, status=0/SUCCESS)
             Main PID: 2350 (chronyd)
               CGroup: /system.slice/chronyd.service
                       └─2350 /usr/sbin/chronyd
            
            Jan 01 00:00:07 apq8096 systemd[1]: Starting NTP client/server...
            Jan 01 00:00:08 apq8096 chronyd[2350]: chronyd version 2.4 starting (+CMDMON +NTP +REFCLOCK +RTC -PRIVDROP -SCFILTER -SECHASH +ASYNCDNS +IPV6 -DEBUG)
            Jan 01 00:00:08 apq8096 systemd[1]: Started NTP client/server.
            
            1 Reply Last reply Reply Quote 0
            • H
              hmlow @Eric Katzfey
              last edited by hmlow 30 Apr 2022, 05:04 30 Apr 2022, 05:03

              @Eric-Katzfey said in Time taken to connect to VPN is inconsistent and long:

              @hmlow Yes, it is the ntp time sync service that takes so long. And you cannot connect to the VPN until you have a reasonable system time otherwise the certificate authentication will fail. If you could figure out how to make it happen faster that would be great!

              I think the process is long because chronyd is meant to make small adjustments over time. So when the VOXL boots up with a sys date as 1970, chronyd (even with makestep) doesnt work well.

              I installed ntpd and ran it with the -q command to make that one large stepped correction when the modem is connected. chronyd.service starts only after ntpd -q completes and takes over to track and correct for time difference for the remainder of the flight.

              Time taken from boot to openvpn connection is now about 1min 45s which is good enough for me.

              E 1 Reply Last reply 30 Apr 2022, 22:24 Reply Quote 0
              • E
                Eric Katzfey ModalAI Team @hmlow
                last edited by 30 Apr 2022, 22:24

                @hmlow Great, thanks for looking into that!

                1 Reply Last reply Reply Quote 0
                1 out of 6
                • First post
                  1/6
                  Last post
                Powered by NodeBB | Contributors