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

    [SOLVED] haproxy-auth-request luasocket support?

    Scheduled Pinned Locked Moved Cache/Proxy
    3 Posts 2 Posters 1.1k 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.
    • B
      benjamesfleming
      last edited by benjamesfleming

      Hi All,

      I am trying to install https://github.com/TimWolla/haproxy-auth-request.
      I have imported the .lua script using the pfsense web ui, but when I apply changes the below error pops up.

      From what can tell I need to install luasocket-53 and its dependencies, but it is not in the pfsense repo.

      How can I go about getting this package installed, or into the repo?

      Thanks.

      Errors found while starting haproxy
      [ALERT] 115/152743 (34825) : parsing [/var/etc/haproxy_test/haproxy.cfg:15] : Lua runtime error: /var/etc/haproxy_test/luascript_auth-request:23: module 'socket.http' not found:
      no field package.preload['socket.http']
      no file '/usr/local/share/lua/5.3/socket/http.lua'
      no file '/usr/local/share/lua/5.3/socket/http/init.lua'
      no file '/usr/local/lib/lua/5.3/socket/http.lua'
      no file '/usr/local/lib/lua/5.3/socket/http/init.lua'
      no file './socket/http.lua'
      no file './socket/http/init.lua'
      no file '/usr/local/lib/lua/5.3/socket/http.so'
      no file '/usr/local/lib/lua/5.3/loadall.so'
      no file './socket/http.so'
      no file '/usr/local/lib/lua/5.3/socket.so'
      no file '/usr/local/lib/lua/5.3/loadall.so'
      no file './socket.so'
      
      [ALERT] 115/152743 (34825) : Error(s) found in configuration file : /var/etc/haproxy_test/haproxy.cfg
      [ALERT] 115/152743 (34825) : Fatal errors found in configuration.
      
      1 Reply Last reply Reply Quote 0
      • B
        benjamesfleming
        last edited by

        I managed to install luasocket by following the install-free-bsd-packages guide.

        For future reference the package I installed was:
        https://pkg.freebsd.org/freebsd:11:x86:64/latest/All/lua53-luasocket-3.0.r1_5,1.txz

        CyberCloud_ConsultingC 1 Reply Last reply Reply Quote 0
        • CyberCloud_ConsultingC
          CyberCloud_Consulting @benjamesfleming
          last edited by

          @benjamesfleming said in [SOLVED] haproxy-auth-request luasocket support?:

          https://pkg.freebsd.org/freebsd:11:x86:64/latest/All/lua53-luasocket-3.0.r1_5,1.txz

          Reply

          Hello,

          I am having the same issue on PFSense Plus 23.09.1-RELEASE and HAProxy-devel 2.9.d2.
          This package no longer seems to be available for download and I cannot seem to find equivalent for FreeBSD 14. I tried browsing to the FreeBSD package URL's and get an NGINX forbidden when I attempt to browse to find what the latest package URL's are.

          Any guidance on how download the latest version of lua53-luasocket?

          Thanks

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