-
Notifications
You must be signed in to change notification settings - Fork 16.4k
Working with non SIP003 standard Plugin
This manual only applicable on the non-SIP003 standard plugin, if your using plugin is in compliance with the SIP003 standard, read plugin manual or README file to config.
4.1.2 and above
In Shadowsocks for Windows, you can use 3rd party plugins which does not following the SIP003 standard.
Shadowsocks for Windows provided 5 environment variables for SIP003 plugin config:
-
%SS_LOCAL_HOST%
Mandatory. Generated by Shadowsocks. -
%SS_LOCAL_PORT%
Mandatory. Generated by Shadowsocks. -
%SS_REMOTE_HOST%
Mandatory. Generated by Shadowsocks. -
%SS_REMOTE_PORT%
Mandatory. Generated by Shadowsocks. -
%SS_PLUGIN_OPTIONS%
Optional. User defined.
These environment variables will inform plugin how to config both local (your machine) and remote (server) endpoints.
- Prepare a plugin program under Shadowsocks.exe directory or somewhere else, such as:
D:\Shadowsocks\plugin_windows_amd64.exe
Read plugin manual, find out how to use CLI parameters to launch plugin with specific configuration.
-
In Shadowsocks Windows "Edit Servers" window, add/select a server.
-
In Server Port field, write the server-side plugin service listening port, not the Shadowsocks service port.
-
In Plugin Program field, write the plugin executable file path (absolute or relative), for instance:
D:\Shadowsocks\plugin_windows_amd64.exe
or plugin_windows_amd64.exe
-
In Plugin Options field, we could keep it blank.
-
In Plugin Arguments field, in this case, the plugin is kcptun. It uses
-l
parameter to assignlocal:port
,-r
parameter to assignserver:port
. We could compose the command as following:
-l %SS_LOCAL_HOST%:%SS_LOCAL_PORT% -r %SS_REMOTE_HOST%:%SS_REMOTE_PORT% --key <Plugin Password> --crypt <Encryption algorithm> --mode <Selected mode>
- Done.
-
Confirm the plugin program executable file exists and the path is correct.
-
Determine whether the plugin program is executed or not by using Task Manager.
-
Check the plugin parameters. Is there any mistakes such as typo or missing parameters or mismatch with server configuration.