20200726: Difference between revisions
From charlesreid1
(→Notes) |
(→Tinc) |
||
| Line 13: | Line 13: | ||
<pre> | <pre> | ||
$ cd /etc/tinc/master | |||
$ cat tinc.conf | $ cat tinc.conf | ||
Name = bespin | Name = bespin | ||
| Line 22: | Line 24: | ||
#!/bin/sh | #!/bin/sh | ||
ifconfig $INTERFACE 10.6.0.10 netmask 255.255.0.0 | ifconfig $INTERFACE 10.6.0.10 netmask 255.255.0.0 | ||
$ cat tinc-down | |||
#!/bin/sh | |||
ifconfig $INTERFACE down | |||
$ ls hosts/ | |||
bespin | |||
dorky | |||
</pre> | |||
On dorky: | |||
<pre> | |||
$ cd /etc/tinc/master | |||
$ cat tinc.conf | |||
Name = dorky | |||
AddressFamily = any | |||
Mode = switch | |||
$ cat tinc-up | |||
#!/bin/sh | |||
ifconfig $INTERFACE 10.6.0.1 netmask 255.255.0.0 | |||
$ cat tinc-down | $ cat tinc-down | ||
Revision as of 20:30, 26 July 2020
Notes
- pod private wiki requires a domain
- that requires network interfaces and ip addresses to be set up
- installing tinc natively, whole point is to avoid fuss
- vpn.charlesreid1.party
- certificate
- dns record
Tinc
On bespin:
$ cd /etc/tinc/master $ cat tinc.conf Name = bespin AddressFamily = any Mode = switch ConnectTo = dorky $ cat tinc-up #!/bin/sh ifconfig $INTERFACE 10.6.0.10 netmask 255.255.0.0 $ cat tinc-down #!/bin/sh ifconfig $INTERFACE down $ ls hosts/ bespin dorky
On dorky:
$ cd /etc/tinc/master $ cat tinc.conf Name = dorky AddressFamily = any Mode = switch $ cat tinc-up #!/bin/sh ifconfig $INTERFACE 10.6.0.1 netmask 255.255.0.0 $ cat tinc-down #!/bin/sh ifconfig $INTERFACE down $ ls hosts/ bespin dorky