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

    Openvpn Logs are getting erased on every new conenction

    Scheduled Pinned Locked Moved OpenVPN
    11 Posts 3 Posters 668 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.
    • R
      rajukarthik
      last edited by

      Hi,

      I'm have been using tunnelblick in macbook for openvpn. Problem is that whenever the employees disconnect and connect to the openvpn via tunnelblick, the log flile is getting erased completely. Due to this, we are not able to figure out that "when did the employees connect to the vpn in the morning"?

      Please help me how to set the tunnelblic app in such a way that it does'nt delete the old conenction logs.

      Thanks in advance,
      Regards,
      Karthik

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

        @rajukarthik

        Where is pfSense in your setup ?

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

        R 1 Reply Last reply Reply Quote 0
        • R
          rajukarthik @Gertjan
          last edited by

          @Gertjan Pfsense is setup as a router. Openvpn is our vpn server which is configured inside the pfsense

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

            @rajukarthik

            So "tunnelblick" is the OpenVPN client you are using ?

            What log file gets erased ?
            This one : Status > System Logs > OpenVPN ?

            To be more precise : this one :

            [24.03-RELEASE][root@pfSense.bhf.tld]/var/log: ls -al o*
            -rw-------  1 root wheel 1700766 Nov 12 10:08 openvpn.log
            -rw-------  1 root wheel     227 Nov 12 14:51 openvpn.status
            

            A vpn client app can't wipe files that it can't access.

            The only thing that can happen with a log file that it is set to small to begin with. The file would get rotated more often so it looks like that you lost info. If there are a lot of lines logged, the frequency of rotating will go up.
            Up to you to find a balance.
            Check here : Status > System Logs > Settings
            and make the file(s) bigger : example :

            f8e6bade-b160-48c7-91a1-9eee63bc1d72-image.png

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

            R GertjanG 2 Replies Last reply Reply Quote 0
            • R
              rajukarthik @Gertjan
              last edited by

              @Gertjan Yes I'm using Tunelblick as an openvpn client.

              Tunelblick client logs are getting deleted.

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

                Check log settings when exporting profile in pfSense.
                What do the client configuration files say about logs?

                Search for

                --log file
                

                and

                --log-append file
                

                in manual 2.6:
                https://build.openvpn.net/man/openvpn-2.6/openvpn.8.html

                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

                R 1 Reply Last reply Reply Quote 0
                • R
                  rajukarthik @Pippin
                  last edited by rajukarthik

                  @Pippin
                  I could'nt find the word --log file in my configuration file. By the way I export Viscosity Inline configuratin file and import it on the tunnelblick client.
                  Please find my configuration fille details below,

                  #-- Config Auto Generated By pfSense for Viscosity --#

                  #viscosity startonopen false
                  #viscosity dhcp true
                  #viscosity dnssupport true
                  #viscosity name Openvpn server
                  dev tun
                  persist-tun
                  persist-key
                  data-ciphers AES-256-GCM:AES-128-GCM:CHACHA20-POLY1*****************
                  data-ciphers-fallback AES-256-CBC
                  auth SHA3-512
                  tls-client
                  client
                  resolv-retry infinite
                  remote ********** *** udp4
                  nobind
                  verify-x509-name "server_certificate_for_my_openvpn" name
                  auth-user-pass
                  remote-cert-tls server
                  explicit-exit-notify

                  <ca>
                  -----BEGIN CERTIFICATE-----
                  CAyGgAwIBAgIIf3TmFSE8fhAwDQYJKoZIhvcNAQENBQAwGDEWMBQGA1UE
                  X5
                  ********************************************************************************************************************************************************************************************************************************************************************************************************************
                  -----END CERTIFICATE-----
                  </ca>
                  <cert>
                  -----BEGIN CERTIFICATE-----
                  ***************************************************ADAYMRYwFAYDVQQDFA1DQV9t
                  eV9vcGVudnBuMB4XDTI0MDYyODEwMjM1MVoXDTM0MDYyNjEwMjM1MVowEjEQMA4G


                  -----END CERTIFICATE-----
                  </cert>
                  <key>
                  -----BEGIN PRIVATE KEY-----
                  gJfph7ZNqyx
                  xMmHz1TuobvulwNJ+X/ytxVBLwLt6+6P+BaIGCb7WtI6Y/pFML85rafX8bujTnFX
                  khrUxvLtGkCFVKSQeTnprzMYqacy20
                  ********************************************************************************************************************************************************************************
                  -----END PRIVATE KEY-----
                  </key>
                  key-direction 1
                  <tls-auth>

                  2048 bit OpenVPN static key

                  -----BEGIN OpenVPN Static key V1-----
                  bc50b3ca1b15227c6ce
                  260bdc153faacb543542e9240c0bb17c
                  6da5c68c
                  *****************************************************************************************************************************************************************************************************************************
                  -----END OpenVPN Static key V1-----
                  </tls-auth>

                  1 Reply Last reply Reply Quote 0
                  • R
                    rajukarthik
                    last edited by

                    Have any one faced teh same issue ?

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

                      @Gertjan said in Openvpn Logs are getting erased on every new conenction:

                      What log file gets erased ?
                      This one : Status > System Logs > OpenVPN ?

                      ? ?

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

                      R 1 Reply Last reply Reply Quote 0
                      • R
                        rajukarthik @Gertjan
                        last edited by

                        @Gertjan Tunnelblick clinet log files are getting deleted.
                        Tunnelblcik logs are located at /Library/Application Support/Tunnelblick/Logs.
                        Each time, I disconnect and connect back to vpn using tunnelblick, the old log file is getting deleted and fresh log file is created.

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

                          @rajukarthik

                          So it's a question about the OpenVPN client app called "Tunnelblick " running on a device that not pfSense.

                          Ask Tunnelblick ?!
                          Or use the OpenVPN app, also available for MAC ?!

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

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