Thanks chjj. Yeah it's always LD_PRELOAD. There is wireproxy [1] though that might do what you want?
1. https://github.com/whyvl/wireproxy
Correct me if I’m wrong, but if you use LD_PRELOAD, presumably it will not work for applications that circumvent libc, such as Go binaries (at least those with CGo disabled)?
Correct me if I’m wrong, but if you use LD_PRELOAD, presumably it will not work for applications that circumvent libc, such as Go binaries (at least those with CGo disabled)?