From charlesreid1

Revision as of 02:24, 13 April 2018 by Admin (talk | contribs) (Created page with "Tincd experiment to debug all the headaches we're having: * Create three AWS nodes * Set them up with debian dotfiles * Install tinc Now we have a brady bunch. Following th...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Tincd experiment to debug all the headaches we're having:

  • Create three AWS nodes
  • Set them up with debian dotfiles
  • Install tinc

Now we have a brady bunch.

Following this guide: https://linode.com/docs/networking/vpn/how-to-set-up-tinc-peer-to-peer-vpn/

Step 0: Set Up Nodes

A bit painful. Still need to smooth this out.

Ubuntu flavor of cloud-init will accept bash scripts with a shebang. AWS cloud init will not.

More info: https://stackoverflow.com/a/17827406/463213

Need to mime-encode everything. (Maybe as simple as copying and pasting a URL?)

Cannot customize machine name for curl-pipe-to-bash (had to download, sed -i, replace blackbeard with other, etc.)

Tincd installation process does not get hostname dynamically, does not intelligently pick ip address. pick a random ip in 100-200 range. 0-100 is reserved, 200+ is the high seas

Most painful part is, we cannot SSH in. Script is supposed to check for existence of /home/ubuntu/.ssh/authorized_keys and copy it into our user's authorized keys, but this did not work. Had to manually SSH into the machine, run cat command, log out, then try again.

Real solution: have a reserved private/public key pair, hard code public key.


Step 1: Prep Nodes