Bonjour
Je cherche à exécuter un script à chaque connexion client OpenVPN.
Plus précisément, à chaque fois que mon client se connecte, j’aimerai qu’il monte un partage NFS.
Je sais qu’il est possible de lancer un script avec openvpn mais je ne comprend pas très bien comment le faire. Dois-je l’indiquer dans la conf client ? Ou bien à l’aide d’une option ?
Je vois bien dans le man l’option --up mais j’aurai préféré avoir l’avis d’une personne l’utilisant.
--up cmd
Shell command to run after successful TUN/TAP device open (pre --user UID change). The up script is useful for specifying route commands which route IP traffic destined for private subnets which exist at the other end of the VPN connection into the tunnel.
Source : openvpn.net/index.php/open-sourc … npage.html
Merci d’avance
CONFIG : Debian 7 / OpenVPN 2.2.1