doc:appunti:linux:sa:ipsec_strongswan_debian_debug
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| doc:appunti:linux:sa:ipsec_strongswan_debian_debug [2026/11/23 12:44] – niccolo | doc:appunti:linux:sa:ipsec_strongswan_debian_debug [2026/11/23 15:58] (current) – niccolo | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Debug IPSEC su Debian ====== | ====== Debug IPSEC su Debian ====== | ||
| - | Questa la configurazione | + | La configurazione in esame è su una **Debian 9.13** con i seguenti pacchetti: |
| + | |||
| + | * **strongswan** 5.5.1 | ||
| + | * **strongswan-starter** 5.5.1 | ||
| + | * **strongswan-charon** 5.5.1 | ||
| + | |||
| + | :!: Il servizio **systemd** che gestisce la connessione dipende dalla versione Debian: | ||
| + | |||
| + | * **strongswan.service** per **Debian 9** e **Debian 10**. | ||
| + | * **strongswan-starter.service** per **Debian 11** e successive. | ||
| + | |||
| + | Questa la configurazione | ||
| < | < | ||
| Line 24: | Line 35: | ||
| closeaction=restart | closeaction=restart | ||
| </ | </ | ||
| + | |||
| + | Il comando **ipsec statusall** mostra: | ||
| + | |||
| + | < | ||
| + | Connections: | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | Security Associations (1 up, 0 connecting): | ||
| + | | ||
| + | | ||
| + | | ||
| + | </ | ||
| + | |||
| + | mostra che la **CHILD SA** non è stata installata. Altrimenti nella sezione //Security Associations// | ||
| + | |||
| + | < | ||
| + | | ||
| + | </ | ||
| + | |||
| + | Per abilitare il debug di Charon si configura **/ | ||
| + | |||
| + | < | ||
| + | config setup | ||
| + | charondebug=" | ||
| + | </ | ||
| + | |||
| + | <code bash> | ||
| + | # Per Debian 9 e Debian 10 il servizio è strongswan.service. | ||
| + | # Per Debian 11 e successive il servizio è strongswan-starter.service. | ||
| + | systemctl restart strongswan.service | ||
| + | </ | ||
| + | |||
| + | In **syslog** troviamo quindi la spiegazione: | ||
| < | < | ||
| Line 36: | Line 82: | ||
| charon: 12[IKE] traffic selectors 192.168.0.0/ | charon: 12[IKE] traffic selectors 192.168.0.0/ | ||
| charon: 13[ENC] parsed CREATE_CHILD_SA request 2 [ SA No KE TSi TSr ] | charon: 13[ENC] parsed CREATE_CHILD_SA request 2 [ SA No KE TSi TSr ] | ||
| - | charon: 13[CFG] proposing traffic selectors for us: | ||
| - | charon: 13[CFG] proposing traffic selectors for other: | ||
| - | charon: 13[IKE] traffic selectors 192.168.0.0/ | ||
| - | charon: 14[ENC] parsed CREATE_CHILD_SA request 3 [ SA No KE TSi TSr ] | ||
| - | charon: 14[CFG] proposing traffic selectors for us: | ||
| - | charon: 14[CFG] proposing traffic selectors for other: | ||
| - | charon: 14[IKE] traffic selectors 192.168.0.0/ | ||
| </ | </ | ||
| + | |||
| + | Cioè la nostra proposta **192.168.0.0/ | ||
| + | |||
doc/appunti/linux/sa/ipsec_strongswan_debian_debug.1795434282.txt.gz · Last modified: by niccolo
