Skip to content

Instantly share code, notes, and snippets.

@kost
Last active November 10, 2021 10:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kost/9458e1ba3c1ad61a76d5719df5350f00 to your computer and use it in GitHub Desktop.
Save kost/9458e1ba3c1ad61a76d5719df5350f00 to your computer and use it in GitHub Desktop.
tinc on Mac OS X example configuration using utun

MAC OS X, tinc and utun

tinc on Mac OS X example configuration using utun

IP allocations explained

My machine: 192.168.152.10

Remote machine: 192.168.152.5 (8.8.8.8)

Subnet = 192.168.152.10/32
-----BEGIN RSA PUBLIC KEY-----
-----END RSA PUBLIC KEY-----
Subnet = 192.168.152.5/32
Address = 8.8.8.8
-----BEGIN RSA PUBLIC KEY-----
-----END RSA PUBLIC KEY-----
#!/bin/sh
ifconfig $INTERFACE down
#!/bin/sh
# MyMachine = 192.168.152.10
# RemoteMachine = 192.168.152.5 (from ConnectTo)
# ifconfig $INTERFACE 192.168.152.10 netmask 255.255.255.0
ifconfig $INTERFACE inet 192.168.152.10 192.168.152.5 up
route -n add -net 192.168.152.0/24 192.168.152.5
Name = MyMachine
AddressFamily = ipv4
# Interface = tap0
# Device = /dev/tap0
Device = utun5
ConnectTo = RemoteMachine
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment