Per poter visualizzare il traffico TLS in SNGREP su Nethvoice su NS8:
Va decommentata questa riga: https://github.com/nethesis/ns8-nethvoice-proxy/blob/1768557a076b4230a70044a4e15854cd5691bf9e/modules/kamailio/config/template.kamailio-local.cfg#L50
poi devi fare un commit delle modifiche.
[root@rl1 ~]# runagent -m nethvoice-proxy1 podman exec -it kamailio bash
2. modifichi il file /etc/kamailio/template.kamailio-local.cfg (devi togliere un #)
root@rl1:/# vim /etc/kamailio/template.kamailio-local.cfg
#!define WITH_SIPTRACE
root@rl1:/# exit
[root@rl1 ~]# runagent -m nethvoice-proxy1 podman images REPOSITORY TAG IMAGE ID CREATED SIZE ghcr.io/nethesis/nethvoice-proxy-kamailio 1.0.0 a2ace666e9cf 7 days ago 733 MB ghcr.io/nethesis/nethvoice-proxy-rtpengine 1.0.0 64b230723b6a 8 days ago 991 MB ghcr.io/nethesis/nethvoice-proxy-redis 1.0.0 6cd0b6fe9c54 8 days ago 112 MB ghcr.io/nethesis/nethvoice-proxy-postgres 1.0.0 ab55f621a589 8 days ago 430 MB
3. Fare il commit della nuova versione, con lo stesso nome della precedente (nell'esempio sopra ha la stable quindi sarà 1.0.0)
[root@rl1 ~]# runagent -m nethvoice-proxy1 podman commit kamailio ghcr.io/nethesis/nethvoice-proxy-kamailio:1.0.0 WARN[0000] archive: skipping "/home/nethvoice-proxy12/.local/share/containers/storage/overlay/307316a89a1cdfcbf65a5eee5583ebfc670c87e072e3a9c309345468c14df10e/diff/run/kamailio/kamailio_ctl" since it is a socket Getting image source signatures Copying blob 3ec3ded77c0c skipped: already exists Copying blob ef61b41428c8 skipped: already exists Copying blob ebebdf4e8f1e skipped: already exists Copying blob 65f12c53e2b9 skipped: already exists Copying blob e9cd4e805f3f done | Copying config 26c6f70a2c done | Writing manifest to image destination 26c6f70a2c465c6e4e41948cb2cc2c1ca33cfe9c89073b602fb0d57f85efbc52
4. Riavviare il servizio
runagent -m nethvoice-proxy1 systemctl --user restart kamailio
A questo punto scrivere in questo file /root/.sngrephep2rc tramite `vim`
Per lanciare SNGREP usare:
Nota bene E' possibile lanciare sngrep con questa sintassi solo 1 persona alla volta, NON è possibile utilizzarlo contemporaneamente ed aprire più sessioni.