Hi, On Thu, May 12, 2022 at 12:00:13PM +0200, Bo Berglund wrote: > Is there a way I can switch on/off access for a specific client server side > "easily"?
Not really. Well, of course you can put a "disable" into the ccd, but then it will receive an AUTH_FAIL and not retry. > If it is possible then I can script it server side and give him an URL to my > home webserver to activate the switch ON/OFF. ... what you could do: make that switch control the corresponding ccd/ file, and have the "push 'redirect-gateway'" (and/or "push 'route...'") commands in there. So the OpenVPN would always be "connected", but only if he wants to watch "remote geoloc TV", he would receive pushed routes to send packets your way... (and then you'd need to bump the session, as you cannot currently change pushed routes in the middle of a session - well, strictly you can, but this needs the management interface to trigger on the server, and the behaviour is not exactly well-defined). gert -- "If was one thing all people took for granted, was conviction that if you feed honest figures into a computer, honest figures come out. Never doubted it myself till I met a computer with a sense of humor." Robert A. Heinlein, The Moon is a Harsh Mistress Gert Doering - Munich, Germany g...@greenie.muc.de
signature.asc
Description: PGP signature
_______________________________________________ Openvpn-users mailing list Openvpn-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openvpn-users