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

    Client-connect

    Scheduled Pinned Locked Moved OpenVPN
    3 Posts 2 Posters 1.7k 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.
    • L
      lucky
      last edited by

      Hi all,

      I've implemented a custom client-connect script on my server, and it works fine. I added client-connect to the advanced configuration box of the server configuration page.

      But…I saw that previously there was a default script in the actual ovpn config file in /var/etc/openvpn:

      client-connect /usr/local/sbin/openvpn.attributes.sh
      

      Now that's gone and mine has replaced it. Question is…will this cause a problem? Did I do this wrong?

      Thanks.

      1 Reply Last reply Reply Quote 0
      • jimpJ
        jimp Rebel Alliance Developer Netgate
        last edited by

        If you need RADIUS support for attributes (such as IP addresses, ACLs, routes, etc) then you need that script. If you don't need RADIUS, then you don't need the script and it's safe to replace it with your own.

        Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

        Need help fast? Netgate Global Support!

        Do not Chat/PM for help!

        1 Reply Last reply Reply Quote 0
        • L
          lucky
          last edited by

          Ah…yeah, so I see that one firewall I'm using RADIUS for OpenVPN on doesn't work with client-connect defined.

          This seems like a bug - is there a workaround? Is it a known issue?

          Edit - I could just call my script from the attributes script...though I'm looking for something clean. Meaning, I get all the environment variables, etc.

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