Sunday, September 27, 2009

Enhancement to Split-Tunnel VPN

Remember the Split-Tunnel VPN?

In case you need a script to manually add some static routes to your corporate network. Here's one:

@echo off
for /f "tokens=3" %%x in ('route print ^| find ""') do @set INPUT=%%x

route add mask %INPUT% metric 1
route add mask %INPUT% metric 1

Have fun!

This is assuming your VPN login subnet is and you wish to add 2 static routes: and