- Published on
Setup SOCKS5 Proxy Server
157 words1 min read
- Authors
Pre-requisites
- An Ubuntu server running Docker/docker-comose.
Set-up
- Create a
docker-compose.yaml
file, or edit your existing one - Add the following
---
version: '2.1'
services:
socks5:
image: serjs/go-socks5-proxy
container_name: socks5
environment:
- PROXY_USER=<your-username> # Comment out for no user/password
- PROXY_PASSWORD=<your-password> # Comment out for no userpassword
ports:
- 1080:1080
- Run
docker-compose up -d
- From a different machine run
curl --socks5 <docker host ip>:1080 http://icanhazip.com
and make sure it has the same IP of your server.
References
- go-socks5-proxy docker image.