Created
March 13, 2019 04:06
-
-
Save premiso/ac72fdb49fe780016a87938635dac62f to your computer and use it in GitHub Desktop.
Route plex over GRE interface
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
| #Amend default GW to your local GW | |
| DEFAULT_GW="192.168.169.1" | |
| IP_BIN=/usr/bin/ip | |
| PLEX_IP_ADDS=$( dig +noall +answer plex.tv | cut -f6 ) | |
| for IP_ADDS in ${PLEX_IP_ADDS}; do | |
| ${IP_BIN} route add ${IP_ADDS} via ${DEFAULT_GW} | |
| done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment