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. Press the Windows logo key+R to open the Run box.
  2. Type ncpa.cpl in the Run box, and then press Enter to open Network Connections.
  3. Right-click the VPN connection, and then click Properties.
  4. Click the Networking tab in the VPN connection properties dialog box, select Internet Protocol Version 6 (TCP/IPv6), and then click Properties.
  5. Click Advanced… in the Protocol properties box.
  6. Click the IP Settings tab in the Advanced TCP/IP Settings box.
  7. To disable the default gateway, clear the Use default gateway on remote network check box. Or, to enable the default gateway, select the Use default gateway on remote network check box.
  8. Click OK to close the Advanced TCP/IP Settings dialog box.
  9. Click OK to close the Protocol properties dialog box.
  10. Select Internet Protocol Version 4 (TCP/IPv4), click Properties, and then repeat step 5 through step 9 to change the default gateway setting for IPv4.
  11. Click OK to close the VPN connection properties dialog 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.1482085720.txt.gz · Last modified: 2016/12/18 11:28 by gcooper