Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
tinc configuration for a computer at home and in the cloud
Name = cloud
AddressFamily = ipv4
Interface = tun0
Name = home
AddressFamily = ipv4
Interface = tun0
ConnectTo = cloud
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-----
Subnet = 10.0.0.2/32
-----BEGIN RSA PUBLIC KEY-----
[the generated public key for the home server]
-----END RSA PUBLIC KEY-----
ifconfig $INTERFACE down
ifconfig $INTERFACE 10.0.0.1 netmask 255.255.255.0
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
You can’t perform that action at this time.