Skip to content

Instantly share code, notes, and snippets.

View Baekalfen's full-sized avatar

Mads Ynddal Baekalfen

  • Denmark
View GitHub Profile
@Baekalfen
Baekalfen / gist:7b1b9a0d0b9c4ce7d751
Last active August 29, 2015 14:07 — forked from Wysie/gist: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.
#!/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