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

    client-connect/client-disconnect scripts bypassed/overwritten

    Scheduled Pinned Locked Moved OpenVPN
    1 Posts 1 Posters 201 Views 1 Watching
    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.
    • G Offline
      generaluser
      last edited by

      SG-3100
      23.01-RELEASE (arm)

      I created two scripts to email me when a client connects/disconnects, which has been discussed here and other forums before... However when I add the following lines to "Custom Options" int he server config, it fails:

      client-connect /root/notify.sh
      client-disconnect /root/disconnect.sh

      Looking at the logs, those lines are bypassed when the openvpn server is started/restarted because those lines are appended to openvpn's config, further up in the config are these lines which get processed first:

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

      I tried to just edit those lines but they get overwritten on start/restart. I am stuck, any help would be greatly appreciated!

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