File tree 2 files changed +16
-2
lines changed
2 files changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -119,6 +119,22 @@ It will look for the plugin in the current directory first, then `$PATH`.
119
119
120
120
UDP connections will not be affected by SIP003.
121
121
122
+ ### Reuse Detection
123
+
124
+ This feature used for resistance with reuse attack by checking cipher salt/iv is repeated.
125
+
126
+ Expose some environment variables below to control this feature:
127
+ - ` SHADOWSOCKS_SF_CAPACITY ` (an integer): The most recently salt items to keep for checking duplication. Default 1e6,
128
+ on gave a non-positive integer this feature will be disabled;
129
+ - ` SHADOWSOCKS_SF_FPR ` (decimal): False positive rate of the filter, 0.0003 means 0.03% FPR. Default 1e-6;
130
+ - ` SHADOWSOCKS_SF_SLOT ` (a positive integer): All the salt items will be added into lots(how many this variable defines)
131
+ filter items for the check. Default 10.
132
+
133
+
134
+ ``` sh
135
+ SHADOWSOCKS_SF_CAPACITY=1e6 SHADOWSOCKS_SF_FPR=1e-6 SHADOWSOCKS_SF_SLOT=10 go-shadowsocks2 ...
136
+ ```
137
+
122
138
## Design Principles
123
139
124
140
The code base strives to
Original file line number Diff line number Diff line change @@ -8,7 +8,5 @@ github.com/golang/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:5JyrLPvD/ZdaY
8
8
github.com/golang/sys v0.0.0-20190412213103-97732733099d h1:blRtD+FQOxZ6P7jigy+HS0R8zyGOMOv8TET4wCpzVwM =
9
9
github.com/golang/sys v0.0.0-20190412213103-97732733099d /go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs =
10
10
github.com/golang/text v0.3.0 /go.mod h1:GUiq9pdJKRKKAZXiVgWFEvocYuREvC14NhI4OPgEjeE =
11
- github.com/riobard/go-bloom v0.0.0-20170218180955-2b113c64a69b h1:H9yjH/g5w8MOPjQR2zMSP/Md1kKtj/33fIht9ChC2OU =
12
- github.com/riobard/go-bloom v0.0.0-20170218180955-2b113c64a69b /go.mod h1:HgjTstvQsPGkxUsCd2KWxErBblirPizecHcpD3ffK+s =
13
11
github.com/riobard/go-bloom v0.0.0-20200213042214-218e1707c495 h1:p7xbxYTzzfXghR1kpsJDeoVVRRWAotKc8u7FP/N48rU =
14
12
github.com/riobard/go-bloom v0.0.0-20200213042214-218e1707c495 /go.mod h1:HgjTstvQsPGkxUsCd2KWxErBblirPizecHcpD3ffK+s =
You can’t perform that action at this time.
0 commit comments