hi giulitn,
you can use a software for detect the status of your vpn connection. of course this kind of software must be write "at home". with the netsh command you can change the lan configuration without user interaction.
S
ps: this is an italian forum....