Variables for client-connect/client-disconnect scripts
-
Hi,
Is it possible to find the available variables to use in client-connect/client-disconnect scripts (openvpn.attributes.sh) ?
I found that $ifconfig_pool_remote_ip will bring the current remote IP from client
But I didn't find the variable to get pfSense IP address (N.N.N.2/24 for example)
The idea here is to insert a line that creates a new route that will be advertised via BGP when client connects, and dynamically be removed when client disconnectsThanks!
-
@prtomasi
IMHO
BGP (especially external peers) , and frequent route updates is prob. not a good idea./Bingo
-
Here is the OpenVPN list of environment variables.
Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.