All Projects → dmirubtsov → ss-v2ray-docker

dmirubtsov / ss-v2ray-docker

Licence: other
Deprecated: please use https://hub.docker.com/r/mazy/ss-xray

Programming Languages

Dockerfile
14818 projects

Projects that are alternatives of or similar to ss-v2ray-docker

Proxysu
Xray,V2ray,Trojan,NaiveProxy, Trojan-Go, ShadowsocksR(SSR),Shadowsocks-libev及相关插件,MTProto+TLS 一键安装工具,windows下用(一键科学上网)
Stars: ✭ 3,309 (+11717.86%)
Mutual labels:  shadowsocks, v2ray, shadowsocks-libev
Lightyearvpn
翻墙,科学上网,梯子,VPN下载,加速器,外网,代理,路由,防火墙,GFW。支持UDP,游戏必备。免费VPN试用,全球Shadowsocks节点。免费SS节点,SSR节点和V2ray节点。
Stars: ✭ 282 (+907.14%)
Mutual labels:  shadowsocks, v2ray, shadowsocks-libev
Breaking Gfw Book
整理所有的翻墙方法,持续更新....欢迎PR
Stars: ✭ 105 (+275%)
Mutual labels:  shadowsocks, v2ray, shadowsocks-libev
SubCrawler
节点爬取,筛选, google ping,支持Clash,base64订阅解析,生成可用的ss, ssr, v2ray, trojan,vless节点. (若不进行二次开发,请不要fork)
Stars: ✭ 686 (+2350%)
Mutual labels:  shadowsocks, v2ray
Twist
A light script for you to setup shadowsocks-libev server with high-speed connections and newest powerful features
Stars: ✭ 229 (+717.86%)
Mutual labels:  shadowsocks, shadowsocks-libev
Freedom
一个小白对于科学上网的一些切身感受的整理,自己捋思路,同时也为方便他人。发现错误的地方欢迎斧正。顺便也会不断整理一些实用资源及工具。
Stars: ✭ 236 (+742.86%)
Mutual labels:  shadowsocks, v2ray
Kuhero
websocket proxy on heroku
Stars: ✭ 192 (+585.71%)
Mutual labels:  shadowsocks, v2ray
v2ray.vpn
V2free for android, a V2ray and Shadowsocks client with many builtin free servers.
Stars: ✭ 277 (+889.29%)
Mutual labels:  shadowsocks, v2ray
R2S
基于 RubikWrt 的 NanoPi R2S 固件,每日自动更新插件和内核
Stars: ✭ 96 (+242.86%)
Mutual labels:  shadowsocks, v2ray
shadowsocks-libev-tomato
Pre-compiled shadowsocks-libev for TomatoUSB, Tomato Shibby, Toastman and Asuswrt Merlin.
Stars: ✭ 32 (+14.29%)
Mutual labels:  shadowsocks, shadowsocks-libev
Free-Node-Merge
合并网络上的免费节点 | Merge Free ss, ssr, v2ray nodes
Stars: ✭ 154 (+450%)
Mutual labels:  shadowsocks, v2ray
v2ray-free
Fuck gfw,免费翻墙,每天更新
Stars: ✭ 221 (+689.29%)
Mutual labels:  shadowsocks, v2ray
shadowsocks-restful-api
Secure, reliable, standard restful api for managing shadowsocks-libev
Stars: ✭ 72 (+157.14%)
Mutual labels:  shadowsocks, shadowsocks-libev
Shadowsocksbio
记录一下Shadowsocks的前世今生,以及一个简单的教程总结
Stars: ✭ 2,518 (+8892.86%)
Mutual labels:  shadowsocks, shadowsocks-libev
Winxray
Xray / V2Ray( vmess/vless )、Shadowsocks、Trojan 通用客户端(Windows),可自动维持稳定上网 - 代理服务器异常自动切换,并提供一键部署代理服务端工具,使用 aardio 编写,绿色便携版免安装仅740KB、不需要.Net等外部运行库。
Stars: ✭ 241 (+760.71%)
Mutual labels:  shadowsocks, v2ray
Django Sspanel
用diango开发的shadowsocks/V2ray面板
Stars: ✭ 2,538 (+8964.29%)
Mutual labels:  shadowsocks, v2ray
ssr-decode
一个解析Shadowsocks/ShadowsocksR/V2Ray订阅链接(http/ss/ssr/vmess)并生成json配置文件的百行shell小脚本
Stars: ✭ 53 (+89.29%)
Mutual labels:  shadowsocks, v2ray
overthefirewall
覆盖全平台完全免费节点订阅机场推荐破解VPN软件分享
Stars: ✭ 1,042 (+3621.43%)
Mutual labels:  shadowsocks, v2ray
Ssssrv2rayclashtrojan
科学上网,ss, ssr, v2ray, trojan, clash, clashr,翻墙机场推荐
Stars: ✭ 186 (+564.29%)
Mutual labels:  shadowsocks, v2ray
Awesome Vpn
Free VPN/proxy,server,account,link list.,实时更新免费的代理,科学上网,翻墙,梯子,服务器,客户端,账号
Stars: ✭ 2,691 (+9510.71%)
Mutual labels:  shadowsocks, v2ray

ss-v2ray-docker

Deprecated: please use https://github.com/dmirubtsov/ss-xray-docker

Shadowsocks-libev server with v2ray-plugin running in Docker.

Docker Build Status


Current version

Usage

Pull the image

I recommend use a specified tag instead of the "latest" tag. This article explained why.

docker pull mazy/ss-v2ray:v3.3.5-1.3.1

Start the proxy in HTTP mode

  • Shell script
docker run \
    -d \
    --restart always \
    -p <server_address>:80:1080 \
    -e PASSWORD=<password> \
    mazy/ss-v2ray:v3.3.5-1.3.1
  • With docker-compose
---
version: '3'

services:
  shadowsocks-obfs-docker:
    image: mazy/ss-v2ray:v3.3.5-1.3.1
    restart: always
    ports:
      - <server_address>:80:1080
    environment:
      PASSWORD: <password>

Then allow the port used by the shadowsocks in your firewall.

Start the proxy in HTTPS or QUIC mode

I haven't tried this. You can refer to Shadowsocks over websocket (HTTPS), Shadowsocks over quic and Issue a cert for TLS and QUIC.

Specifying additional arguments

You can also add additional arguments by specifying the environment variable ARGS, like -e ARGS=<arguments> in the script, or

environment:
  ARGS: <arguments>

in docker-compose.yaml.

Usually, running with no additional arguments will be just fine.

For a full list of arguments, you can refer to Shadowsocks libev - Usage and v2ray-plugin -h.

Case example

In my case, I'm running the shadowsocks-libev with v2ray-plugin, with Caddy as a websocket reverse proxy, behind a CloudFlare CDN.

Shadowsocks and v2ray-plugin server

The shadowsocks and v2ray-plugin is configured running in HTTP mode and is listening to localhost:10001.

The docker-compose.yml is like this:

---
version: '3'

services:
  ss-v2ray-docker:
    image: mazy/ss-v2ray:v3.3.5-1.3.1
    restart: always
    ports:
      - 127.0.0.1:10001:1080
    environment:
      PASSWORD: "a-really-secure-password"

Caddy example

www.mysite.com {
  proxy /shadowsocks localhost:10001 {
    without /shadowsocks
    websocket
    header_upstream -Origin
  }
}

Nginx example

location /shadowsocks {
  proxy_redirect off;
  proxy_pass http://127.0.0.1:10001;
  proxy_http_version 1.1;
  proxy_set_header Upgrade $http_upgrade;
  proxy_set_header Connection "upgrade";
  proxy_set_header Host $http_host;
}

CloudFlare

I added an A record in CloudFlare DNS panel, which contains the domain, the IP address, with CDN enabled just like serving a normal website.

Mac

brew cask install v2ray-plugin
brew cask install shadowsocksx-ng

Start shadowsocksx-ng application and add new server with these properties:

Config Name Value
Address www.mysite.com
Port Port of your shadowsocks instance(80 or 443 if it behind webserver)
Encryption chacha20-ietf-poly1305
Password password
Plugin path=/;mux=8;host=mazy.wtf;tls
Plugin Opts path=/shadowsocks;host=www.mysite.com;tls

Linux client

Tested on ArchLinux, should be similar on any distribution

pacman -S shadowsocks-libev shadowsocks-v2ray-plugin

/etc/shadowsocks/my-config.json

{
	"server":"www.mysite.com",
	"server_port":443,
	"local_port":1080,
	"password":"password",
	"timeout":600,
	"method":"chacha20-ietf-poly1305",
	"plugin":"/usr/bin/v2ray-plugin",
	"fast_open":true,
	"plugin_opts":"path=/shadowsocks;host=www.mysite.com;tls",
	"reuse_port": true
}
systemctl enable --now shadowsocks-libev@my-config

I'm connecting to port 443 because I'm using the Full SSL configuration in CloudFlare, which means all HTTP requests will be rewrited into a HTTPS request. And for the same reason, I made the client running in the HTTPS mode, as in plugin_opts section you can see I specified the tls flag.

Client on Android

First you need the Shadowsocks client and the v2ray plugin. You can install both of them from Google Play Store.

You can refer to the previous configuration or the config file above for the Shadowsocks part.

And for the plugin options, you can also refer to the config file above, but I think providing a little "translation" will be better.

Config Name Value refer to plugin_opts
Transport mode websocket-tls tls
Hostname www.mysite.com host=www.mysite.com
Path /shadowsocks path=/shadowsocks

I left the Concurrent connections and Certificate for TLS verification untouched since I don't quite sure what does it means, and it just works.

For now you should have a working Shadowsocks-libev with v2ray-plugin proxy.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].