So this happens when I immediately disconnect the VPN or after a long time like 1 hour. The problem would be solved when I restart my laptop but it takes a while for it to be restarted and besides I don’t want to restart it like four times a day! And another interesting thing is that when I use an Ethernet connection( with Lan cable I mean) It wouldn’t happen! I use windows 10.
Check your DNS. I noticed where windows 10 would not release the DNS information from the VPN. I had to run a script to reset the DNS.
Do this, connect to VPN, open a command prompt, run an ip config, take notes or screenshot it. Disconnect and do the same thing. Note the DNS setting.
Make sure you haven’t enabled the kill switch
When you say you don’t have connectivity try to isolate the issue.
- If it is an issue with not being able to ping hostnames e.g. google.com but you can ping specific IP address like 8.8.8.8 then you most likely have an issue with DNS. Then you check your DNS settings by issuing the following command (on a Mac) to see what DNS server your computer is using to resolve the hostname (first half) and what response it got for the IP of that hostname (second half)
# nslookup google.com
Server: 192.168.86.1
Address: 192.168.86.1#53
Non-authoritative answer:
Name: google.com
Address: 172.217.164.110
-
Does your computer have the DHCP info that you expect. Compare the info of IP address, subnet mask, default gateway, and DNS when internet is working and after it is broken to spot the difference.
-
If you are not able to ping any IP address (not hostname but IP) then run Wireshark to capture traffic on the interface while you are doing a ping. Then you can see if the ping packet is even leaving your computer and filter on `icmp`. Most likely the ping pakcets are not since based on your symptoms it is an issue with your computer.
-
Another alternative workaround might be to just shut and no shut your wifi adapter or do a DHCP renew so that it pulls the proper DNS info if that is your culprit.