Sign inSign up

shafish/trojan

By shafish

•Updated almost 3 years ago

trojan client with socket and http

Image
0

74

shafish/trojan repository overview

描述:

  • trojan的docker客户端! 除了默认的websocket代理外(端口为1080),还使用privoxy提供了http代理(端口为8118)。用于同一台机器上启用多个代理

版本:

  • trojan:1.16

使用:

  • docker push shafish/trojan:1.0
  • docker run --name trojan -p 1088:1080 -p 1089:8118 -e REMOTE_ADDR="your ssl domain" -e REMOTE_PORT=111 -e PASSWORD="passwd" -d shafish/trojan:1.0
  • docker-compose.yml
version: '3.3'
services:
    trojan:
        container_name: trojan
        restart: unless-stopped
        environment:
            - REMOTE_ADDR=domain
            - REMOTE_PORT=111
            - PASSWORD=passwd
        ports:
            - '1088:1080'
            - '1089:8118'
        image: shafish/trojan:1.0

构建:

git clone https://github.com/shafishcn/trojan.git
cd trojan
docker build -t shafish/trojan:1.0 .

Tag summary

Content type

Image

Digest

sha256:dfaaf9d23…

Size

9.1 MB

Last updated

almost 3 years ago

docker pull shafish/trojan:1.0