Skip to content

Instantly share code, notes, and snippets.

@ndunks
Last active January 6, 2022 03:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ndunks/f2281430a9666dd81d7e38fa41509b6e to your computer and use it in GitHub Desktop.
Save ndunks/f2281430a9666dd81d7e38fa41509b6e to your computer and use it in GitHub Desktop.
VPN Auto Route Specific IP on Windows
rem Open VPN Connection Properties -> Network -> Ipv4 -> Advanced -> [Uncheck] Use default gateway
rem Create Basic Task Scheduler on specific Event Log to run this cmd
rem Network Profile Operational, NetworkProfiile, eventID:10001 or 10000 (cek on Even viewer to make sure)
route ADD 192.168.4.0 MASK 255.255.255.0 192.168.5.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment