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?
Shutdown windows
- Traffic
- OpenVPN Protagonist
- Posts: 4066
- Joined: Sat Aug 09, 2014 11:24 am
Re: Shutdown windows
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:If I shut down windows the post script is not executed
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 wrote:Is there any way to make sure that the post script is executed in case of a shutdown?
-
- OpenVpn Newbie
- Posts: 2
- Joined: Wed Jun 24, 2015 7:09 pm
Re: Shutdown windows
Yes this is possilbe. That should be in the script?