Created
October 8, 2014 10:13
-
-
Save StephanieSunshine/479215d065c7e6519525 to your computer and use it in GitHub Desktop.
Linode Debian / Ubuntu GRE tunnels hack /etc/network/interfaces
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
# 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@manonfgoo
ip route get ${REMOTE} | awk '{print $3}'