Última actividad 9 months ago

Revisión f54525ed260a5d0577198223b529a18d4e07018c

unix socket sniffing.md Sin formato

move the socket

mv /var/run/docker.sock /var/run/docker.sock.original

redirect all socket communications to a tcp listener in port 1234

socat TCP-LISTEN:1234,reuseaddr,fork UNIX-CONNECT:/var/run/docker.sock.original

create a new proxy socket to be use by the application

socat UNIX-LISTEN:/var/run/docker.sock,fork TCP-CONNECT:127.0.0.1:1234

sniff the traffic

tcpdump -i lo -netvv port 1234