Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
faecher:informatik:pt2024:freigabe_ins_netz:start [18.07.2024 21:27] – angelegt sbel | faecher:informatik:pt2024:freigabe_ins_netz:start [19.07.2024 11:19] (aktuell) – [Zertifikat erhalten mit mod_md] sbel | ||
---|---|---|---|
Zeile 6: | Zeile 6: | ||
* Problem: Die IP-Adresse an einem Hausanschluss ändert sich gelegentlich. | * Problem: Die IP-Adresse an einem Hausanschluss ändert sich gelegentlich. | ||
* Lösung: Ein " | * Lösung: Ein " | ||
+ | |||
+ | {{ : | ||
+ | ==== DynDNS mit dynv6.com ==== | ||
+ | |||
+ | * https:// | ||
+ | * Bestätigungsmail öffnen, Bestätigungslink anklicken | ||
+ | * Melde dich bei dynv6.com an | ||
+ | * Auf dem Nextcloud Server das Paket ddclient installieren: | ||
+ | * Editiere die Datei ''/ | ||
+ | |||
+ | < | ||
+ | ssl=yes | ||
+ | protocol=dyndns2 | ||
+ | use=web, web=ipify-ipv4 | ||
+ | server=dynv6.com | ||
+ | login=none | ||
+ | password=' | ||
+ | DEINHOST.DEINE.DOMAIN | ||
+ | </ | ||
+ | |||
+ | Anschließend kannst du die Funktion auf der Kommandozeile testen: | ||
+ | |||
+ | '' | ||
+ | |||
+ | und | ||
+ | |||
+ | '' | ||
+ | |||
+ | Wenn das klappt, kann man den ddclient-Daemon neu starten: '' | ||
+ | |||
+ | ==== Portweiterleitung am Router ==== | ||
+ | |||
+ | * Demo an den PT mit der Fritz Box der Schule. | ||
+ | * Port 80 und 443 sollten an die interne IP-Adresse der Cloud weitergeleitet werden. | ||
+ | |||
+ | |||
+ | ==== Zertifikat erhalten mit mod_md ==== | ||
+ | * Mod-MD Paket installieren: | ||
+ | * SSL und Mod--MD bei apache anschalten: '' | ||
+ | * Nun muss man die Datei ''/ | ||
+ | < | ||
+ | |||
+ | ServerName meinecloud.dns.army | ||
+ | |||
+ | MDomain meinecloud.dns.army | ||
+ | MDContactEmail certifica@ua25.de | ||
+ | MDCertificateAgreement accepted | ||
+ | MDPrivateKeys RSA 4096 | ||
+ | |||
+ | |||
+ | < | ||
+ | # The ServerName directive sets the request scheme, hostname and port that | ||
+ | # the server uses to identify itself. This is used when creating | ||
+ | # redirection URLs. In the context of virtual hosts, the ServerName | ||
+ | # specifies what hostname must appear in the request' | ||
+ | # match this virtual host. For the default virtual host (this file) this | ||
+ | # value is not decisive as it is used as a last resort host regardless. | ||
+ | # However, you must set it for any further virtual host explicitly. | ||
+ | # | ||
+ | |||
+ | ServerAdmin webmaster@localhost | ||
+ | DocumentRoot / | ||
+ | |||
+ | < | ||
+ | AllowOverride all | ||
+ | Require all granted | ||
+ | </ | ||
+ | |||
+ | # Available loglevels: trace8, ..., trace1, debug, info, notice, warn, | ||
+ | # error, crit, alert, emerg. | ||
+ | # It is also possible to configure the loglevel for particular | ||
+ | # modules, e.g. | ||
+ | #LogLevel info ssl:warn | ||
+ | |||
+ | ErrorLog ${APACHE_LOG_DIR}/ | ||
+ | CustomLog ${APACHE_LOG_DIR}/ | ||
+ | |||
+ | # For most configuration files from conf-available/, | ||
+ | # enabled or disabled at a global level, it is possible to | ||
+ | # include a line for only one particular virtual host. For example the | ||
+ | # following line enables the CGI configuration for this host only | ||
+ | # after it has been globally disabled with " | ||
+ | #Include conf-available/ | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | # The ServerName directive sets the request scheme, hostname and port that | ||
+ | # the server uses to identify itself. This is used when creating | ||
+ | # redirection URLs. In the context of virtual hosts, the ServerName | ||
+ | # specifies what hostname must appear in the request' | ||
+ | # match this virtual host. For the default virtual host (this file) this | ||
+ | # value is not decisive as it is used as a last resort host regardless. | ||
+ | # However, you must set it for any further virtual host explicitly. | ||
+ | # | ||
+ | |||
+ | ServerAdmin webmaster@localhost | ||
+ | DocumentRoot / | ||
+ | |||
+ | < | ||
+ | AllowOverride all | ||
+ | Require all granted | ||
+ | </ | ||
+ | |||
+ | # Available loglevels: trace8, ..., trace1, debug, info, notice, warn, | ||
+ | # error, crit, alert, emerg. | ||
+ | # It is also possible to configure the loglevel for particular | ||
+ | # modules, e.g. | ||
+ | #LogLevel info ssl:warn | ||
+ | |||
+ | ErrorLog ${APACHE_LOG_DIR}/ | ||
+ | CustomLog ${APACHE_LOG_DIR}/ | ||
+ | |||
+ | # For most configuration files from conf-available/, | ||
+ | # enabled or disabled at a global level, it is possible to | ||
+ | # include a line for only one particular virtual host. For example the | ||
+ | # following line enables the CGI configuration for this host only | ||
+ | # after it has been globally disabled with " | ||
+ | #Include conf-available/ | ||
+ | SSLEngine on | ||
+ | </ | ||
+ | </ |