Skip to content

Instantly share code, notes, and snippets.

@premiso
Created March 13, 2019 04:06
Show Gist options
  • Save premiso/ac72fdb49fe780016a87938635dac62f to your computer and use it in GitHub Desktop.
Save premiso/ac72fdb49fe780016a87938635dac62f to your computer and use it in GitHub Desktop.
Route plex over GRE interface
#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