-
Notifications
You must be signed in to change notification settings - Fork 0
/
steps.txt
112 lines (87 loc) · 2.46 KB
/
steps.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
per hand
sudo su
## Zeitzone anpassen
dpkg-reconfigure tzdata
## Git und Screen installieren
apt-get update && apt-get -y install git screen
## Puppet cfg clonen
cd /opt && git clone https://github.com/Tarnatos/ffki-puppet-config
## Pre-puppet anpassen:
### Zeile 11: VPN Nr.
### Zeile 101: IPv6 von eth0
cd /opt/ffki-puppet-config && nano pre-puppet.sh
## In den Screen wechseln
screen
## Pre-puppet ausführen
sh pre-puppet.sh
## adduser puppet ausführen
cd /opt
puppet apply --verbose addusers.pp
## puppet starten
cd /opt/ffki-puppet-config
puppet apply --verbose 5.gw.manifest.pp
## batctl und batman-adv-dkms auf 2013 ändern
### im rm Befehl ggf. Kernel Version ändern
apt-get -y remove batctl
apt-get -y remove batman-adv-dkms
rm /lib/modules/3.16.0-4-amd64/kernel/net/batman-adv/batman-adv.ko
apt-get install -y batctl=2013.4.0-1 batman-adv-dkms=2013.4.0-11
### Version anpinnen
cat <<-EOF>> /etc/apt/preferences
Package: batctl
Pin: version 2013.4.0-1
Pin-Priority: 1000
Package: batman-adv-dkms
Pin: version 2013.4.0-11
Pin-Priority: 1000
EOF
## OpenVPN deinstallieren
apt-get remove -y --purge openvpn
rm -Rf /etc/openvpn/
## lokalen Exit aktivieren
cd /opt/ffki-puppet-config
sh localexit.sh
### alle pre-up und down Einträge löschen
nano /etc/network/interfaces.d/ffki-bridge
## Host Datei anpassen:
### manage_etc_hosts: false
nano /etc/cloud/cloud.cfg
### /etc/hosts
### Zeile 17: 127.0.1.1 vpn5
### vRACK Umleitung ergänzen
nano /etc/cloud/templates/hosts.debian.tmpl
#vRACK
192.168.0.12 vpn0.freifunk.in-kiel.de
192.168.0.11 vpn4.freifunk.in-kiel.de
192.168.0.10 vpn5.freifunk.in-kiel.de
192.168.0.13 vpn6.freifunk.in-kiel.de
## resolv.conf rebootfest machen
### prepend domain-name-servers 213.186.33.99; setzen
nano /etc/dhcp/dhclient.conf
## check-services anpassen
### Zeile 77: rpcbind, alfred, openvpn, brid, batadv-vis entfernen respondd ergänzen
nano /usr/local/bin/check-services
## check-gateway anpassen
### tun-anonvon in bat-ffki ändern
nano /usr/local/bin/check-gateway
## fastd cfg anpassen
### peers in peer grp
### null crypto ergänzen
nano /etc/fastd/ffnord-mvpn/fastd.conf
method "null";
peer group "peers" {
include peers from "peers";
peer limit 75;
}
## mesh-announce installieren
cd /opt
git clone https://github.com/Tarnatos/kiel-yanic-cfg
cd kiel-yanic-cfg
sh mesh-announce-install.sh
# ICVPN abschalten
systemctl disable tinc
systemctl stop tinc
systemctl daemon-reload
## Server neustarten und online setzen
reboot
online