Jump to content
Not connected, Your IP: 18.210.23.15
Flx11

ANSWERED Guide - Fix for TAP adapter in Windows

Recommended Posts

Hello,

Not included into any "tap.bat" files/scripts....ARP flushing......

-----------------------------------------------------

netsh interface ip delete arpcache

-----------------------------------------------------

NOW IT IS.

File/Script uploaded.....

tap.zip

Enjoy & Happy Browsing,

Regards,

Flx11

Share this post


Link to post

@Staff suggestion---->>>change from UDP to TCP protocol.

Hello!

If you set the following connection mode:

- entry-IP address 3
- protocol TCP
- port 443

you will make OpenVPN fingerprint non-detectable, not even with DPI. Thus you will dramatically lower the likelihood that they can detect your traffic as "VPN traffic".

Also remember to rotate servers periodically to avoid high volumes of traffic to/from the same IP address.

Kind regards

Share this post


Link to post

Rotating Servers  .... Automatically.

Quote

Also remember to rotate servers periodically to avoid high volumes of traffic to/from the same IP address.

I have a different solution to offer you for Windows.(See below)

File Uploaded.

reconnect.openvpn.at.time.specified.bat.zip

---------------------------------------------------

1. A time countdown (e.g. 3600 seconds).

2. You specify the countdown VALUE that you want.(time specified*)

3. Next the Tap/VPN adapter(s) will be disabled**....forcing OpenVPN to restart the session(s).

4. Tap/VPN adapter(s) will be re-enabled..in 10 seconds due time.

5. OpenVPN session(s) will now reconnect.

-----------------------------------------------------

*If you wish to reset the countdown to a new VALUE close the script and run it again.

**This is only temporary not permanent.

Tested in Windows 7 and 10.

Enjoy,

Flx

Share this post


Link to post

Tap adapter keep-alive and Rotating Servers .... Automatically.

tap.keep.alive.rotating.servers.bat.zip

 

What the above script does(self-explanatory):

 

Even though that I prefer to run tap.bat and reconnect.openvpn.at.time.specified.bat side by side. Now you don't have to anymore.

 

tap.bat and reconnect.openvpn.at.time.specified.bat are now "grouped" together.

 

If you prefer to connect/re-connect manually it's your choice.

 

The .ovpn file that you use to connect you will have to add/modify to:

-------------------------

remote-random

remote serverIP1 443

remote serverIP2 443

remote serverIP3 443

remote serverIP4 443

------------------------

OR

--------------entry-3----------

remote-random
remote gb3.vpn.airdns.org 443
remote no3.vpn.airdns.org 443
remote nl3.vpn.airdns.org 443
remote ro3.vpn.airdns.org 443
remote us3.vpn.airdns.org 443
remote ca3.vpn.airdns.org 443

--------------entry-3----------

Regards,

Flx

Share this post


Link to post

reconnecting.on.the.fly.rotating.servers.bat.zip

Tested in Windows 10 .

Purpose: reconnecting on the fly to the server(s) specified in the .ovpn file (see above)

Addressing the tap-adapter(s) devices directly by disable/enable therefore disconnect/reconnect to a new server.

Random values(integer number) for timeout/countdown function:

--------------------------------------------------------------------------------------

Updating/Checking the VPN/tap-adapter(s) DHCP mode aka Keep-Alive.

When to Restart OpenVPN session/connection.

--------------------------------------------------------------------------------------

 

If you prefer to set your own Integer value for when to reconnect(see below).

 

https://airvpn.org/topic/17440-guide-fix-for-tap-adapter-in-windows/page-3?do=findComment&comment=82338

 

Enjoy,

Flx

Share this post


Link to post
tap1.zip
The new script uploaded will delete all* your OpenVPN *.log files.
Quote

The process cannot access the file because it is being used by another process.

*When OpenVPN/OpenVPN-GUI is running your airvpn.ovpn you will get the above "error". All other *.log files not in use will be deleted.



 

Share this post


Link to post
On 9/23/2016 at 3:00 PM, 3vSIMdRVv6Q1TmbFsIiP8QV8 said:

Thanks for this post

 

Thanks for this post... this does describe the problem I've been having. My tunnel seems to collapse at 11:59 am and pm with at lest one more random time during the day. 

I've done as instructed with the .bat file, now there is a cmd window open and counting down from 300, with "press any key to continue...." do I need to leave that open? 


Thanks again, I hope this keeps my connection on 24/7 with the client.

@Matlncord
What are you "Confused" about?

Share this post


Link to post
On 4/3/2018 at 3:34 PM, sh4rp87 said:

Don't know if it helps... but I'm using this .bat on my connection with lot of disconnects and client/TAP adapters hangs with great success

Replace VPN with the name of your TAP inteface

 

This is the script that runs on VPN down

 


@echo off
netsh interface set interface VPN admin=disable
timeout /t 2 /nobreak
netsh interface set interface VPN admin=enable
timeout /t 2 /nobreak
taskkill /IM AirVpn.exe /F
taskkill /IM openvpn.exe /F
timeout /t 5 /nobreak
start "" "C:\Program Files\AirVPN\AirVPN.exe" & exit
 
@RebMusaPlease address your question(s) to the OP of this post.

Share this post


Link to post
@LZ1
Waiting for TUN/TAP interface to come up...
Another reason why that error appears and so many get this?
port 68 and/or port 67 is blocked by the firewall.

and end with "Initialization Sequence Completed With Errors/CONNECTED,ERROR,"
Do not add port 53 to the list. Also do not add port 67 or 68 to the svc.block list.
Set svchost.exe as "Outgoing Only". A more detailed example (See above post in "for svchost.exe" example)
In other words if those ports are blocked;establishing a connection to the server will not occur/happen.


 

Share this post


Link to post
Posted ... (edited)

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Security Check
    Play CAPTCHA Audio
    Refresh Image

×
×
  • Create New...