User Tools

Site Tools


networking:windows:windows_vpn

This is an old revision of the document!


Windows VPN Notes

Windows 8.1

Default Route

In the default VPN connection configuration, a new default route will be added that will route all non-local traffic over the VPN connection. This may, or may not work in your favor. Routing all non-local traffic over the VPN may:

  • Facilitate network browsing and name resolution on the connected network
    • Windows name resolution relies on Active Directory-integrated DNS or NetBIOS broadcast
  • Complicate normal Internet traffic
    • Routing all non-local traffic over the VPN connection will almost certainly slow things down
    • Location-based services will be affected since they will detect your location as where you are connected to via VPN

Enable or Disable

https://support.microsoft.com/en-us/kb/2716544

To change the Use default gateway on remote network setting for IPv6 and IPv4, follow these steps:

  1. Run ncpa.cpl to open the Network Connections Control Panel applet
  2. Right-click the VPN connection, and then click Properties
  3. Click Networking (tab)
  4. Select Internet Protocol Version 4 (TCP/IPv4) and then click Properties
  5. Click Advanced
  6. Click the IP Settings tab
  7. Disable the addition of a new default route by clearing the Use default gateway on remote network check box

Note By default, the Use default gateway on remote network check box is selected.

Windows 10

Connect/Disconnect

VpnMyWay

Batch Files

https://shiftkeysoftware.wordpress.com/2015/08/24/quickly-connect-to-a-vpn-on-windows-10/

@echo off
rasdial "My VPN connection name here"

and to disconnect:

@echo off
rasdial "My VPN connection name here" /Disconnect
networking/windows/windows_vpn.1482086271.txt.gz · Last modified: 2016/12/18 11:37 by gcooper