Sign inSign up

adierebel/microsocks-alpine

By adierebel

Updated 2 months ago

microsocks proxy server in alpine linux

Image
Networking
0

264

adierebel/microsocks-alpine repository overview

Microsocks Alpine

Docker Pulls

Usage

Start the container

To run the microsocks proxy server in Docker, just write the following content to docker-compose.yml and run docker-compose up -d.

services:
  microsocks:
    image: adierebel/microsocks-alpine
    container_name: microsocks
    restart: always
    device_cgroup_rules:
      - 'c 10:200 rwm'
    ports:
      - "1080:1080" # [host]:[container]
    cap_add:
      - MKNOD
      - AUDIT_WRITE
      - NET_ADMIN
    sysctls:
      - net.ipv6.conf.all.disable_ipv6=1
      - net.ipv6.conf.default.disable_ipv6=1
      - net.ipv4.conf.all.src_valid_mark=1
    environment:
      - PROXY_USERNAME=user   # Set both username and password to enable SOCKS5 auth, set empty to disable
      - PROXY_PASSWORD=pass

Try it out to see if it works:

curl -x socks5h://user:[email protected]:1080 http://ip-api.com/

Tag summary

Content type

Image

Digest

sha256:9485d1e3e

Size

5.3 MB

Last updated

2 months ago

docker pull adierebel/microsocks-alpine