2021-09-01 13:40:13 +08:00

2.3 KiB

This is the server config.json example to utilizing V2ray as the server for Shadowsocks + V2Ray Plugin

The complete setup also requires a web server to handle the TLS and proxy pass the deciphered request to the backend v2ray server at 127.0.0.1:10000. You can find the web server config example at https://guide.v2fly.org/en_US/advanced/wss_and_web.html#server-side-configuration

中文用户请看这里

Choose one of the server config config_server_redirect.json and config_server_domainsocket.json

If you choose to use config_server_domainsocket.json, the following extra steps are required. Since the default service file created by fhs installation scripts is using nobody as the runtime user, this user does not have the permission to create the ss-loop folder in /var/run.

Use your prefered editor to modify the systemd service file at /etc/systemd/system/v2ray.service. Add the following line to the block starting with [Service]

RuntimeDirectory=ss-loop 

ss-loop corresponds to the /var/run/ss-loop folder in the dsSettings inside config_server_domainsocket.json.

Execute the following commands to re-enable the v2ray.service.

systemctl disable v2ray.service
systemctl enable v2ray.service

Then restart the v2ray service.

systemctl restart v2ray

Client configuration examples

You should change the following configurations according to your server configs

shadowsocks windows client configuration examples

Server_IP: example.com or your server IP
Server_Port: 443
Password: ifYouWantToKeepYourPassphraseSafeChangeThis!!
Encryption: chacha20-ietf-poly1305
Plugin_Program: pathToYourV2ray-plugin_windows_arch.exe
Plugin_Options: tls;mode=websocket;path=/michi;host=example.com

shadowsocks Android plugin configuration examples

Both the shadowsocks android and the V2Ray plugin android are mandatory, they are available on Google Play Store.

Plugin: v2ray
Configuration:
    Transport_mode: websocket-tls
    Hostname: example.com
    Path: /michi
    Concurrent_connections: 1
    Certificate_for_TLS_verification: Not set