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

    Cant Access to OpenVPN server affter energy supply cut

    Scheduled Pinned Locked Moved OpenVPN
    5 Posts 2 Posters 625 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
      Delyryus
      last edited by Delyryus

      Hi, First sorry for my English, im from Argentina... Im running OpenVPN in Pfsense 2.4.3-RELEASE-p1, We have a power loss and the server stop working... the Server was working fine before the cut.

      When the power comes up i have the error

      "Shared object "libdl.so.1" not found, required by "openvpn"...
      

      I try the solution : "ln -sf /lib/libc.so.7 /usr/lib/libdl.so.1"....

      Ok the server runs agains, but i cant connect to it... the client never see the Server..

      In OpenVPN logs it say

      Jan 16 10:54:14 
      openvpn 
      87379 
      Initialization Sequence Completed 
      Jan 16 10:54:14 
      openvpn 
      87379 
      MULTI: TCP INIT maxclients=40 maxevents=44 
      Jan 16 10:54:14 
      openvpn 
      87379 
      IFCONFIG POOL: base=192.1.60.2 size=252, ipv6=0 
      Jan 16 10:54:14 
      openvpn 
      87379 
      MULTI: multi_init called, r=256 v=256 
      Jan 16 10:54:14 
      openvpn 
      87379 
      TCPv4_SERVER link remote: [AF_UNSPEC] 
      Jan 16 10:54:14 
      openvpn 
      87379 
      TCPv4_SERVER link local (bound): [AF_INET]192.1.25.1:1194 
      Jan 16 10:54:14 
      openvpn 
      87379 
      Listening for incoming TCP connection on [AF_INET]192.1.25.1:1194 
      Jan 16 10:54:14 
      openvpn 
      87379 
      Socket Buffers: R=[65228->65228] S=[65228->65228] 
      Jan 16 10:54:14 
      openvpn 
      87379 
      /usr/local/sbin/ovpn-linkup ovpns1 1500 1623 192.1.60.1 255.255.255.0 init 
      Jan 16 10:54:14 
      openvpn 
      87379 
      /sbin/route add -net 192.1.60.0 192.1.60.2 255.255.255.0 
      Jan 16 10:54:14 
      openvpn 
      87379 
      /sbin/ifconfig ovpns1 192.1.60.1 192.1.60.2 mtu 1500 netmask 255.255.255.0 up 
      Jan 16 10:54:14 
      openvpn 
      87379 
      do_ifconfig, tt->did_ifconfig_ipv6_setup=0 
      Jan 16 10:54:14 
      openvpn 
      87379 
      TUN/TAP device /dev/tun1 opened 
      Jan 16 10:54:14 
      openvpn 
      87379 
      TUN/TAP device ovpns1 exists previously, keep at program end 
      Jan 16 10:54:14 
      openvpn 
      87379 
      Incoming Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication 
      Jan 16 10:54:14 
      openvpn 
      87379 
      Outgoing Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication 
      Jan 16 10:54:14 
      openvpn 
      87379 
      Diffie-Hellman initialized with 2048 bit key 
      Jan 16 10:54:14 
      openvpn 
      87379 
      NOTE: the current --script-security setting may allow this configuration to call user-defined scripts 
      

      In Client Side:

      Wed Jan 16 10:54:02 2019 SIGUSR1[connection failed(soft),init_instance] received, process restarting
      Wed Jan 16 10:54:07 2019 TCP/UDP: Preserving recently used remote address: [AF_INET]186.139.111.157:1194
      Wed Jan 16 10:54:07 2019 Attempting to establish TCP connection with [AF_INET]186.139.111.157:1194 [nonblock]
      Wed Jan 16 10:56:07 2019 TCP: connect to [AF_INET]186.139.111.157:1194 failed: Unknown error
      
      

      EDIT: I try to copy libdl.so and libdl.so.1 from freebsd bot ISO but same thing.. no work for me :(
      The portforwarding from router to Pfsense works fine, i can access to Config page from public IP.

      Thx!!! and sorry for my English again!!!

      XOXO Marcos =)

      1 Reply Last reply Reply Quote 0
      • RicoR
        Rico LAYER 8 Rebel Alliance
        last edited by

        Sounds like your filesystem got corrupted due to the power cut.
        Make a Backup and do a quick reinstall with the Recover Config Option: https://www.netgate.com/docs/pfsense/backup/automatically-restore-during-install.html

        -Rico

        D 1 Reply Last reply Reply Quote 1
        • D
          Delyryus
          last edited by

          This post is deleted!
          1 Reply Last reply Reply Quote 0
          • D
            Delyryus @Rico
            last edited by

            @rico Thx!!! its working now!!!!! I make a clean install and load de BK config!!

            1 Reply Last reply Reply Quote 0
            • RicoR
              Rico LAYER 8 Rebel Alliance
              last edited by

              Glad you have everything up and running again. ☺

              -Rico

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