Wget Over SOCKS5 Example
Download a file through a local Nextmini multi-hop path using proxychains and wget.
This example runs an external client, three Nextmini dataplane nodes, and an external server in one Docker network. The configured routes in examples/wget/controller-config.toml are [1, 2, 3, 4, 5] and [5, 4, 3, 2, 1]. The client script repeatedly fetches http://172.16.8.8:8080/file.txt through SOCKS5 proxy 172.16.8.5:8081.
From the repository root:
cd examples/wget
docker compose -f docker-compose.yaml build
docker compose -f docker-compose.yaml upIn another terminal, verify the client sees successful downloads:
cd examples/wget
docker compose -f docker-compose.yaml logs -f external_clientA healthy run shows Download completed. File content: Hello from Nextmini!.
You can also verify the server is serving the file and receiving requests:
docker compose -f docker-compose.yaml logs -f external_serverLook for GET /file.txt HTTP/1.1" 200.
To verify the SOCKS proxy settings baked into the client image:
docker exec external_client cat /etc/proxychains.confStop the example:
docker compose -f docker-compose.yaml down