User Tools

Site Tools


networking:mikrotik:split_tunnel_01

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
networking:mikrotik:split_tunnel_01 [2020/04/12 10:15] rpleckonetworking:mikrotik:split_tunnel_01 [2020/08/19 12:02] (current) rplecko
Line 1: Line 1:
 === Split tunnel - Powershell cmdlet === === Split tunnel - Powershell cmdlet ===
  
-  - 1. In vpn connection properties select **Internet Protocol V4** +  - In vpn connection properties select **Internet Protocol V4** 
-  - 2. In **General Properties**, click //Advanced// +  - In **General Properties**, click //Advanced// 
-  - 3. In **Advanced TCP/IP Settings**, uncheck **Use default gateway on remote network**+  - In **Advanced TCP/IP Settings**, uncheck **Use default gateway on remote network**
  
-{{ :networking:mikrotik:vpn_props.png?600 |}}+[[http://wiki.tuturutu.eu/lib/exe/detail.php?id=networking:mikrotik:split_tunnel_01&media=networking:mikrotik:vpn_props.png|{{  :networking:mikrotik:vpn_props.png?600  }}]]
  
-Powershell has cmdlet available that adds routes on VPN connection and removes them again when the VPN is disconnected: \\ <fc #ff0000>**Add-VpnConnectionRoute**</fc>\\ +Now, your computer will no longer use gateway on remote network for internet access.
- It works without having to specify the interface ID.+
  
-The basic syntax is like this:+Next, we need to add a route so the traffic to the remote network could be routed properly.
  
-  Add-VpnConnectionRoute -ConnectionName "VPN Connection Name" -DestinationPrefix 10.0.0.0/16 +Powershell has a cmdlet available that adds routes on VPN connection and removes them again when the VPN is disconnected: \\ <fc #ff0000>**Add-VpnConnectionRoute**</fc> \\ It works without having to specify the interface ID.
-   +
-After entering this command, the routes will be created/removed automatically on connection/disconnection of the VPN.+
  
-There is no adequate **Get-VpnConnectionRoute** to check your current settings, but you can use **Get-VpnConnection** which gives too much information, but nevertheless, helps.+The basic syntax is like this:
  
 +<code>
 +Add-VpnConnectionRoute -ConnectionName "VPN Connection Name" -DestinationPrefix 10.0.0.0/16
 +</code>
 +
 +After entering this command, the routes will be created/removed automatically on connection/disconnection of the VPN.
  
 +There is no adequate **Get-VpnConnectionRoute**  to check your current settings, but you can use **Get-VpnConnection**  which gives too much information, but nevertheless, helps.
  
 [[https://docs.microsoft.com/en-us/powershell/module/vpnclient/add-vpnconnectionroute?view=win10-ps|Add-VpnConnectionRoute Help]] \\ [[https://docs.microsoft.com/en-us/powershell/module/vpnclient/add-vpnconnectionroute?view=win10-ps|Add-VpnConnectionRoute Help]] \\
 [[https://docs.microsoft.com/en-us/powershell/module/vpnclient/get-vpnconnection?view=win10-ps|Get-VpnConnection Help]] [[https://docs.microsoft.com/en-us/powershell/module/vpnclient/get-vpnconnection?view=win10-ps|Get-VpnConnection Help]]
  
 +<code>Set-VpnConnection -Name "VPN Connection Name" -SplitTunneling $True
 +</code>
  
networking/mikrotik/split_tunnel_01.1586686525.txt.gz · Last modified: 2020/04/12 10:15 by rplecko