evenet/README

31 lines
979 B
Plaintext
Raw Normal View History

2014-12-25 14:26:48 +00:00
0. Choose a Subnet/Hostname
ex: eve/172.23.75.2/32
1. Install tinc-pre
2. Clone hosts
2015-01-26 13:00:20 +00:00
root> mkdir /etc/tinc/evenet
root> chown $USER /etc/tinc/evenet
user> git clone gitlab@git.higgsboson.tk:Mic92/evenet.git /etc/tinc/evenet
2014-12-25 14:26:48 +00:00
3. Start tinc interactive mode
2015-01-26 13:00:20 +00:00
user> tinc -c /etc/tinc/evenet
2014-12-25 14:26:48 +00:00
tinc> init <HOST>
tinc> set Subnet <HOST>
tinc> set Mode switch
tinc> set Hostnames yes
2015-01-26 13:00:20 +00:00
tinc> set Address domain.tld # optional, wenn eine öffentliche Addresse verfügbar ist
tinc> set Port 666 # optional, wenn anderer Port gewünscht
tinc> add ConnectTo eve
tinc> add ConnectTo ohorn
2014-12-25 14:26:48 +00:00
tinc> exit
4. Adapt tinc-up/tinc-down
2015-01-26 13:00:20 +00:00
user> cp tinc-up-linux tinc-up # replace linux with your os
root> sed -i 's/%IP%/<HOST>/g' tinc-up
2014-12-25 14:26:48 +00:00
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