This file contains 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 | |
# Original script: https://gist.github.com/Wysie/7487571 | |
# | |
# Script to route traffic from home network through VPN selectively. | |
# Based off the discussion at http://www.smallnetbuilder.com/forums/showthread.php?t=9311 | |
# The setup is a Macbook, Apple Tv and a Raspberry Pi. | |
# The aim is to have all traffic from those 3 go through the VPN, all traffic from all other devices should bypassing the VPN. | |
# | |
# Requirements: Asuswrt-Merlin with OpenVPN already set up |