Skip to content

Instantly share code, notes, and snippets.

@StephanieSunshine
Created October 8, 2014 10:13
Show Gist options
  • Save StephanieSunshine/479215d065c7e6519525 to your computer and use it in GitHub Desktop.
Save StephanieSunshine/479215d065c7e6519525 to your computer and use it in GitHub Desktop.
Linode Debian / Ubuntu GRE tunnels hack /etc/network/interfaces
# One side, change the address by a digit and reverse the outside ip addresses for the other side
auto gre1
iface gre1 inet static
address 10.10.10.10 # inside side a address
netmask 255.255.255.0
pre-up ip tunnel add gre1 mode gre remote 173.230.145.76 local 173.230.147.224 #remote external ip local external ip
post-down ip tunnel del gre1
@alex-eri
Copy link

alex-eri commented Sep 9, 2019

@manonfgoo

ip route get ${REMOTE} | awk '{print $3}'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment