Windows 8 - no internet connetction to some hosts while VPN is active

13,048

Solution 1

On the VPN Connection properties:

-> Networking -> Internet Protocol Version 4 -> Advanced... -> Unceck "Use default gateway on remote network"

This ensures that you are NOT using the VPN's default gateway, but your local one. (You add it manually with the route add command)

Solution 2

All is not right, you just need to set the metric 5000 in vpn connection setting and after all will work. Checked!

It placed -> Networking -> Internet Protocol Version 4 -> Advanced... -> Unceck "Auto set metric" and write in field below 5000.

Share:
13,048

Related videos on Youtube

Harry
Author by

Harry

Co-founder of the CodeDog company. Author of the Woof Toolkit. Specializes in back-ends, APIs, IoT and general hacking. Tech enthusiast, a big fan of .NET, Windows, Linux and recently Rust on microcontrollers.

Updated on September 18, 2022

Comments

  • Harry
    Harry over 1 year

    I use VPN to access the servers at work. When VPN is used, all network traffic to the Internet passes through my company network. It worked without any problems on Windows 7, now on Windows 8 some sites suddenly became inaccessible. Please note - I don't try to connect them over RDP, they are public Internet addresses, outside company network.

    They are inaccessible using any protocol. Ping returns "General failure.".

    I know it could be a misconfiguration on my company's server side, but it's very strange, since the same VPN connection used on Windows 7 works properly.

    What's wrong? Is it a Windows 8 bug, or is there something I could do on my company servers to make VPN work as expected with Windows 8? My company network works on Windows Server 2008 R2 and uses Microsoft TMG firewall. I couldn't find any rules blocking the traffic to mentioned sites, all network traffic for VPN users are passed through for all IPs and protocols.

    Any clues?

    UDPATE: Important - one whole day it worked. I hibernated and restarted the computer, connected and disconnected VPN - nothing could break my connection. Today it broke again, and restarting Windows didn't help. And now the solution:

    route add -p 0.0.0.0 MASK 255.255.255.255 192.168.1.1
    

    Oh, OK, I know what it did, added my default gateway to routing table. But it still didn't work sometimes. So I removed my main network gateway route with:

    route delete -p 0.0.0.0 MASK 0.0.0.0 192.168.0.1
    

    And added modified with:

    route add -p 0.0.0.0 MASK 255.255.255.255 192.168.0.1
    

    And it works. Now. But I don't trust this. I don't know what really happened.

    • FooBee
      FooBee almost 12 years
      File a bug report with MS. Win8 hasn't been published yet.
    • resmon6
      resmon6 almost 12 years
      Try enabling split tunneling
    • Harry
      Harry almost 12 years
      Yes, hosts inside work. Some of the outside ones don't work. For example - google worked, some other site in France didn't. The behavior was also very random. Sometimes it all worked, and then stopped to work. I'll try to file a bug then. I don't think it's the server fault :) It doesn't block any traffic from VPN to Internet, AFAIK. Now I mostly use Win7 again, because I need Internet access at work and I can't disconnect VPN every 5 minutes.
  • Harry
    Harry almost 12 years
    Thanks! It seems to work now, and the main connection is not marked as "Limited" anymore. Should I remove my changes to routes now?
  • tutuDajuju
    tutuDajuju almost 11 years
    Windows 8 does not appear to have "Use default gateway on remote network" option
  • MichelZ
    MichelZ almost 11 years
    It does. It's exactly the same