Last active
August 26, 2017 10:15
-
-
Save jordancrawfordnz/677afa2af1cdb6e1e5079b0a8c75a774 to your computer and use it in GitHub Desktop.
tinc configuration for a computer at home and in the cloud
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
Name = cloud | |
AddressFamily = ipv4 | |
Interface = tun0 |
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
Name = home | |
AddressFamily = ipv4 | |
Interface = tun0 | |
ConnectTo = cloud |
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
Address = [the hostname or IP address of the cloud server] | |
Subnet = 10.0.0.1/32 | |
-----BEGIN RSA PUBLIC KEY----- | |
[the generated public key for the cloud server] | |
-----END RSA PUBLIC KEY----- |
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
Subnet = 10.0.0.2/32 | |
-----BEGIN RSA PUBLIC KEY----- | |
[the generated public key for the home server] | |
-----END RSA PUBLIC KEY----- |
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
ifconfig $INTERFACE down |
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
ifconfig $INTERFACE 10.0.0.1 netmask 255.255.255.0 |
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
ifconfig $INTERFACE 10.0.0.2 netmask 255.255.255.0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment