Last active
February 5, 2021 20:57
-
-
Save kevinkirkup/7f5b6863f87f063d7a3fd96ecacc6690 to your computer and use it in GitHub Desktop.
Forward traffic for a specific IP over a VPN Tunnel on Mac
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
| #!/bin/sh | |
| ################################################## | |
| # This gets run every time the VPN is connected | |
| # Save this as /private/etc/ppp/ip-up | |
| ################################################## | |
| # —————————————————————— | |
| # Some Host | |
| # —————————————————————— | |
| /sbin/route add -host 192.168.1.31 -interface ppp0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment