sudo apt install proxychains
[ProxyList]
# add proxy here ...
# meanwile
# defaults set to "tor"
# socks4 127.0.0.1 9050
socks5 127.0.0.1 9999
We run ssh tunnel to obraint socks5 proxy
ssh -D 0.0.0.0:9999 bsd -N
So we have a socks proxy. We can pass Internet traffics through this tunnel.
proxychains lynx https://jadi.net
Proxychaint not recognize bash aliases a way to use alias behind proxy is to run all bash shell with proxychains
proxychains bash
export http_proxy=socks5://127.0.0.1:9999 https_proxy=socks5://127.0.0.1:9999
podman pull hello-world
Above command will proxy podman connection and bypass docker.io restrictions. Or set it on config file
$ cat ~/.config/containers/containers.conf
[engine]
env = [ "http_proxy=socks5://127.0.0.1:9999", "https_proxy=socks5://127.0.0.1:9999"]
Use our proxy to download from restricted or filtered websites
place or download links inside a text file i.e list then run aria2c behind proxychains like this
$ proxychains4 aria2c -s16 -x16 -i list
sudo simpleproxy -L 0.0.0.0:9999 -R 127.0.0.1:5173