Skip to content

Instantly share code, notes, and snippets.

@kevinkirkup
Last active February 5, 2021 20:57
Show Gist options
  • Select an option

  • Save kevinkirkup/7f5b6863f87f063d7a3fd96ecacc6690 to your computer and use it in GitHub Desktop.

Select an option

Save kevinkirkup/7f5b6863f87f063d7a3fd96ecacc6690 to your computer and use it in GitHub Desktop.
Forward traffic for a specific IP over a VPN Tunnel on Mac
#!/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