guunergooner / trojan

trojan proxy

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

quick start

  • script menu
./run.sh -h
usage: ./run.sh [ -o build/push/run/remove ]

    -h : Help info
    -o : Run options
  • custom config fields
    "remote_addr": "example.com",  #remote trojan server address
    "password": [
        "password"  #remote trojan server password
    ],
    
    "cert": "/trojan/fullchain.cer", #remote trojan server certificate
  • start trojan client container
    $ cp -vf config.json.example config.json
    $ ./run.sh -o run
    $ 792a0ae43bf6d49a53ca44e757c280c2bec5bd0706e2c9b53bbeceaf6136700f
    $ docker ps
    CONTAINER ID        IMAGE                   COMMAND                  CREATED             STATUS              PORTS                    NAMES
    792a0ae43bf6        gooner/trojan:v1.16.0   "/trojan/trojan -c /…"   3 seconds ago       Up 1 second         0.0.0.0:2080->1080/tcp   trojan-client
  • access with trojan client
    # access socks5 proxy port
    $ telnet 127.0.0.1 2080
    Trying 127.0.0.1...
    Connected to localhost.
    Escape character is '^]'.

    Connection closed by foreign host.

    # access remote address
    curl --socks5-hostname localhost:2080 https://www.google.com
  • install chrome extensions SwitchyOmega Proxy

  • config auto switch profile

  • config socks5 proxy

    • Proxy servers

      • Step 1 Protocol: SOCKS5, Server: 127.0.0.1, Port 2080(just container listen port)
      • Step 2 Bypass List, e.g 127.0.0.1, localhost, www.baidu.com

      Socke5Proxy

  • chrome proxy access Google

About

trojan proxy

License:Apache License 2.0


Languages

Language:Shell 74.0%Language:Dockerfile 26.0%