Last active
August 26, 2017 10:15
Star
You must be signed in to star a gist
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