objectif
Tester un service derrière un proxy sans support natif de l’appli.
code minimal
# /etc/proxychains.conf => socks5 127.0.0.1 1080
proxychains4 curl https://data.pm/
utilisation
# plusieurs proxys en chaîne
proxychains4 -f ./proxychains.conf git clone https://github.com/org/repo.git
variante(s) utile(s)
# en variable
ALL_PROXY=socks5h://127.0.0.1:1080 git ls-remote https://github.com/
notes
- injection LD_PRELOAD; peut échouer selon binaire.
- pour HTTP(S) natif, préférez variables *_proxy.