~/blog/setup-socks5-proxy-server
Published on

Setup SOCKS5 Proxy Server

157 words1 min read
Authors
  • avatar

Pre-requisites

  • An Ubuntu server running Docker/docker-comose.

Set-up

  1. Create a docker-compose.yaml file, or edit your existing one
  2. 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
  1. Run docker-compose up -d
  2. 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