I'm sure there are others in here that connect to a Meraki VPN and attempt to use split tunnel. In order for the split tunnel to work, I set up a PowerShell command to do this:
New-NetRoute -DestinationPrefix "192.168.1.0/24" -InterfaceAlias "VPN" -PolicyStore ActiveStore -NextHop 192.168.1.1
I've been trying to replace that with the add route built into RDM, but I am not sure how to do it. I saw the command it creates, but it does not work. I tried from a command line, and same issue. I have tried:
route add 192.168.1.0 mask 255.255.255.0 %gateway% metric 1 if "VPN"
route add 192.168.1.0 mask 255.255.255.0 %gateway% metric 1 if "PPP Adapter VPN"
Keep getting
route: bad interface index VPN
route: bad interface index PPP Adapter VPN
What am I missing to to this? I'd like to get rid of these little .ps1 files and keep it clean in RDM. Or does a newer version of RDM include adding a route via PowerShell opposed to cmd?
Thanks for any input.
Hello,
Could you provide us with your RDM version?
What type of entry are you using to configure the VPN?
I'm guessing that the "New-NetRoute -DestinationPrefix "1......" works when outside of RDM, can you confirm?
Thanks for keeping me in touch.
Best regards,
Alex Belisle
Correct, I am using
New-NetRoute -DestinationPrefix "192.168.0.0/24" -InterfaceAlias "VPN ENTRY" -PolicyStore ActiveStore -NextHop 192.168.0.1
through a .ps1 script I currently call through the after connect command
powershell "& ""%userprofile%\OneDrive\Documents\RemoteDesktopManager\VPNCONNET.ps1"""
That did not work for me though when I put in the command. I got an error:
Unable to execute the command line New-NetRoute -DestinationPrefix "192.168.0.0/24" -InterfaceAlias "VPN ENTRY" -PolicyStore ActiveStore -NextHop 192.168.0.1
The system cannot find the file specified.
Is there somewhere that I need to tell RDM to use PowerShell opposed to cmd? I'm on RDM 2020.1.20.0
Hello,
Since you've opened a ticket, we'll continue over there.
I will post the solution when the ticket is resolved,
Thanks!
Best regards,
Alex Belisle