On Thu, 12 May 2022 17:57:00 +0200, Gert Doering <g...@greenie.muc.de> wrote:

>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).
>

Thanks Gert,
I guess it was an anticipated reply...

The proper way is probably to be able to ssh into the router and issue some ovpn
stop command at the proper place to disconnect the client. And of course the
opposite to connect it.
What is finally needed is for the tunnel to come down for local streaming and be
up for remote streaming.

I will look at what is possible with the router itself, it is an ASUS RT-AC51U
latest hardware model.

>From the command line one could presumably shut down and start the service 
>given
the proper parameters.


-- 
Bo Berglund
Developer in Sweden



_______________________________________________
Openvpn-users mailing list
Openvpn-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openvpn-users

Reply via email to