Flx11 10 Posted ... Hello,Instead of reseting it manually every now and then, now you can do this automatically. And stay/be connected 24/7 through the VPN.The issue then when trying to connect remotely (e.g. office/other location) to the home computer that's connected to AirVPN.Your client IP will be reset to 10.3.0.1 or 169.x.x.x. In that case OpenVPN-GUI will still show Connected, but in fact it's not.1)This small batch file(see below) will ensure that the TAP-adapter will not disconnect.---------------------------------dhcp.tap.adapter.bat-------------------------------------------@ECHO OFF:LOOPECHO Waiting for 300 seconds....timeout /t 300netsh interface ip set address tapadapter DHCPnetsh interface ip set address tapadapter DHCPnetsh int ip set dns name = "tapadapter" source = dhcpipconfig /allGOTO LOOP---------------------------------dhcp.tap-adapter.bat-------------------------------------------2)After the connection has been established to AirVPN(UDP/TCP or OpenVPN over SSL/SSH) run the above file dhcp.tap.adapter.bat.Run as Admin if elevation is required.Regards,Flex 1 LZ1 reacted to this Quote Hide Flx11's signature Hide all signatures Windows breaking your VPN connection/TAP adapters?!?---Windows Update problem or related? Share this post Link to post
3vSIMdRVv6Q1TmbFsIiP8QV8 1 Posted ... Thanks for this post Hello,Instead of reseting it manually every now and then, now you can do this automatically. And stay/be connected 24/7 through the VPN.The issue then when trying to connect remotely (e.g. office/other location) to the home computer that's connected to AirVPN.Your client IP will be reset to 10.3.0.1 or 169.x.x.x. In that case OpenVPN-GUI will still show Connected, but in fact it's not.1)This small batch file(see below) will ensure that the TAP-adapter will not disconnect.---------------------------------dhcp.tap.adapter.bat-------------------------------------------@ECHO OFF:LOOPECHO Waiting for 300 seconds....timeout /t 300netsh interface ip set address tapadapter DHCPnetsh interface ip set address tapadapter DHCPnetsh int ip set dns name = "tapadapter" source = dhcpipconfig /allGOTO LOOP---------------------------------dhcp.tap-adapter.bat-------------------------------------------2)After the connection has been established to AirVPN(UDP/TCP or OpenVPN over SSL/SSH) run the above file dhcp.tap.adapter.bat.Run as Admin if elevation is required.Regards,FlexThanks 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. 1 MatIncord reacted to this Quote Share this post Link to post
3vSIMdRVv6Q1TmbFsIiP8QV8 1 Posted ... I left it running for about 6 hours, but eventually, the tunnel collapsed and the VPN client still thought it was connected. I still have to manually uninstall the tap and then run the VPN client and let it reinstall the tap. Quote Share this post Link to post
LZ1 669 Posted ... Hello ! @OPGood stuff. Maybe you should change to title to include the word "Guide" somewhere, to make it more clear for people. @3vSIMAre you using the Eddie client by any chance and perhaps with Network Lock? Just curious. Quote Hide LZ1's signature Hide all signatures Hi there, are you new to AirVPN? Many of your questions are already answered in this guide. You may also read the Eddie Android FAQ. Moderators do not speak on behalf of AirVPN. Only the Official Staff account does. Please also do not run Tor Exit Servers behind AirVPN, thank you. Did you make a guide or how-to for something? Then contact me to get it listed in my new user guide's Guides Section, so that the community can find it more easily. Share this post Link to post
Flx11 10 Posted ... Thanks again, I hope this keeps my connection on 24/7 with the client.Yes it will. Now you can also change the timeout /t 300. I now have it set to 100 seconds and it works. I left it running for about 6 hours, but eventually, the tunnel collapsed and the VPN client still thought it was connected. That will happen sometimes. If OpenVPN is diconnected it will just reconnect.I still have to manually uninstall the tap and then run the VPN client and let it reinstall the tap. Then just disable the TAP adapter and Enable it again then reconnect. Quote Hide Flx11's signature Hide all signatures Windows breaking your VPN connection/TAP adapters?!?---Windows Update problem or related? Share this post Link to post
Flx11 10 Posted ... 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? You can minimize it ....let it run in the background.Yes you need that to stay open. Quote Hide Flx11's signature Hide all signatures Windows breaking your VPN connection/TAP adapters?!?---Windows Update problem or related? Share this post Link to post
Flx11 10 Posted ... As another choice would be to set DNS as static.......for the VPN tunnel.-------------------------------------------------------------------------------------------------------@ECHO OFF:LOOPtimeout /t 60@ECHO DISABLING IPV6/FLUSH DNS/DISABLE TCP TIMESTAMP(S)netsh interface ip set address tapname DHCPnetsh int ip set dns name = "tapname" static 89.233.43.71(choose own DNS1)netsh interface ip add dns name="tapname" 91.239.100.100(choose own DNS2) index=2ipconfig /flushdnsipconfig /all@ECHO Waiting for 60...................... seconds...................................GOTO LOOP----------------------------------------------------------------------------------------------------------------------- Quote Hide Flx11's signature Hide all signatures Windows breaking your VPN connection/TAP adapters?!?---Windows Update problem or related? Share this post Link to post
trott3r 6 Posted ... "Waiting for 300 seconds....Waiting for 283 seconds, press a key to continue ...The filename, directory name, or volume label syntax is incorrect.The filename, directory name, or volume label syntax is incorrect." from "dhcp.tap.adapter.bat" I ran the batch file from desktop as administrater.The filename, directory name, or volume label syntax is incorrect." Quote Hide trott3r's signature Hide all signatures "They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety". Benjamin Franklin Share this post Link to post
Flx11 10 Posted ... @trott3rHave you changed the name of your TAP-adapter from "Local Area Network 2" to say "tap"? then modify the .bat file to -------------------------------------------------------------------------------------@ECHO OFF:LOOPtimeout /t 60netsh interface ip set address tap DHCPnetsh int ip set dns name = "tap" source = dhcpipconfig /flushdnsipconfig /all@ECHO Waiting for 60...................... seconds...................................GOTO LOOP------------------------------------------------------------------------------------- Quote Hide Flx11's signature Hide all signatures Windows breaking your VPN connection/TAP adapters?!?---Windows Update problem or related? Share this post Link to post
Flx 76 Posted ... The filename, directory name, or volume label syntax is incorrect."You will see this when the tap adapter does not exist or it is under a different name. Quote Hide Flx's signature Hide all signatures Guide - EMBY Block ALL interfaces except tap/vpn Windows OS - Configuring your operating system Windows OS - Multi Session/Tunnel Share this post Link to post
Flx 76 Posted ... The batch script works in Windows 7/8/8.1/10 etc. tap.zip The new file uploaded is based on 4 tap adapters by the name quad/quad1/quad2/quad3....main connection named as lan. Details: This ensures 4 udp/tcp vpn connections keep-alive/and keep running...thx to the new introduced fancy Devices/Keys. I run 4 UDP connections side by side. Each connection has its own new key created under Devices/Keys. You can modify the file any way you like according to your own configuration. Regards and happy browsing, Flx Quote Hide Flx's signature Hide all signatures Guide - EMBY Block ALL interfaces except tap/vpn Windows OS - Configuring your operating system Windows OS - Multi Session/Tunnel Share this post Link to post
Flx 76 Posted ... Quote connections side by side. for each connection you will/may need to pick a different port 443/53/80/2018 Quote Hide Flx's signature Hide all signatures Guide - EMBY Block ALL interfaces except tap/vpn Windows OS - Configuring your operating system Windows OS - Multi Session/Tunnel Share this post Link to post
Flx 76 Posted ... for your torrent client an extra step will be needed In Comodo Firewall-Rulesets block.lan.wifi.ipv6. BY mac and iP. Example 1. 2. The 2 "examples" that you see above either one will work just fine. You can expand the list depending on your config/system. Regards, Flx Quote Hide Flx's signature Hide all signatures Guide - EMBY Block ALL interfaces except tap/vpn Windows OS - Configuring your operating system Windows OS - Multi Session/Tunnel Share this post Link to post
LZ1 669 Posted ... OP do you think this would work for when: OpenVPN > TEST ROUTES: 0/0 succeeded len=-1 ret=0 a=0 u/d=down . 2018.02.07 18:55:16 - OpenVPN > Route: Waiting for TUN/TAP interface to come up... ? Quote Hide LZ1's signature Hide all signatures Hi there, are you new to AirVPN? Many of your questions are already answered in this guide. You may also read the Eddie Android FAQ. Moderators do not speak on behalf of AirVPN. Only the Official Staff account does. Please also do not run Tor Exit Servers behind AirVPN, thank you. Did you make a guide or how-to for something? Then contact me to get it listed in my new user guide's Guides Section, so that the community can find it more easily. Share this post Link to post
Flx 76 Posted ... Yup....in Global Rules...add this at the top of your Rules already defined....image example Quote OP do you think this would work for when: OpenVPN > TEST ROUTES: 0/0 succeeded len=-1 ret=0 a=0 u/d=down . 2018.02.07 18:55:16 - OpenVPN > Route: Waiting for TUN/TAP interface to come up... where quad.mac is the mac address of your quad tap adapter found in Network Zones->quad.mac. and where tap.mac or tapall.mac in Network Zones->tap.mac or tapall.mac zone which contains all your tap adapter mac addresses. @LZ1 this should fix/resolve your problem. Regards, Flx 1 LZ1 reacted to this Quote Hide Flx's signature Hide all signatures Guide - EMBY Block ALL interfaces except tap/vpn Windows OS - Configuring your operating system Windows OS - Multi Session/Tunnel Share this post Link to post
Flx 76 Posted ... An update on the tap.bat Including IPV6 details etc. Enjoy, Flx tap.ipv4.ipv6.bat.zip Quote Hide Flx's signature Hide all signatures Guide - EMBY Block ALL interfaces except tap/vpn Windows OS - Configuring your operating system Windows OS - Multi Session/Tunnel Share this post Link to post
sh4rp87 0 Posted ... 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 successReplace 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 Quote Share this post Link to post
Flx 76 Posted ... (edited) but I'm using this .bat on my connection with lot of disconnectsYour connection client to the AirVPN server just drops and tries to do a reconnect....in Eddie?@echo offnetsh interface set interface VPN admin=disabletimeout /t 2 /nobreaknetsh interface set interface VPN admin=enable netsh interface ip set address VPN DHCPnetsh int ip set dns name = "VPN" source = dhcptimeout /t 2 /nobreaktaskkill /IM AirVpn.exe /Ftaskkill /IM openvpn.exe /Ftimeout /t 5 /nobreakstart "" "C:\Program Files\AirVPN\AirVPN.exe" & exitJust make sure that VPN/TAP adapter is in DHCP mode.(See above) Edited ... by Flx Quote Hide Flx's signature Hide all signatures Guide - EMBY Block ALL interfaces except tap/vpn Windows OS - Configuring your operating system Windows OS - Multi Session/Tunnel Share this post Link to post
Flx 76 Posted ... Hello, you may also consider this as an extra partial choice: ----------------------------------------------------------------------------------------------netsh int tcp set global timestamps=disabled netsh interface ipv6 set privacy state=disable netsh interface ipv6 6to4 set state state=disabled netsh interface ipv6 isatap set state state=disabled netsh interface ipv6 set teredo disabled ----------------------------------------------------------------------------------------------- Regards, Flx 1 MatIncord reacted to this Quote Hide Flx's signature Hide all signatures Guide - EMBY Block ALL interfaces except tap/vpn Windows OS - Configuring your operating system Windows OS - Multi Session/Tunnel Share this post Link to post
Flx 76 Posted ... Windows 10 breaking the tap adapter: 1.If you have Comodo A/V Firewall and Windows OS as your config...turn WIndows Firewall OFF. Windows Defender can run side by side with Comodo.(Your choice) 2.Before/After you manage to connect to an AirVPN server. Use one of the scripts provided to fix this TAP issue. You can use Eddie app or native OpenVPN(2 or more connections/sessions). The batch scripts do exactly that(e.g. Prevent WIndows to break the VPN connection/tap adapter) 3.Disable in gpedit.msc anything you do not need (Store/maps/Telemetry etc) 4.Comodo-Rules.Set a local rule... Block/Prevent any app/wermgr.exe/System/WIndows Operating System process to send data to (e.g. Microsoft) for port 80/443/ etc. 5.In Network Zone-->>Blocked Zones---->Block the default gateway(e.g. xxx.xxx.2.1) from main adapter before/after you connect. 6.Set a master password in/for Comodo. Only the person that knows the password set will be able to do any actual changes (e.g. Disable the Firewall etc.) Regards, Flx Quote Hide Flx's signature Hide all signatures Guide - EMBY Block ALL interfaces except tap/vpn Windows OS - Configuring your operating system Windows OS - Multi Session/Tunnel Share this post Link to post
Flx 76 Posted ... For any other application that you run on your system/network such as Serviio/Smart View or similar...use the provided example below....if you don't like it not my problem..find your own "solution" Quote Hide Flx's signature Hide all signatures Guide - EMBY Block ALL interfaces except tap/vpn Windows OS - Configuring your operating system Windows OS - Multi Session/Tunnel Share this post Link to post
Flx11 10 Posted ... FOR------------svchost.exe----------------where svc.block contains the blocked ports 80/443/others---------------------------------------------------SET dllhost.exe/dashost.exe/explorer.exe/etc. as local (above example how to do so) Comodo Global Rules https://airvpn.org/topic/3405-windows-comodo-prevent-leaks/ is only the minimum/beginner needed.Regards,Flex Quote Hide Flx11's signature Hide all signatures Windows breaking your VPN connection/TAP adapters?!?---Windows Update problem or related? Share this post Link to post
Flx 76 Posted ... SET dllhost.exe/dashost.exe/explorer.exe/etc. as localhttps://airvpn.org/index.php?app=core&module=attach§ion=attach&attach_rel_module=post&attach_id=26140 Quote Hide Flx's signature Hide all signatures Guide - EMBY Block ALL interfaces except tap/vpn Windows OS - Configuring your operating system Windows OS - Multi Session/Tunnel Share this post Link to post
Flx 76 Posted ... Good stuff. Maybe you should change to title to include the word "Guide" somewhere, to make it more clear for people.@LZ1 Thx for the suggestion.@Staff Thank you for topic name change. Quote Hide Flx's signature Hide all signatures Guide - EMBY Block ALL interfaces except tap/vpn Windows OS - Configuring your operating system Windows OS - Multi Session/Tunnel Share this post Link to post
Flx 76 Posted ... for openvpn.exe and openvpn-gui.exe----image example-- instead of "Outgoing Only" option. to make "2 3 4 VPN Connections Side-by-Side" to your main adapter(IP address xxx.xxx.2.153). Enjoy & Regards, Flx Quote Hide Flx's signature Hide all signatures Guide - EMBY Block ALL interfaces except tap/vpn Windows OS - Configuring your operating system Windows OS - Multi Session/Tunnel Share this post Link to post