Shutdown windows

Business solution to host your own OpenVPN server with web management interface and bundled clients.
Post Reply
theincogtion
OpenVpn Newbie
Posts: 2
Joined: Wed Jun 24, 2015 7:09 pm

Shutdown windows

Post by theincogtion » Wed Jun 24, 2015 7:12 pm

I am using pre and post scripts which prevent the DNS leak by changing the adapter config in windows.
If I shut down windows the post script is not executed and the dns server is not resettet. Is there any way to make sure that the post script is executed in case of a shutdown?

User avatar
Traffic
OpenVPN Protagonist
Posts: 4066
Joined: Sat Aug 09, 2014 11:24 am

Re: Shutdown windows

Post by Traffic » Thu Jun 25, 2015 11:39 am

theincogtion wrote:If I shut down windows the post script is not executed
Windows 7 does not shut down OpenVPN properly when you power off the machine .. It also does not send --explicit-exit-notify packets ...
theincogtion wrote:Is there any way to make sure that the post script is executed in case of a shutdown?
I believe there is a windows setting that can execute a script on user log off which is executed for power off as well ...

theincogtion
OpenVpn Newbie
Posts: 2
Joined: Wed Jun 24, 2015 7:09 pm

Re: Shutdown windows

Post by theincogtion » Sat Jun 27, 2015 1:34 pm

Yes this is possilbe. That should be in the script?

Post Reply