Last active
February 4, 2024 22:49
-
-
Save getianao/717589dc4d9310ef67fa108fec81e538 to your computer and use it in GitHub Desktop.
VPN Route Table
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
| # Show route | |
| netstat -nr | |
| # Show DNS | |
| cat /etc/resolv.conf | |
| # Default connection | |
| sudo /sbin/route change default 10.6.0.1 # 10.0.0.1 | |
| # Forward server address via VPN | |
| sudo /sbin/route add -net 10.5.0.0/16 -interface utun7 | |
| # Forward DNS address via VPN | |
| sudo /sbin/route add -net 10.90.63.2/32 -interface utun7 | |
| sudo /sbin/route add -net 10.90.63.3/32 -interface utun7 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment