FM
Size: a a a
FM
FM
I
p
I
EN
I
EN
EN
I
D
D
w❤
D
AI
AI
EN
AI
script-security 2в скрипте /etc/openvpn/server/client-connect.sh
setenv PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
# handle client connecting
client-connect /etc/openvpn/server/client-connect.sh
client-disconnect /etc/openvpn/server/client-disconnect.sh
#!/usr/bin/env bashв логах пишет
set -e
# Good read https://unix.stackexchange.com/a/469005/229266
echo "Client $X509_0_CN have connected to $local_port_1:$proto_1 via $trusted_ip and received local ip $ifconfig_pool_remote_ip."
/usr/bin/telegramnotify send "Client connected to VPN!" oldcity
echo "Notification send"
exit 0
RP
AI