Vera VyprVPN Management

I have a TomatoUSB Router and I have the VyprVPN app installed. My fundamental issue is that when my network is connected to the VPN service I cannot tunnel in through port forwarding using this setup. It is documented by the service provider and they “may” look into fixing it. I thought if I could only turn my VPN off when I leave the house and have it turn on automatically when I get home. I am pretty new to Vera and just started trying to get proximity monitoring setup and thought that would be a cool thing to try and control. So basically what happens is if I leave the house with my VPN connected I cannot see my cameras remotely which is a huge reason I bought them. So I put together a virtual switch for managing the VPN status. If the switch it clicked on I have some lua code that makes a web request to my router with some parameters for a CGI app and voila, I can control turning it on and off via scenes. It was easy as looking at the web request in fiddler to figure out how to mimic the browser’s behavior. I attached those scenes to the on off switch of my virtual switch so I can control whether my home network is connected to a vpn remotely. So then I setup proximity monitoring so whenever I leave the house it instantly turns my connection off so I can see my cameras. :slight_smile: When I get home it connects the network to the VPN and all is as it should be. I just thought I would post that idea in the event it may help someone else.