This project provides a production-ready SOCKS5 proxy server with support for authentication, access control, and UDP forwarding. Built with Go and optimized for container deployment.
- SOCKS5
CONNECTcommand - SOCKS5
UDP ASSOCIATEcommand - IPv4, IPv6, and FQDN support
- Username/Password Authentication (RFC 1929)
- IP Whitelisting (ACL)
- Environment-based configuration
- Docker & Docker Compose ready
This Docker image allows you to quickly run a SOCKS5 Proxy server.
Run the following command to start the socks5 container in detached mode. It will always restart automatically if it stops:
docker run -d \
--name socks5 \
--restart=always \
--dns=1.1.1.1 \
--dns=8.8.8.8 \
-p 1080:1080 \
-e SOCKS5_USER=imzami \
-e SOCKS5_PASSWORD=11221099 \
imzami/socks5Username: imzami Password: 11221099 Please customise your own.
- Docker must be installed on the host machine.
To stop the container:
docker stop socks5To restart the container:
docker restart socks5To remove the container:
docker rm socks5