|
|
|
|
|
by onedognight
1558 days ago
|
|
One way is to enable a global `LD_PRELOAD=libtsocks.so` (transparent socks) environment variable where you provide an optionally suid (to allow suid binaries to use it if you want) library that overrides `connect`, etc. and forwards them to your socks proxy. Make sure you get ipv4 and ipv6 support if you care. This is not bullet proof by any means. Any application that doesn't using the C library (e.g. go) will not proxy, but most things will. |
|
Combined with ssh's `-D` option, it becomes a powerful ad-hoc VPN tool.