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

    OpenVPN S2S [error] Unable to contact daemon

    Scheduled Pinned Locked Moved OpenVPN
    3 Posts 2 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.
    • M
      miro_ivanovic
      last edited by

      Hi,

      just set OpenVPN per this instruction: OpenVPN Site-to-Site Configuration Example with SSL/TLS.

      On server, I have the error: [error] Unable to contact the daemon.

      Open VPN Error
      OpenVPN Service

      When I restart [actualy when I try to start OpenVPN service this is from log file:

      Mar 28 23:16:26	openvpn	69536	OpenVPN 2.6_beta1 armv7-portbld-freebsd14.0 [SSL (OpenSSL)] [LZO] [LZ4] [MH/RECVDA] [AEAD] [DCO]
      Mar 28 23:16:26	openvpn	69536	library versions: OpenSSL 1.1.1t-freebsd 7 Feb 2023, LZO 2.10
      Mar 28 23:16:26	openvpn	69536	NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
      Mar 28 23:16:26	openvpn	69536	WARNING: experimental option --capath /var/etc/openvpn/server1/ca
      Mar 28 23:16:26	openvpn	69536	Cannot open TUN/TAP dev /dev/tun1: No such file or directory (errno=2)
      Mar 28 23:16:26	openvpn	69536	Exiting due to fatal error
      

      Triple checked instructions, all looks good to me.

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

        @miro_ivanovic said in OpenVPN S2S [error] Unable to contact daemon:

        annot open TUN/TAP dev /dev/tun1: No such file

        Check the OpenVPN forum OpenVPN could not be established after upgrade to 23.01 on SG-3100

        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 0
        • M
          miro_ivanovic @Gertjan
          last edited by

          @gertjan this fixed issue for me

          1. Updating the linker file manually fixed it for me. Run: ```
          kldxref /boot/kernel
          

          on both SG-3100

          1. restarted OpenVPN service on both router

          Thanks for quick reply.

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