silencewing commited on
Commit
2939ba2
1 Parent(s): b6dddc5
Files changed (8) hide show
  1. .gitattributes +2 -0
  2. frp/LICENSE +202 -0
  3. frp/frpc +3 -0
  4. frp/frpc.ini +9 -0
  5. frp/frpc_full.ini +389 -0
  6. frp/frps +3 -0
  7. frp/frps.ini +2 -0
  8. frp/frps_full.ini +168 -0
.gitattributes CHANGED
@@ -33,3 +33,5 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ frp/frpc filter=lfs diff=lfs merge=lfs -text
37
+ frp/frps filter=lfs diff=lfs merge=lfs -text
frp/LICENSE ADDED
@@ -0,0 +1,202 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "{}"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright {yyyy} {name of copyright owner}
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
202
+
frp/frpc ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:845aa4643657da02934b0eca8fd2d8b251217f4f59c16c25bfa2a01587f928e1
3
+ size 14278656
frp/frpc.ini ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ [common]
2
+ server_addr = 127.0.0.1
3
+ server_port = 7000
4
+
5
+ [ssh]
6
+ type = tcp
7
+ local_ip = 127.0.0.1
8
+ local_port = 22
9
+ remote_port = 6000
frp/frpc_full.ini ADDED
@@ -0,0 +1,389 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # [common] is integral section
2
+ [common]
3
+ # A literal address or host name for IPv6 must be enclosed
4
+ # in square brackets, as in "[::1]:80", "[ipv6-host]:http" or "[ipv6-host%zone]:80"
5
+ # For single "server_addr" field, no need square brackets, like "server_addr = ::".
6
+ server_addr = 0.0.0.0
7
+ server_port = 7000
8
+
9
+ # STUN server to help penetrate NAT hole.
10
+ # nat_hole_stun_server = stun.easyvoip.com:3478
11
+
12
+ # The maximum amount of time a dial to server will wait for a connect to complete. Default value is 10 seconds.
13
+ # dial_server_timeout = 10
14
+
15
+ # dial_server_keepalive specifies the interval between keep-alive probes for an active network connection between frpc and frps.
16
+ # If negative, keep-alive probes are disabled.
17
+ # dial_server_keepalive = 7200
18
+
19
+ # if you want to connect frps by http proxy or socks5 proxy or ntlm proxy, you can set http_proxy here or in global environment variables
20
+ # it only works when protocol is tcp
21
+ # http_proxy = http://user:[email protected]:8080
22
+ # http_proxy = socks5://user:[email protected]:1080
23
+ # http_proxy = ntlm://user:[email protected]:2080
24
+
25
+ # console or real logFile path like ./frpc.log
26
+ log_file = ./frpc.log
27
+
28
+ # trace, debug, info, warn, error
29
+ log_level = info
30
+
31
+ log_max_days = 3
32
+
33
+ # disable log colors when log_file is console, default is false
34
+ disable_log_color = false
35
+
36
+ # for authentication, should be same as your frps.ini
37
+ # authenticate_heartbeats specifies whether to include authentication token in heartbeats sent to frps. By default, this value is false.
38
+ authenticate_heartbeats = false
39
+
40
+ # authenticate_new_work_conns specifies whether to include authentication token in new work connections sent to frps. By default, this value is false.
41
+ authenticate_new_work_conns = false
42
+
43
+ # auth token
44
+ token = 12345678
45
+
46
+ authentication_method =
47
+
48
+ # oidc_client_id specifies the client ID to use to get a token in OIDC authentication if AuthenticationMethod == "oidc".
49
+ # By default, this value is "".
50
+ oidc_client_id =
51
+
52
+ # oidc_client_secret specifies the client secret to use to get a token in OIDC authentication if AuthenticationMethod == "oidc".
53
+ # By default, this value is "".
54
+ oidc_client_secret =
55
+
56
+ # oidc_audience specifies the audience of the token in OIDC authentication if AuthenticationMethod == "oidc". By default, this value is "".
57
+ oidc_audience =
58
+
59
+ # oidc_scope specifies the permisssions of the token in OIDC authentication if AuthenticationMethod == "oidc". By default, this value is "".
60
+ oidc_scope =
61
+
62
+ # oidc_token_endpoint_url specifies the URL which implements OIDC Token Endpoint.
63
+ # It will be used to get an OIDC token if AuthenticationMethod == "oidc". By default, this value is "".
64
+ oidc_token_endpoint_url =
65
+
66
+ # oidc_additional_xxx specifies additional parameters to be sent to the OIDC Token Endpoint.
67
+ # For example, if you want to specify the "audience" parameter, you can set as follow.
68
+ # frp will add "audience=<value>" "var1=<value>" to the additional parameters.
69
+ # oidc_additional_audience = https://dev.auth.com/api/v2/
70
+ # oidc_additional_var1 = foobar
71
+
72
+ # set admin address for control frpc's action by http api such as reload
73
+ admin_addr = 127.0.0.1
74
+ admin_port = 7400
75
+ admin_user = admin
76
+ admin_pwd = admin
77
+ # Admin assets directory. By default, these assets are bundled with frpc.
78
+ # assets_dir = ./static
79
+
80
+ # connections will be established in advance, default value is zero
81
+ pool_count = 5
82
+
83
+ # if tcp stream multiplexing is used, default is true, it must be same with frps
84
+ # tcp_mux = true
85
+
86
+ # specify keep alive interval for tcp mux.
87
+ # only valid if tcp_mux is true.
88
+ # tcp_mux_keepalive_interval = 60
89
+
90
+ # your proxy name will be changed to {user}.{proxy}
91
+ user = your_name
92
+
93
+ # decide if exit program when first login failed, otherwise continuous relogin to frps
94
+ # default is true
95
+ login_fail_exit = true
96
+
97
+ # communication protocol used to connect to server
98
+ # supports tcp, kcp, quic, websocket and wss now, default is tcp
99
+ protocol = tcp
100
+
101
+ # set client binding ip when connect server, default is empty.
102
+ # only when protocol = tcp or websocket, the value will be used.
103
+ connect_server_local_ip = 0.0.0.0
104
+
105
+ # quic protocol options
106
+ # quic_keepalive_period = 10
107
+ # quic_max_idle_timeout = 30
108
+ # quic_max_incoming_streams = 100000
109
+
110
+ # If tls_enable is true, frpc will connect frps by tls.
111
+ # Since v0.50.0, the default value has been changed to true, and tls is enabled by default.
112
+ tls_enable = true
113
+
114
+ # tls_cert_file = client.crt
115
+ # tls_key_file = client.key
116
+ # tls_trusted_ca_file = ca.crt
117
+ # tls_server_name = example.com
118
+
119
+ # specify a dns server, so frpc will use this instead of default one
120
+ # dns_server = 8.8.8.8
121
+
122
+ # proxy names you want to start separated by ','
123
+ # default is empty, means all proxies
124
+ # start = ssh,dns
125
+
126
+ # heartbeat configure, it's not recommended to modify the default value
127
+ # The default value of heartbeat_interval is 10 and heartbeat_timeout is 90. Set negative value
128
+ # to disable it.
129
+ # heartbeat_interval = 30
130
+ # heartbeat_timeout = 90
131
+
132
+ # additional meta info for client
133
+ meta_var1 = 123
134
+ meta_var2 = 234
135
+
136
+ # specify udp packet size, unit is byte. If not set, the default value is 1500.
137
+ # This parameter should be same between client and server.
138
+ # It affects the udp and sudp proxy.
139
+ udp_packet_size = 1500
140
+
141
+ # include other config files for proxies.
142
+ # includes = ./confd/*.ini
143
+
144
+ # If the disable_custom_tls_first_byte is set to false, frpc will establish a connection with frps using the
145
+ # first custom byte when tls is enabled.
146
+ # Since v0.50.0, the default value has been changed to true, and the first custom byte is disabled by default.
147
+ disable_custom_tls_first_byte = true
148
+
149
+ # Enable golang pprof handlers in admin listener.
150
+ # Admin port must be set first.
151
+ pprof_enable = false
152
+
153
+ # 'ssh' is the unique proxy name
154
+ # if user in [common] section is not empty, it will be changed to {user}.{proxy} such as 'your_name.ssh'
155
+ [ssh]
156
+ # tcp | udp | http | https | stcp | xtcp, default is tcp
157
+ type = tcp
158
+ local_ip = 127.0.0.1
159
+ local_port = 22
160
+ # limit bandwidth for this proxy, unit is KB and MB
161
+ bandwidth_limit = 1MB
162
+ # where to limit bandwidth, can be 'client' or 'server', default is 'client'
163
+ bandwidth_limit_mode = client
164
+ # true or false, if true, messages between frps and frpc will be encrypted, default is false
165
+ use_encryption = false
166
+ # if true, message will be compressed
167
+ use_compression = false
168
+ # remote port listen by frps
169
+ remote_port = 6001
170
+ # frps will load balancing connections for proxies in same group
171
+ group = test_group
172
+ # group should have same group key
173
+ group_key = 123456
174
+ # enable health check for the backend service, it support 'tcp' and 'http' now
175
+ # frpc will connect local service's port to detect it's healthy status
176
+ health_check_type = tcp
177
+ # health check connection timeout
178
+ health_check_timeout_s = 3
179
+ # if continuous failed in 3 times, the proxy will be removed from frps
180
+ health_check_max_failed = 3
181
+ # every 10 seconds will do a health check
182
+ health_check_interval_s = 10
183
+ # additional meta info for each proxy
184
+ meta_var1 = 123
185
+ meta_var2 = 234
186
+
187
+ [ssh_random]
188
+ type = tcp
189
+ local_ip = 127.0.0.1
190
+ local_port = 22
191
+ # if remote_port is 0, frps will assign a random port for you
192
+ remote_port = 0
193
+
194
+ # if you want to expose multiple ports, add 'range:' prefix to the section name
195
+ # frpc will generate multiple proxies such as 'tcp_port_6010', 'tcp_port_6011' and so on.
196
+ [range:tcp_port]
197
+ type = tcp
198
+ local_ip = 127.0.0.1
199
+ local_port = 6010-6020,6022,6024-6028
200
+ remote_port = 6010-6020,6022,6024-6028
201
+ use_encryption = false
202
+ use_compression = false
203
+
204
+ [dns]
205
+ type = udp
206
+ local_ip = 114.114.114.114
207
+ local_port = 53
208
+ remote_port = 6002
209
+ use_encryption = false
210
+ use_compression = false
211
+
212
+ [range:udp_port]
213
+ type = udp
214
+ local_ip = 127.0.0.1
215
+ local_port = 6010-6020
216
+ remote_port = 6010-6020
217
+ use_encryption = false
218
+ use_compression = false
219
+
220
+ # Resolve your domain names to [server_addr] so you can use http://web01.yourdomain.com to browse web01 and http://web02.yourdomain.com to browse web02
221
+ [web01]
222
+ type = http
223
+ local_ip = 127.0.0.1
224
+ local_port = 80
225
+ use_encryption = false
226
+ use_compression = true
227
+ # http username and password are safety certification for http protocol
228
+ # if not set, you can access this custom_domains without certification
229
+ http_user = admin
230
+ http_pwd = admin
231
+ # if domain for frps is frps.com, then you can access [web01] proxy by URL http://web01.frps.com
232
+ subdomain = web01
233
+ custom_domains = web01.yourdomain.com
234
+ # locations is only available for http type
235
+ locations = /,/pic
236
+ # route requests to this service if http basic auto user is abc
237
+ # route_by_http_user = abc
238
+ host_header_rewrite = example.com
239
+ # params with prefix "header_" will be used to update http request headers
240
+ header_X-From-Where = frp
241
+ health_check_type = http
242
+ # frpc will send a GET http request '/status' to local http service
243
+ # http service is alive when it return 2xx http response code
244
+ health_check_url = /status
245
+ health_check_interval_s = 10
246
+ health_check_max_failed = 3
247
+ health_check_timeout_s = 3
248
+
249
+ [web02]
250
+ type = https
251
+ local_ip = 127.0.0.1
252
+ local_port = 8000
253
+ use_encryption = false
254
+ use_compression = false
255
+ subdomain = web02
256
+ custom_domains = web02.yourdomain.com
257
+ # if not empty, frpc will use proxy protocol to transfer connection info to your local service
258
+ # v1 or v2 or empty
259
+ proxy_protocol_version = v2
260
+
261
+ [plugin_unix_domain_socket]
262
+ type = tcp
263
+ remote_port = 6003
264
+ # if plugin is defined, local_ip and local_port is useless
265
+ # plugin will handle connections got from frps
266
+ plugin = unix_domain_socket
267
+ # params with prefix "plugin_" that plugin needed
268
+ plugin_unix_path = /var/run/docker.sock
269
+
270
+ [plugin_http_proxy]
271
+ type = tcp
272
+ remote_port = 6004
273
+ plugin = http_proxy
274
+ plugin_http_user = abc
275
+ plugin_http_passwd = abc
276
+
277
+ [plugin_socks5]
278
+ type = tcp
279
+ remote_port = 6005
280
+ plugin = socks5
281
+ plugin_user = abc
282
+ plugin_passwd = abc
283
+
284
+ [plugin_static_file]
285
+ type = tcp
286
+ remote_port = 6006
287
+ plugin = static_file
288
+ plugin_local_path = /var/www/blog
289
+ plugin_strip_prefix = static
290
+ plugin_http_user = abc
291
+ plugin_http_passwd = abc
292
+
293
+ [plugin_https2http]
294
+ type = https
295
+ custom_domains = test.yourdomain.com
296
+ plugin = https2http
297
+ plugin_local_addr = 127.0.0.1:80
298
+ plugin_crt_path = ./server.crt
299
+ plugin_key_path = ./server.key
300
+ plugin_host_header_rewrite = 127.0.0.1
301
+ plugin_header_X-From-Where = frp
302
+
303
+ [plugin_https2https]
304
+ type = https
305
+ custom_domains = test.yourdomain.com
306
+ plugin = https2https
307
+ plugin_local_addr = 127.0.0.1:443
308
+ plugin_crt_path = ./server.crt
309
+ plugin_key_path = ./server.key
310
+ plugin_host_header_rewrite = 127.0.0.1
311
+ plugin_header_X-From-Where = frp
312
+
313
+ [plugin_http2https]
314
+ type = http
315
+ custom_domains = test.yourdomain.com
316
+ plugin = http2https
317
+ plugin_local_addr = 127.0.0.1:443
318
+ plugin_host_header_rewrite = 127.0.0.1
319
+ plugin_header_X-From-Where = frp
320
+
321
+ [secret_tcp]
322
+ # If the type is secret tcp, remote_port is useless
323
+ # Who want to connect local port should deploy another frpc with stcp proxy and role is visitor
324
+ type = stcp
325
+ # sk used for authentication for visitors
326
+ sk = abcdefg
327
+ local_ip = 127.0.0.1
328
+ local_port = 22
329
+ use_encryption = false
330
+ use_compression = false
331
+ # If not empty, only visitors from specified users can connect.
332
+ # Otherwise, visitors from same user can connect. '*' means allow all users.
333
+ allow_users = *
334
+
335
+ # user of frpc should be same in both stcp server and stcp visitor
336
+ [secret_tcp_visitor]
337
+ # frpc role visitor -> frps -> frpc role server
338
+ role = visitor
339
+ type = stcp
340
+ # the server name you want to visitor
341
+ server_name = secret_tcp
342
+ sk = abcdefg
343
+ # connect this address to visitor stcp server
344
+ bind_addr = 127.0.0.1
345
+ # bind_port can be less than 0, it means don't bind to the port and only receive connections redirected from
346
+ # other visitors. (This is not supported for SUDP now)
347
+ bind_port = 9000
348
+ use_encryption = false
349
+ use_compression = false
350
+
351
+ [p2p_tcp]
352
+ type = xtcp
353
+ sk = abcdefg
354
+ local_ip = 127.0.0.1
355
+ local_port = 22
356
+ use_encryption = false
357
+ use_compression = false
358
+ # If not empty, only visitors from specified users can connect.
359
+ # Otherwise, visitors from same user can connect. '*' means allow all users.
360
+ allow_users = user1, user2
361
+
362
+ [p2p_tcp_visitor]
363
+ role = visitor
364
+ type = xtcp
365
+ # if the server user is not set, it defaults to the current user
366
+ server_user = user1
367
+ server_name = p2p_tcp
368
+ sk = abcdefg
369
+ bind_addr = 127.0.0.1
370
+ # bind_port can be less than 0, it means don't bind to the port and only receive connections redirected from
371
+ # other visitors. (This is not supported for SUDP now)
372
+ bind_port = 9001
373
+ use_encryption = false
374
+ use_compression = false
375
+ # when automatic tunnel persistence is required, set it to true
376
+ keep_tunnel_open = false
377
+ # effective when keep_tunnel_open is set to true, the number of attempts to punch through per hour
378
+ max_retries_an_hour = 8
379
+ min_retry_interval = 90
380
+ # fallback_to = stcp_visitor
381
+ # fallback_timeout_ms = 500
382
+
383
+ [tcpmuxhttpconnect]
384
+ type = tcpmux
385
+ multiplexer = httpconnect
386
+ local_ip = 127.0.0.1
387
+ local_port = 10701
388
+ custom_domains = tunnel1
389
+ # route_by_http_user = user1
frp/frps ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:742b58f9327e1d32f7c3b5dbb9379b10a34551405b5537e2045eacf51eab3819
3
+ size 17182720
frp/frps.ini ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ [common]
2
+ bind_port = 7860
frp/frps_full.ini ADDED
@@ -0,0 +1,168 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # [common] is integral section
2
+ [common]
3
+ # A literal address or host name for IPv6 must be enclosed
4
+ # in square brackets, as in "[::1]:80", "[ipv6-host]:http" or "[ipv6-host%zone]:80"
5
+ # For single "bind_addr" field, no need square brackets, like "bind_addr = ::".
6
+ bind_addr = 0.0.0.0
7
+ bind_port = 7000
8
+
9
+ # udp port used for kcp protocol, it can be same with 'bind_port'.
10
+ # if not set, kcp is disabled in frps.
11
+ kcp_bind_port = 7000
12
+
13
+ # udp port used for quic protocol.
14
+ # if not set, quic is disabled in frps.
15
+ # quic_bind_port = 7002
16
+ # quic protocol options
17
+ # quic_keepalive_period = 10
18
+ # quic_max_idle_timeout = 30
19
+ # quic_max_incoming_streams = 100000
20
+
21
+ # specify which address proxy will listen for, default value is same with bind_addr
22
+ # proxy_bind_addr = 127.0.0.1
23
+
24
+ # if you want to support virtual host, you must set the http port for listening (optional)
25
+ # Note: http port and https port can be same with bind_port
26
+ vhost_http_port = 80
27
+ vhost_https_port = 443
28
+
29
+ # response header timeout(seconds) for vhost http server, default is 60s
30
+ # vhost_http_timeout = 60
31
+
32
+ # tcpmux_httpconnect_port specifies the port that the server listens for TCP
33
+ # HTTP CONNECT requests. If the value is 0, the server will not multiplex TCP
34
+ # requests on one single port. If it's not - it will listen on this value for
35
+ # HTTP CONNECT requests. By default, this value is 0.
36
+ # tcpmux_httpconnect_port = 1337
37
+
38
+ # If tcpmux_passthrough is true, frps won't do any update on traffic.
39
+ # tcpmux_passthrough = false
40
+
41
+ # set dashboard_addr and dashboard_port to view dashboard of frps
42
+ # dashboard_addr's default value is same with bind_addr
43
+ # dashboard is available only if dashboard_port is set
44
+ dashboard_addr = 0.0.0.0
45
+ dashboard_port = 7500
46
+
47
+ # dashboard user and passwd for basic auth protect
48
+ dashboard_user = admin
49
+ dashboard_pwd = admin
50
+
51
+ # dashboard TLS mode
52
+ dashboard_tls_mode = false
53
+ # dashboard_tls_cert_file = server.crt
54
+ # dashboard_tls_key_file = server.key
55
+
56
+ # enable_prometheus will export prometheus metrics on {dashboard_addr}:{dashboard_port} in /metrics api.
57
+ enable_prometheus = true
58
+
59
+ # dashboard assets directory(only for debug mode)
60
+ # assets_dir = ./static
61
+
62
+ # console or real logFile path like ./frps.log
63
+ log_file = ./frps.log
64
+
65
+ # trace, debug, info, warn, error
66
+ log_level = info
67
+
68
+ log_max_days = 3
69
+
70
+ # disable log colors when log_file is console, default is false
71
+ disable_log_color = false
72
+
73
+ # DetailedErrorsToClient defines whether to send the specific error (with debug info) to frpc. By default, this value is true.
74
+ detailed_errors_to_client = true
75
+
76
+ # authentication_method specifies what authentication method to use authenticate frpc with frps.
77
+ # If "token" is specified - token will be read into login message.
78
+ # If "oidc" is specified - OIDC (Open ID Connect) token will be issued using OIDC settings. By default, this value is "token".
79
+ authentication_method = token
80
+
81
+ # authenticate_heartbeats specifies whether to include authentication token in heartbeats sent to frps. By default, this value is false.
82
+ authenticate_heartbeats = false
83
+
84
+ # AuthenticateNewWorkConns specifies whether to include authentication token in new work connections sent to frps. By default, this value is false.
85
+ authenticate_new_work_conns = false
86
+
87
+ # auth token
88
+ token = 12345678
89
+
90
+ # oidc_issuer specifies the issuer to verify OIDC tokens with.
91
+ # By default, this value is "".
92
+ oidc_issuer =
93
+
94
+ # oidc_audience specifies the audience OIDC tokens should contain when validated.
95
+ # By default, this value is "".
96
+ oidc_audience =
97
+
98
+ # oidc_skip_expiry_check specifies whether to skip checking if the OIDC token is expired.
99
+ # By default, this value is false.
100
+ oidc_skip_expiry_check = false
101
+
102
+ # oidc_skip_issuer_check specifies whether to skip checking if the OIDC token's issuer claim matches the issuer specified in OidcIssuer.
103
+ # By default, this value is false.
104
+ oidc_skip_issuer_check = false
105
+
106
+ # heartbeat configure, it's not recommended to modify the default value
107
+ # the default value of heartbeat_timeout is 90. Set negative value to disable it.
108
+ # heartbeat_timeout = 90
109
+
110
+ # user_conn_timeout configure, it's not recommended to modify the default value
111
+ # the default value of user_conn_timeout is 10
112
+ # user_conn_timeout = 10
113
+
114
+ # only allow frpc to bind ports you list, if you set nothing, there won't be any limit
115
+ allow_ports = 2000-3000,3001,3003,4000-50000
116
+
117
+ # pool_count in each proxy will change to max_pool_count if they exceed the maximum value
118
+ max_pool_count = 5
119
+
120
+ # max ports can be used for each client, default value is 0 means no limit
121
+ max_ports_per_client = 0
122
+
123
+ # tls_only specifies whether to only accept TLS-encrypted connections. By default, the value is false.
124
+ tls_only = false
125
+
126
+ # tls_cert_file = server.crt
127
+ # tls_key_file = server.key
128
+ # tls_trusted_ca_file = ca.crt
129
+
130
+ # if subdomain_host is not empty, you can set subdomain when type is http or https in frpc's configure file
131
+ # when subdomain is test, the host used by routing is test.frps.com
132
+ subdomain_host = frps.com
133
+
134
+ # if tcp stream multiplexing is used, default is true
135
+ # tcp_mux = true
136
+
137
+ # specify keep alive interval for tcp mux.
138
+ # only valid if tcp_mux is true.
139
+ # tcp_mux_keepalive_interval = 60
140
+
141
+ # tcp_keepalive specifies the interval between keep-alive probes for an active network connection between frpc and frps.
142
+ # If negative, keep-alive probes are disabled.
143
+ # tcp_keepalive = 7200
144
+
145
+ # custom 404 page for HTTP requests
146
+ # custom_404_page = /path/to/404.html
147
+
148
+ # specify udp packet size, unit is byte. If not set, the default value is 1500.
149
+ # This parameter should be same between client and server.
150
+ # It affects the udp and sudp proxy.
151
+ udp_packet_size = 1500
152
+
153
+ # Enable golang pprof handlers in dashboard listener.
154
+ # Dashboard port must be set first
155
+ pprof_enable = false
156
+
157
+ # Retention time for NAT hole punching strategy data.
158
+ nat_hole_analysis_data_reserve_hours = 168
159
+
160
+ [plugin.user-manager]
161
+ addr = 127.0.0.1:9000
162
+ path = /handler
163
+ ops = Login
164
+
165
+ [plugin.port-manager]
166
+ addr = 127.0.0.1:9001
167
+ path = /handler
168
+ ops = NewProxy