Wiki-Quellcode von MySQL-Datenbank LogoDB neu aufbauen
Version 4.1 von Alexander Kruck am 2022/05/17 13:35
Verstecke letzte Bearbeiter
author | version | line-number | content |
---|---|---|---|
![]() |
2.1 | 1 | (% style="color:#000000" %)Falls Sie die MySQL Datenbank LogoDB neu aufbauen wollen gehe Sie bitte wie folgt vor: |
![]() |
1.1 | 2 | |
![]() |
2.1 | 3 | |
![]() |
3.1 | 4 | (% style="color:#000000" %)Wechseln Sie in den logosrv Container und stoppen dort die ldcatalog Datenbank: |
![]() |
2.1 | 5 | |
![]() |
1.1 | 6 | (% class="box" %) |
7 | ((( | ||
8 | (% style="color:#000000" %)##/etc/init.d/ldcatalogd stop## | ||
9 | ))) | ||
10 | |||
![]() |
2.1 | 11 | |
12 | (% style="color:#000000" %)Danach stoppen Sie den ldserver mit folgendem Befehl | ||
13 | |||
![]() |
1.1 | 14 | (% class="box" %) |
15 | ((( | ||
16 | (% style="color:#000000" %)##ldserver stop## | ||
17 | ))) | ||
18 | |||
![]() |
2.1 | 19 | |
20 | (% style="color:#000000" %)Im Anschluß daran führen Sie die beiden folgenden Befehle aus | ||
21 | |||
![]() |
1.1 | 22 | (% class="box" %) |
23 | ((( | ||
24 | (% style="color:#000000" %)##ldwebfilter ~-~-expire-surflog 0## | ||
25 | ))) | ||
26 | |||
27 | (% class="box" %) | ||
28 | ((( | ||
![]() |
2.1 | 29 | (% style="color:#000000" %)ldwebfilter ~-~-update-surflog |
![]() |
1.1 | 30 | ))) |
31 | |||
![]() |
2.1 | 32 | |
33 | (% style="color:#000000" %)Nun lesen Sie mit folgendem Befehl das logodb secret aus, dies wird später benötigt | ||
34 | |||
![]() |
1.1 | 35 | (% class="box" %) |
36 | ((( | ||
![]() |
2.1 | 37 | (% style="color:#000000" %)cat /etc/logodb.secret |
![]() |
1.1 | 38 | ))) |
39 | |||
![]() |
2.1 | 40 | |
41 | (% style="color:#000000" %)Anschließend droppen Sie die logodb Datenbank | ||
42 | |||
![]() |
1.1 | 43 | (% class="box" %) |
44 | ((( | ||
45 | (% style="color:#000000" %)##mmysql drop database logodb;## | ||
46 | ))) | ||
47 | |||
![]() |
2.1 | 48 | |
![]() |
3.1 | 49 | (% style="color:#000000" %)Fühen Sie nun folgende Befehle aus.(%%) (% style="color:#e74c3c" %)logodb.secret(% style="color:#000000" %) ersetzen Sie mit dem Secret von weiter oben |
![]() |
2.1 | 50 | |
![]() |
1.1 | 51 | (% class="box" %) |
52 | ((( | ||
53 | (% style="color:#000000" %)##dpkg-reconfigure ld-mysql-logodb## | ||
54 | ))) | ||
55 | |||
56 | (% class="box" %) | ||
57 | ((( | ||
![]() |
2.1 | 58 | (% style="color:#000000" %)##reset_logodb_password {##(% style="color:#e74c3c" %)##logodb.secret##(% style="color:#000000" %)##}## |
![]() |
1.1 | 59 | ))) |
60 | |||
![]() |
2.1 | 61 | |
62 | (% style="color:#000000" %)Importieren Sie nun die Workstations | ||
63 | |||
![]() |
1.1 | 64 | (% class="box" %) |
65 | ((( | ||
66 | (% style="color:#000000" %)##import_workstations## | ||
67 | ))) | ||
68 | |||
![]() |
2.1 | 69 | |
70 | (% style="color:#000000" %)Danach starten Sie den ldserver neu | ||
71 | |||
![]() |
1.1 | 72 | (% class="box" %) |
73 | ((( | ||
74 | (% style="color:#000000" %)##ldserver start## | ||
75 | ))) | ||
76 | |||
![]() |
2.1 | 77 | |
![]() |
3.1 | 78 | (% style="color:#000000" %)Zum Schluß starten Sie die ldacatalog Datenbank wieder. |
![]() |
2.1 | 79 | |
![]() |
1.1 | 80 | (% class="box" %) |
81 | ((( | ||
82 | (% style="color:#000000" %)##/etc/init.d/ldcatalogd start## | ||
83 | ))) | ||
84 | |||
85 | |||
86 | (% style="color:#27ae60" %)Optional:(%%) | ||
87 | (% style="color:#000000" %)~-~-~-~-~-~-~-~-- | ||
![]() |
4.1 | 88 | Als optionalen Schritt können Sie vor dem Neuaufabu der LogoDB die Webfilter Listen und Kategorien sichern. |
89 | Um diese wieder einzulesen gehen sie folgendermaßen vor: | ||
![]() |
1.1 | 90 | |
![]() |
4.1 | 91 | |
92 | (% style="color:#000000" %)Einlesen der Blacklist | ||
93 | |||
![]() |
1.1 | 94 | (% class="box" %) |
95 | ((( | ||
96 | (% style="color:#000000" %)##while read line; do ldwebfilter -b "$line"; done < /root/webfilter_blacklist.list## | ||
97 | ))) | ||
98 | |||
![]() |
4.1 | 99 | |
100 | (% style="color:#000000" %)Einlesen der Whitelist | ||
101 | |||
![]() |
1.1 | 102 | (% class="box" %) |
103 | ((( | ||
104 | (% style="color:#000000" %)##while read line; do ldwebfilter -w "$line"; done < /root/webfilter_whitelist.list## | ||
105 | ))) | ||
106 | |||
![]() |
4.1 | 107 | |
108 | (% style="color:#000000" %)Einlesen der Blacklistkategorien | ||
109 | |||
![]() |
1.1 | 110 | (% class="box" %) |
111 | ((( | ||
112 | (% style="color:#000000" %)##while read line; do ldwebfilter -e "$line"; done < /root/webfilter_categories_B.list## | ||
113 | ))) | ||
114 | |||
![]() |
4.1 | 115 | |
116 | (% style="color:#000000" %)Einlesen der Whitelistkategorien | ||
117 | |||
![]() |
1.1 | 118 | (% class="box" %) |
119 | ((( | ||
120 | (% style="color:#000000" %)##while read line; do ldwebfilter -E "$line"; done < /root/webfilter_categories_W.list## | ||
121 | ))) | ||
122 | |||
![]() |
4.1 | 123 | |
124 | (% style="color:#000000" %)Nun können Sie sich alle Regeln und Kategorien anzeigen lassen | ||
125 | |||
![]() |
1.1 | 126 | (% class="box" %) |
127 | ((( | ||
128 | (% style="color:#000000" %)##ldwebfilter -l## | ||
129 | ))) | ||
130 | |||
131 | (% class="box" %) | ||
132 | ((( | ||
133 | (% style="color:#000000" %)##ldwebfilter -c## | ||
134 | ))) | ||
135 | |||
136 | (% class="box" %) | ||
137 | ((( | ||
138 | (% style="color:#000000" %)##ldwebfilter ~-~-find-surflog-entries user=admin## | ||
139 | ))) |