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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
+
server_addr = 0.0.0.0
|
| 6 |
+
server_port = 7000
|
| 7 |
+
|
| 8 |
+
# if you want to connect frps by http proxy or socks5 proxy, you can set http_proxy here or in global environment variables
|
| 9 |
+
# it only works when protocol is tcp
|
| 10 |
+
# http_proxy = http://user:[email protected]:8080
|
| 11 |
+
# http_proxy = socks5://user:[email protected]:1080
|
| 12 |
+
|
| 13 |
+
# console or real logFile path like ./frpc.log
|
| 14 |
+
log_file = ./frpc.log
|
| 15 |
+
|
| 16 |
+
# trace, debug, info, warn, error
|
| 17 |
+
log_level = info
|
| 18 |
+
|
| 19 |
+
log_max_days = 3
|
| 20 |
+
|
| 21 |
+
# for authentication
|
| 22 |
+
token = 12345678
|
| 23 |
+
|
| 24 |
+
# set admin address for control frpc's action by http api such as reload
|
| 25 |
+
admin_addr = 127.0.0.1
|
| 26 |
+
admin_port = 7400
|
| 27 |
+
admin_user = admin
|
| 28 |
+
admin_pwd = admin
|
| 29 |
+
|
| 30 |
+
# connections will be established in advance, default value is zero
|
| 31 |
+
pool_count = 5
|
| 32 |
+
|
| 33 |
+
# if tcp stream multiplexing is used, default is true, it must be same with frps
|
| 34 |
+
tcp_mux = true
|
| 35 |
+
|
| 36 |
+
# your proxy name will be changed to {user}.{proxy}
|
| 37 |
+
user = your_name
|
| 38 |
+
|
| 39 |
+
# decide if exit program when first login failed, otherwise continuous relogin to frps
|
| 40 |
+
# default is true
|
| 41 |
+
login_fail_exit = true
|
| 42 |
+
|
| 43 |
+
# communication protocol used to connect to server
|
| 44 |
+
# now it supports tcp and kcp and websocket, default is tcp
|
| 45 |
+
protocol = tcp
|
| 46 |
+
|
| 47 |
+
# specify a dns server, so frpc will use this instead of default one
|
| 48 |
+
# dns_server = 8.8.8.8
|
| 49 |
+
|
| 50 |
+
# proxy names you want to start divided by ','
|
| 51 |
+
# default is empty, means all proxies
|
| 52 |
+
# start = ssh,dns
|
| 53 |
+
|
| 54 |
+
# heartbeat configure, it's not recommended to modify the default value
|
| 55 |
+
# the default value of heartbeat_interval is 10 and heartbeat_timeout is 90
|
| 56 |
+
# heartbeat_interval = 30
|
| 57 |
+
# heartbeat_timeout = 90
|
| 58 |
+
|
| 59 |
+
# 'ssh' is the unique proxy name
|
| 60 |
+
# if user in [common] section is not empty, it will be changed to {user}.{proxy} such as 'your_name.ssh'
|
| 61 |
+
[ssh]
|
| 62 |
+
# tcp | udp | http | https | stcp | xtcp, default is tcp
|
| 63 |
+
type = tcp
|
| 64 |
+
local_ip = 127.0.0.1
|
| 65 |
+
local_port = 22
|
| 66 |
+
# true or false, if true, messages between frps and frpc will be encrypted, default is false
|
| 67 |
+
use_encryption = false
|
| 68 |
+
# if true, message will be compressed
|
| 69 |
+
use_compression = false
|
| 70 |
+
# remote port listen by frps
|
| 71 |
+
remote_port = 6001
|
| 72 |
+
# frps will load balancing connections for proxies in same group
|
| 73 |
+
group = test_group
|
| 74 |
+
# group should have same group key
|
| 75 |
+
group_key = 123456
|
| 76 |
+
# enable health check for the backend service, it support 'tcp' and 'http' now
|
| 77 |
+
# frpc will connect local service's port to detect it's healthy status
|
| 78 |
+
health_check_type = tcp
|
| 79 |
+
health_check_interval_s = 10
|
| 80 |
+
health_check_max_failed = 1
|
| 81 |
+
health_check_timeout_s = 3
|
| 82 |
+
|
| 83 |
+
[ssh_random]
|
| 84 |
+
type = tcp
|
| 85 |
+
local_ip = 127.0.0.1
|
| 86 |
+
local_port = 22
|
| 87 |
+
# if remote_port is 0, frps will assign a random port for you
|
| 88 |
+
remote_port = 0
|
| 89 |
+
|
| 90 |
+
# if you want to expose multiple ports, add 'range:' prefix to the section name
|
| 91 |
+
# frpc will generate multiple proxies such as 'tcp_port_6010', 'tcp_port_6011' and so on.
|
| 92 |
+
[range:tcp_port]
|
| 93 |
+
type = tcp
|
| 94 |
+
local_ip = 127.0.0.1
|
| 95 |
+
local_port = 6010-6020,6022,6024-6028
|
| 96 |
+
remote_port = 6010-6020,6022,6024-6028
|
| 97 |
+
use_encryption = false
|
| 98 |
+
use_compression = false
|
| 99 |
+
|
| 100 |
+
[dns]
|
| 101 |
+
type = udp
|
| 102 |
+
local_ip = 114.114.114.114
|
| 103 |
+
local_port = 53
|
| 104 |
+
remote_port = 6002
|
| 105 |
+
use_encryption = false
|
| 106 |
+
use_compression = false
|
| 107 |
+
|
| 108 |
+
[range:udp_port]
|
| 109 |
+
type = udp
|
| 110 |
+
local_ip = 127.0.0.1
|
| 111 |
+
local_port = 6010-6020
|
| 112 |
+
remote_port = 6010-6020
|
| 113 |
+
use_encryption = false
|
| 114 |
+
use_compression = false
|
| 115 |
+
|
| 116 |
+
# 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
|
| 117 |
+
[web01]
|
| 118 |
+
type = http
|
| 119 |
+
local_ip = 127.0.0.1
|
| 120 |
+
local_port = 80
|
| 121 |
+
use_encryption = false
|
| 122 |
+
use_compression = true
|
| 123 |
+
# http username and password are safety certification for http protocol
|
| 124 |
+
# if not set, you can access this custom_domains without certification
|
| 125 |
+
http_user = admin
|
| 126 |
+
http_pwd = admin
|
| 127 |
+
# if domain for frps is frps.com, then you can access [web01] proxy by URL http://test.frps.com
|
| 128 |
+
subdomain = web01
|
| 129 |
+
custom_domains = web02.yourdomain.com
|
| 130 |
+
# locations is only available for http type
|
| 131 |
+
locations = /,/pic
|
| 132 |
+
host_header_rewrite = example.com
|
| 133 |
+
# params with prefix "header_" will be used to update http request headers
|
| 134 |
+
header_X-From-Where = frp
|
| 135 |
+
health_check_type = http
|
| 136 |
+
# frpc will send a GET http request '/status' to local http service
|
| 137 |
+
# http service is alive when it return 2xx http response code
|
| 138 |
+
health_check_url = /status
|
| 139 |
+
health_check_interval_s = 10
|
| 140 |
+
|
| 141 |
+
[web02]
|
| 142 |
+
type = https
|
| 143 |
+
local_ip = 127.0.0.1
|
| 144 |
+
local_port = 8000
|
| 145 |
+
use_encryption = false
|
| 146 |
+
use_compression = false
|
| 147 |
+
subdomain = web01
|
| 148 |
+
custom_domains = web02.yourdomain.com
|
| 149 |
+
|
| 150 |
+
[plugin_unix_domain_socket]
|
| 151 |
+
type = tcp
|
| 152 |
+
remote_port = 6003
|
| 153 |
+
# if plugin is defined, local_ip and local_port is useless
|
| 154 |
+
# plugin will handle connections got from frps
|
| 155 |
+
plugin = unix_domain_socket
|
| 156 |
+
# params with prefix "plugin_" that plugin needed
|
| 157 |
+
plugin_unix_path = /var/run/docker.sock
|
| 158 |
+
|
| 159 |
+
[plugin_http_proxy]
|
| 160 |
+
type = tcp
|
| 161 |
+
remote_port = 6004
|
| 162 |
+
plugin = http_proxy
|
| 163 |
+
plugin_http_user = abc
|
| 164 |
+
plugin_http_passwd = abc
|
| 165 |
+
|
| 166 |
+
[plugin_socks5]
|
| 167 |
+
type = tcp
|
| 168 |
+
remote_port = 6005
|
| 169 |
+
plugin = socks5
|
| 170 |
+
plugin_user = abc
|
| 171 |
+
plugin_passwd = abc
|
| 172 |
+
|
| 173 |
+
[plugin_static_file]
|
| 174 |
+
type = tcp
|
| 175 |
+
remote_port = 6006
|
| 176 |
+
plugin = static_file
|
| 177 |
+
plugin_local_path = /var/www/blog
|
| 178 |
+
plugin_strip_prefix = static
|
| 179 |
+
plugin_http_user = abc
|
| 180 |
+
plugin_http_passwd = abc
|
| 181 |
+
|
| 182 |
+
[secret_tcp]
|
| 183 |
+
# If the type is secret tcp, remote_port is useless
|
| 184 |
+
# Who want to connect local port should deploy another frpc with stcp proxy and role is visitor
|
| 185 |
+
type = stcp
|
| 186 |
+
# sk used for authentication for visitors
|
| 187 |
+
sk = abcdefg
|
| 188 |
+
local_ip = 127.0.0.1
|
| 189 |
+
local_port = 22
|
| 190 |
+
use_encryption = false
|
| 191 |
+
use_compression = false
|
| 192 |
+
|
| 193 |
+
# user of frpc should be same in both stcp server and stcp visitor
|
| 194 |
+
[secret_tcp_visitor]
|
| 195 |
+
# frpc role visitor -> frps -> frpc role server
|
| 196 |
+
role = visitor
|
| 197 |
+
type = stcp
|
| 198 |
+
# the server name you want to visitor
|
| 199 |
+
server_name = secret_tcp
|
| 200 |
+
sk = abcdefg
|
| 201 |
+
# connect this address to visitor stcp server
|
| 202 |
+
bind_addr = 127.0.0.1
|
| 203 |
+
bind_port = 9000
|
| 204 |
+
use_encryption = false
|
| 205 |
+
use_compression = false
|
| 206 |
+
|
| 207 |
+
[p2p_tcp]
|
| 208 |
+
type = xtcp
|
| 209 |
+
sk = abcdefg
|
| 210 |
+
local_ip = 127.0.0.1
|
| 211 |
+
local_port = 22
|
| 212 |
+
use_encryption = false
|
| 213 |
+
use_compression = false
|
| 214 |
+
|
| 215 |
+
[p2p_tcp_visitor]
|
| 216 |
+
role = visitor
|
| 217 |
+
type = xtcp
|
| 218 |
+
server_name = p2p_tcp
|
| 219 |
+
sk = abcdefg
|
| 220 |
+
bind_addr = 127.0.0.1
|
| 221 |
+
bind_port = 9001
|
| 222 |
+
use_encryption = false
|
| 223 |
+
use_compression = false
|