Last active
January 6, 2022 03:36
-
-
Save ndunks/f2281430a9666dd81d7e38fa41509b6e to your computer and use it in GitHub Desktop.
VPN Auto Route Specific IP on Windows
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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