[Solved] Disable/enable TAP-Windows before connect (on pre-up)?
Posted: Thu Aug 23, 2018 3:26 am
Hi all,
I've noticed that, sometimes, on some Win7 machines the client connection faults out after numerous "Waiting for TUN/TAP interface to come up" messages.
I resolve it by manually disabling and re-enabling TAP-Windows Adapter, or restarting the system.
Is there a way to run a pre-up script that would reset the adapter before attempting to connect?
Currently I use
where up.bat is
that seems to solve the problem 80% of the time, however it doesn't seem like the right solution for the problem.
I've noticed that, sometimes, on some Win7 machines the client connection faults out after numerous "Waiting for TUN/TAP interface to come up" messages.
I resolve it by manually disabling and re-enabling TAP-Windows Adapter, or restarting the system.
Is there a way to run a pre-up script that would reset the adapter before attempting to connect?
Currently I use
Code: Select all
up up.bat
Code: Select all
ipconfig /renew *