Ostatnio aktywny 9 months ago

Rewizja 8a06846382deb6d0e0719fec46190b6fe37b8d80

unix socket sniffing.md Surowy

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