40 lines
1.2 KiB
Plaintext
40 lines
1.2 KiB
Plaintext
1. Install tinc and dhcp (at lease version 1.1pre11)
|
|
|
|
Archlinux:
|
|
- tinc-pre from aur
|
|
- dhcpcd or dhclient (dhcpcd recommend)
|
|
Freebsd:
|
|
- tinc from this [Port Collection](https://github.com/Mic92/ports)
|
|
- dhcpcd or dhclient (dhcpcd recommend)
|
|
Mac OS X:
|
|
- Get homebrew
|
|
- brew install --devel tinc
|
|
- Replace /etc with /usr/local/etc in the following walk-through
|
|
Windows:
|
|
- TODO
|
|
|
|
2. Clone hosts
|
|
root> mkdir /etc/tinc/evenet
|
|
root> chown $USER /etc/tinc/evenet
|
|
user> git clone gitlab@git.higgsboson.tk:Mic92/evenet.git /etc/tinc/evenet
|
|
3. Request invite url (generated by `tinc -c . invite`)
|
|
4. Join tinc url
|
|
user> tinc -c /etc/tinc/evenet join <url>
|
|
|
|
# Optional (set public address)
|
|
user> tinc -c /etc/tinc/evenet
|
|
tinc> set Address domain.tld # optional, wenn eine öffentliche Addresse verfügbar ist
|
|
tinc> set Port 666 # optional, wenn anderer Port gewünscht
|
|
tinc> exit
|
|
5. Test with tinc-debug
|
|
/etc/tinc/evenet
|
|
|
|
Linux iproute2
|
|
$ ip addr add address/prefixlength dev interface
|
|
|
|
Linux/Freebsd/OpenBSD/NetBSD/Solaris/MacOS X
|
|
$ ifconfig interface address netmask netmask
|
|
|
|
Windows
|
|
$ netsh interface ip set address interface static address netmask
|