GithubHelp home page GithubHelp logo

shadowtun's Introduction

Description

  • Base on shadowsocks/shadowsocks-libev
  • Integrated KCPTUN and shadowsocks-libev
  • shadowtun github

ENV list

server

common

  • SERVER_PORT

    以服务端启动时,覆盖8388作为shadowsocks监听的端口

  • KCPTUN_ARG

    以任意模式启动时,为kcptun指定参数,默认值

    "--mode fast3 --nocomp --dscp 46 --sockbuf 16777217 --sndwnd 4096 --rcvwnd 4096 "

shadowsocks

  • SS_SERVER_BIND

    shadowsocks服务端监听的ip,默认值"0.0.0.0"

  • SS_SERVER_PORT

    shadowsocks服务端监听的port,默认值"8388"

  • PASSWORD

    shadowsocks服务端设定的预共享密钥

  • METHOD

    密钥的加密方式,默认值"aes-256-gcm"

  • TIMEOUT

    超时时间,默认值"300"

  • DNS_ADDRS

    远程dns地址,默认值"8.8.8.8,8.8.4.4"

kcptun

  • KCPTUN_SERVER_BIND

    kcptun服务端监听的ip,默认值"0.0.0.0"

  • KCPTUN_SERVER_PORT

    kcptun服务端监听的port,默认值"4000"

  • KCPTUN_TARGETSVC_ADDR

    目标服务IP,默认值"127.0.0.1"

  • KCPTUN_TARGETSVC_PORT

    目标服务端口,默认值"${SS_SERVER_PORT}"

client

common

  • SERVER_ADDR

    以客户端启动时,指定服务端的ip

  • SERVER_PORT

    以客户端启动时,指定服务端的port

  • KCPTUN_ARG

    以任意模式启动时,为kcptun指定参数,默认值"--mode fast3 --nocomp --dscp 46 --sockbuf 16777217 --sndwnd 4096 --rcvwnd 4096 "

shadowsocks

  • SS_SERVER_ADDR

    shadowsocks服务端ip,由SERVER_PORT提供

  • SS_LOCAL_BIND

    shadowsocks客户端监听的ip,默认值"0.0.0.0"

  • SS_LOCAL_PORT

    shadowsocks客户端提供代理服务的端口,默认值"1080"

  • PASSWORD

    shadowsocks服务端设定的预共享密钥

  • METHOD

    密钥的加密方式,默认值"aes-256-gcm"

  • TIMEOUT

    超时时间,默认值"300"

  • DNS_ADDRS

    远程dns地址,默认值"8.8.8.8,8.8.4.4"

kcptun

  • KCPTUN_SERVER_ADDR

    kcptun服务端ip,由SERVER_PORT提供

  • KCPTUN_LOCAL_BIND

    kcptun客户端监听的ip,默认值"0.0.0.0"

  • KCPTUN_LOCAL_PORT

    kcptun客户端监听的port,默认值"4000"

privoxy

  • PRIVOXY_LOCAL_PORT

    privoxy客户端提供代理服务的端口,默认值"2080"

run container

server

  • 暴露shadowsocks的服务端口和kcptun的服务端口
docker run -d \
-e PASSWORD=<YOUR PASSWORD> \
-p 18388:8388/tcp \
-p 18388:8388/udp \
-p 14000:4000/udp \
ahappysu/shadowtun server

client

1080端口是socks5代理端口

2080端口是http代理端口

  • 直接连接shadowsocks的服务端口
docker run -d \
-e PASSWORD=<YOUR PASSWORD> \
-e SERVER_ADDR=<SERVER IP>
-e SERVER_PORT=18388
-p 1080:1080/tcp \
-p 2080:2080/tcp \
ahappysu/shadowtun client ss
  • 连接kcptun的服务端口
docker run -d \
-e PASSWORD=<YOUR PASSWORD> \
-e SERVER_ADDR=<SERVER IP>
-e SERVER_PORT=14000
-p 1080:1080/tcp \
-p 2080:2080/tcp \
ahappysu/shadowtun client kcptun

Quick link

shadowtun's People

Contributors

czlun avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.