Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| computer:server:netcup [2024/01/17 13:37] – removed - external edit (Unknown date) 127.0.0.1 | computer:server:netcup [2024/03/08 08:49] (current) – [dkim] spring | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== NetCup-Server ====== | ||
| + | Dieser Server ist der Ersatz für den [[stratoserver|Strato-Server]] | ||
| + | |||
| + | * IP: '' | ||
| + | * IPv6: '' | ||
| + | * MAC: '' | ||
| + | |||
| + | |||
| + | ====== Vorarbeiten ====== | ||
| + | |||
| + | ===== Dienstprogramme hinzufügen ===== | ||
| + | apt install \ | ||
| + | vim \ | ||
| + | apache2-utils \ | ||
| + | mc \ | ||
| + | rcs \ | ||
| + | rsync \ | ||
| + | swaks \ | ||
| + | ufw | ||
| + | ===== Benutzer springm hinzufügen ===== | ||
| + | adduser springm | ||
| + | |||
| + | ===== ssh absichern für root und springm ===== | ||
| + | ssh-copy-id -i .ssh/ | ||
| + | |||
| + | Open the SSH configuration file / | ||
| + | / | ||
| + | |||
| + | PasswordAuthentication no | ||
| + | ChallengeResponseAuthentication no | ||
| + | UsePAM no | ||
| + | |||
| + | Once you are done save the file and restart the SSH service. | ||
| + | |||
| + | sudo systemctl restart ssh | ||
| + | |||
| + | ===== ufw ===== | ||
| + | ufw allow proto tcp from any to any port 25, | ||
| + | ufw enable | ||
| + | Prüfen mit '' | ||
| + | PORT | ||
| + | 22/ | ||
| + | 25/ | ||
| + | 80/ | ||
| + | 110/ | ||
| + | 143/ | ||
| + | 443/ | ||
| + | 465/ | ||
| + | 587/ | ||
| + | 993/ | ||
| + | 995/ | ||
| + | 8081/tcp open | ||
| + | |||
| + | | ||
| + | | ||
| + | |||
| + | ===== docker installieren ===== | ||
| + | Neues Repository einrichten, utilities und docker installieren | ||
| + | |||
| + | sudo apt-get install \ | ||
| + | | ||
| + | curl \ | ||
| + | gnupg \ | ||
| + | | ||
| + | sudo mkdir -p / | ||
| + | curl -fsSL https:// | ||
| + | sudo apt-get update | ||
| + | sudo apt-get install docker-ce docker-ce-cli containerd.io docker-compose-plugin | ||
| + | | ||
| + | ====== Services ====== | ||
| + | ===== traefik ===== | ||
| + | Basierend auf https:// | ||
| + | |||
| + | Es wird ein .env-File benutzt. | ||
| + | |||
| + | Entrypoints umbenannt in '' | ||
| + | |||
| + | ===== crowdsec ===== | ||
| + | |||
| + | Mit Docker-Bouncer installiert | ||
| + | |||
| + | ===== nextcloud ===== | ||
| + | |||
| + | ===== dokuwiki ===== | ||
| + | Von https:// | ||
| + | Die alte Installation mit dem image von linuxserver.io ist beim Watchtower-Update kaputtgegangen. | ||
| + | |||
| + | dokuwiki-Updates über das Updater-Plugin in dokuwiki selbst - https:// | ||
| + | |||
| + | ==== Maximale Breite für Text in der Bildschirmdarstellung ==== | ||
| + | |||
| + | <file css conf/ | ||
| + | .dokuwiki { max-width: | ||
| + | </ | ||
| + | ===== watchtower ===== | ||
| + | email notification funktioniert noch nicht | ||
| + | ===== mailserver ===== | ||
| + | Installation folgt https:// | ||
| + | |||
| + | ==== dkim ==== | ||
| + | dkim keys liegen in '' | ||
| + | Mit folgendem Perl-Einzeiler in die richtige Form für z.B. cloudflare überführen: | ||
| + | cat mail.txt | perl -ne ' | ||
| + | |||
| + | ==== sieve ==== | ||
| + | Port 4190 ist auf dem Server nicht erreichbar (traefik?), deshalb müssen die Sieve-Filter mit dem Emacs direkt bearbeitet werden: ''/ | ||
| + | |||
| + | === Sieve-Befehl ausführen === | ||
| + | docker exec -it mailserver / | ||
| + | -C / | ||
| + | |||
| + | === Gesendete Mails entsprechend Filterregeln in Ordner transportieren === | ||
| + | Python-Skript zum Umschreiben der Filterregeln und zur Ausführung in das Verzeichnis '' | ||
| + | <file bash> | ||
| + | */10 * * | ||
| + | </ | ||
| + | |||
| + | ===== Sicherheitsprüfung webserver ===== | ||
| + | perl ~/ | ||
| + | |||
| + | ====== IP/ | ||
| + | * https:// | ||
| + | |||
| + | ===== Ideen / Links ===== | ||
| + | |||
| + | |||