doc:appunti:linux:sa:debian_upgrade_11_12
                Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| doc:appunti:linux:sa:debian_upgrade_11_12 [2024/03/25 16:31] – [Cacti da 1.2.16 a 1.2.24] niccolo | doc:appunti:linux:sa:debian_upgrade_11_12 [2025/07/07 15:42] (current) – [Accesso SSH a vecchie installazioni] niccolo | ||
|---|---|---|---|
| Line 125: | Line 125: | ||
| ===== OpenVPN BF-CBC not supported ===== | ===== OpenVPN BF-CBC not supported ===== | ||
| - | L' | + | ==== Configuration with --secret PSK ==== | 
| - | L' | + | In a configuration with PSK (**%%--secret%%** option) the **%%--cipher%%** parameter selects the cipher to use on the data channel. The default setting would be **BF-CBC**, | 
| + | |||
| + | < | ||
| + | # Do not use the default BF-CBC cipher, it was removed because of its 64-bit block size. | ||
| + | cipher AES-256-CBC | ||
| + | # Get the PSK from the external file. | ||
| + | secret my-openvpn-secret.key | ||
| + | </ | ||
| + | |||
| + | Of course, the other end of the VPN must support the same encryption. **WARNING**: | ||
| + | |||
| + | ==== Configuration with TLS ==== | ||
| + | |||
| + | With OpenVPN 2.6.x the **%%--cipher%%** option should not be used any longer in TLS mode (e.g. when using EasyRSA). | ||
| + | |||
| + | With OpenVPN 2.4.x or lower: The values declared into the %%--cipher%% option were appended to **%%--data-ciphers%%** for compatiblity, | ||
| < | < | ||
| - | # The --cipher option | + | # The --cipher option | 
| - | # Notice that AES-256-GCM is not supported | + | |
| #cipher AES-256-CBC | #cipher AES-256-CBC | ||
| - | # | + | # Use --data-ciphers | 
| - | # Newer connections using TLS uses the --data-ciphers | + | data-ciphers AES-256-GCM: | 
| - | data-ciphers AES-256-GCM: | + | # Use --data-ciphers-fallback for peers that are old or have negotiation disabled, | 
| + | # e.g. peers running OpenVPN 2.3 or older, or some embedded devices. | ||
| + | data-ciphers-fallback AES-256-CBC | ||
| </ | </ | ||
| + | |||
| ===== PostgreSQL da 13 a 15 ===== | ===== PostgreSQL da 13 a 15 ===== | ||
| Line 189: | Line 206: | ||
| === Conversione database Cacti a Unicode === | === Conversione database Cacti a Unicode === | ||
| - | Collegarsi al database Cacti e eseguire: | + | Collegarsi al database Cacti e verificare lo stato corrente: | 
| + | |||
| + | <code sql> | ||
| + | CONNECT cacti | ||
| + | SELECT @@character_set_database, | ||
| + | +--------------------------+----------------------+ | ||
| + | | @@character_set_database | @@collation_database | | ||
| + | +--------------------------+----------------------+ | ||
| + | | latin1 | ||
| + | +--------------------------+----------------------+ | ||
| + | </ | ||
| + | |||
| + | Per fare la modifica | ||
| <code sql> | <code sql> | ||
| Line 232: | Line 261: | ||
| Le tabelle che usan l' | Le tabelle che usan l' | ||
| + | |||
| + | === Altre impostazioni MariaDB === | ||
| + | |||
| + | Altre impostazioni suggerite dal Cacti Server v1.2.24 Installation Wizard possono essere inserite in un file **/ | ||
| + | |||
| + | < | ||
| + | max_heap_table_size = 256M | ||
| + | tmp_table_size = 256M | ||
| + | innodb_doublewrite = OFF | ||
| + | innodb_buffer_pool_size = 4G | ||
| + | </ | ||
| + | |||
| + | Verificare che le impostazioni siano coerenti con il proprio server, in particolar modo '' | ||
| === Riattivazione icone azione grafico === | === Riattivazione icone azione grafico === | ||
| Nella visualizzazione //Graphs// => //Preview// sono scomparse le icone a fianco dei grafici. Per tornare a visualizzarle si deve procedere da //Console// => // | Nella visualizzazione //Graphs// => //Preview// sono scomparse le icone a fianco dei grafici. Per tornare a visualizzarle si deve procedere da //Console// => // | ||
| + | |||
| + | ===== Icingaweb da 2.12.3 a 2.13.6 ===== | ||
| + | |||
| + | Può capitare che in passato siano stati fatti degli aggiornamenti di Icingaweb, ma non siano state applicate le patch SQL per aggiornare lo schema del database. Ad esempio la tabella **icingaweb_rememberme** deve essere creata quando si aggiorna alla versione 2.9.0. Se la tabella manca si può incappare nell' | ||
| + | |||
| + | < | ||
| + | SQLSTATE[42P01]: | ||
| + | RIGA 1: DELETE FROM icingaweb_rememberme WHERE random_iv = $1 | ||
| + | </ | ||
| + | |||
| + | Per risolvere il problema è necessario collegarsi al database icingaweb e applicare le patch che si trovano in **/ | ||
| + | |||
| + | |||
| + | ==== pnp4nagios ==== | ||
| + | |||
| + | Se su Debian 11 era installato il plugin **pnp4nagios** versione **0.6.26** è necessario fare l' | ||
| + | |||
| + | < | ||
| + | Fatal error: Uncaught Error: Undefined constant " | ||
| + | in / | ||
| + | </ | ||
| + | |||
| + | infatti la costante '' | ||
| + | |||
| + | Si può installare **pnp4nagios-0.6.27-5** che risolve questa incompatibilità. Download da [[https:// | ||
| + | |||
| + | < | ||
| + | unzip pnp4nagios-0.6.27-5.zip | ||
| + | cd pnp4nagios-0.6.27-5 | ||
| + | ./configure | ||
| + | make all | ||
| + | make install | ||
| + | mkdir              / | ||
| + | chow www-data: | ||
| + | chmod 755          / | ||
| + | </ | ||
| + | |||
| + | **NOTICE**: Per il funzionamento di PNP4Nagios è necessario aver installato il plugin **icingaweb2-module-pnp**, | ||
| + | |||
| ===== Python e pip3 install ===== | ===== Python e pip3 install ===== | ||
| Line 297: | Line 378: | ||
| </ | </ | ||
| - | La soluzione è forzare il **KexAlgorithms** e/o il **HostKeyAlgorithms**: | + | o anche: | 
| < | < | ||
| - | ssh -oKexAlgorithms=+diffie-hellman-group1-sha1 -oHostKeyAlgorithms=+ssh-dss root@83.149.110.120 | + | debug1: Next authentication method: publickey | 
| + | debug1: Offering public key: / | ||
| + | debug1: send_pubkey_test: | ||
| </ | </ | ||
| + | |||
| + | La soluzione è forzare uno o più dei seguenti parametri: | ||
| + | |||
| + | * **KexAlgorithms** | ||
| + | * **HostKeyAlgorithms** | ||
| + | * **PubkeyAcceptedKeyTypes** | ||
| + | |||
| + | < | ||
| + | ssh \ | ||
| + | -o KexAlgorithms=+diffie-hellman-group1-sha1 \ | ||
| + | -o HostKeyAlgorithms=+ssh-dss, | ||
| + | -o PubkeyAcceptedKeyTypes=+ssh-rsa \ | ||
| + | root@83.149.110.120 | ||
| + | </ | ||
| + | |||
doc/appunti/linux/sa/debian_upgrade_11_12.1711380661.txt.gz · Last modified:  by niccolo
                
                