I have a PPoE connection to the internet called ADSL and a SSTP VPN client connection called VPN.
My ISP disconnects me every 24h and RB automatically reconnects. The problem is, the VPN connection stays connected but doesn't work after the PPoE reconnection.
I would like to create a script that when the status of the interface ADSL changes to any other status than connected, disables the VPN interface and when the status of the interface ADSL changes back to connected, enables the VPN interface.
It looks simple but I have no scripting skills and so far I'm not able to make a working script, which gets the status of the ADSL interface.
Can anybody please help me?
Thank you.