I have set up a WiFi router for my brother-in-law who lives part-time abroad.

The router will be used to simplify TV watching from Sweden since his streaming
accounts are Swedish and geolocked so when he is abroad he cannot access them.

The router has an OpenVPN client function which I have created an ovpn file for
and it works fine to channel connected clients to Sweden.

But there is a snag that when he uses that the local play channels in the
country he lives in are now geolocked instead...

If he uses the VPN on his laptop to view content it is not a problem, he just
connects OpenVPN when he wants to access Swedish content and disconnects OpenVPN
when viewing local content. This is how we have it set up now.

But he wants to view on the TV using ChromeCast and then the special router with
its own client will be used so that he can connect the ChromeCast to the
"Swedish" router as well as his phone and then he can view Swedish stuff just
fine.

And now my question regarding switching ON/OFF Openvpn:

Is there a way I can switch on/off access for a specific client server side
"easily"?

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.

This would make the router in his end to be either in Sweden (client connected)
or in his country abroad (client disconnected).

The altaernatives are:
1) Give him an admin login to the router in order to go to the VPN page
and disable the client if he needs to view local content and enable it
for Swedish content. Not so good since he is likely to mess up the router...

2) Make him reset ChromeCast every time he wants to switch and set it to
either the "Swedish" or "Local" Wifi. Also pretty messy.

If OTOH it is possible to command the openvpn server to disable/enable the
specific connection from his router via some form of command that can be
scripted, then I could create a php function on my server which reacts to a web
command from him to toggle the client.
And he and the ChromeCast can stay on that "Swedish" router without
reconfiguration.

Any ideas?


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