Skip to content

Commit

Permalink
Added quick tip about additional VPN routes
Browse files Browse the repository at this point in the history
  • Loading branch information
jabbermouth committed Nov 30, 2024
1 parent 138e67e commit e291125
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions docs/blog/posts/2024-11-30-Add-route-for-split-VPN.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
title: Add route for split VPN
description: Adding an additional route to a VPN connection in Windows 11
date: 2021-02-19
categories:
- VPN
- Quick Tips
---
# Adding an additional route to a VPN connection in Windows 11

If you're running a split VPN in Windows 11 (i.e. one which sends only certain traffic over the VPN and does not use the VPN as the default gateway), you may wish to add specific IP addresses to also be routed over the VPN. An example of this might be a service which is only accessible via a certain IP address.

Assuming you've already set up your VPN connection in Windows, you can add a route using the following PowerShell command:

```powershell
Add-VpnConnectionRoute -Name '<Split VPN Name>' -DestinationPrefix <123.45.67.89>/32
```

Where:
- `<Split VPN Name>` is the name of the VPN connection you wish to add the route to
- `<123.45.67.89>` is the IP address you wish to route over the VPN rather than via your default gateway/normal internet connection

For example, if you have a VPN connection named `My VPN` and you wish to route traffic to `216.58.204.68` over the VPN, you would use the following command:

```powershell
Add-VpnConnectionRoute -Name 'My VPN' -DestinationPrefix 216.58.204.68/32
```

0 comments on commit e291125

Please sign in to comment.