-
Notifications
You must be signed in to change notification settings - Fork 16.3k
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%
%SS_LOCAL_PORT%
%SS_REMOTE_HOST%
%SS_REMOTE_PORT%
%SS_PLUGIN_OPTIONS% (optional)
These environment variables will inform plugin how to config both local(your machine) and remote(server) endpoints.
- Prepare a plugin program to Shadowsocks.exe directory or somewhere you must know, for example:
D:\Shadowsocks\plugin_windows_amd64.exe
Read plugin manual, find out how to use the parameter to config plugin and how to assign server host, server port, localhost and local port.
-
Open Shadowsocks for Windows "Edit Servers" window, Add server as usual.
-
In Server Port field, write plugin listening port from server.
-
In Plugin Program field, write the plugin path (absolute or relative), for example:
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
-lparameter to assignlocal:port,-rparameter 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>
You need to fill the , and by yourself.
- 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.