Hello

Thanks for the answers. Please copy in a working one-by-one example what I can 
copy paste into admin privileged cmd and will work.

Here the AppDirectory would be the C:\Program Files\Openvpn\bin ?

Back to the original link what I posted. I spent like an hour try to find that  
System:Power-Troubleshooter:1 event but I couldn't, to make things worse it's 
not English windows but I couldn't find it on my language either. I know 
windows is garbage and they should just have /etc/crontab not like this. Matter 
of fact I never used this *sched* in my life just for disabling microsucks 
annoying services which bother the disk in every minute.

Thanks!

 

Sent: Thursday, January 08, 2015 at 7:28 PM
From: "Jason Haar" <jason_h...@trimble.com>
To: openvpn-users@lists.sourceforge.net
Subject: Re: [Openvpn-users] Windows 7 + Windows 8 (and Vista) - tunnel fails 
after resume from Sleep/Standby
I ditched using openvpnservice for precisely this reason and instead
have had great results using nssm (The Non-Sucking Service Manager from
http://nssm.cc/)

Basically it is a better service manager than the default Windows one
and I use it to control openvpn.exe. End result is we can have
sleep/hibernate, restart, have tunnels die,etc and nssm will ensure
openvpn.exe is restarted - precisely what you want in an "always on
vpn"/headless solution

Here's how we configure it

"c:\program files\openvpn\bin\nssm.exe" set trimble-openvpn AppDirectory
"c:\Program Files\openvpn\config" > NUL 2>&1
"c:\program files\openvpn\bin\nssm.exe" set trimble-openvpn
AppParameters trimble.cfg > NUL 2>&1
"c:\program files\openvpn\bin\nssm.exe" set trimble-openvpn AppStdin
"C:\Program Files\openvpn\log\trimble-openvpn-stdin.log" > NUL 2>&1
"c:\program files\openvpn\bin\nssm.exe" set trimble-openvpn AppStdout
"C:\Program Files\openvpn\log\trimble-openvpn-stdout.log" > NUL 2>&1
"c:\program files\openvpn\bin\nssm.exe" set trimble-openvpn AppStderr
"C:\Program Files\openvpn\log\trimble-openvpn-stderr.log" > NUL 2>&1
"c:\program files\openvpn\bin\nssm.exe" set trimble-openvpn
AppRotateFiles 1 > NUL 2>&1
"c:\program files\openvpn\bin\nssm.exe" set trimble-openvpn
DependOnService Dhcp tap0901 > NUL 2>&1

--
Cheers

Jason Haar
Corporate Information Security Manager, Trimble Navigation Ltd.
Phone: +1 408 481 8171
PGP Fingerprint: 7A2E 0407 C9A6 CAF6 2B9F 8422 C063 5EBB FE1D 66D1


------------------------------------------------------------------------------
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. 
http://goparallel.sourceforge.net[http://goparallel.sourceforge.net]
_______________________________________________
Openvpn-users mailing list
Openvpn-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openvpn-users[https://lists.sourceforge.net/lists/listinfo/openvpn-users]

------------------------------------------------------------------------------
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet
_______________________________________________
Openvpn-users mailing list
Openvpn-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openvpn-users

Reply via email to