2016-05-17 19:13:37 +08:00
|
|
|
[common]
|
2018-01-23 17:11:59 +08:00
|
|
|
server_addr = 127.0.0.1
|
2016-05-17 19:13:37 +08:00
|
|
|
server_port = 10700
|
2018-07-11 23:27:47 +08:00
|
|
|
log_file = console
|
2019-10-12 20:13:12 +08:00
|
|
|
log_level = trace
|
2018-04-10 17:46:49 +08:00
|
|
|
token = 123456
|
2018-01-18 14:53:44 +08:00
|
|
|
admin_port = 10600
|
|
|
|
admin_user = abc
|
|
|
|
admin_pwd = abc
|
2016-05-17 19:13:37 +08:00
|
|
|
|
2017-12-18 19:35:09 +08:00
|
|
|
[tcp_normal]
|
2016-05-17 19:13:37 +08:00
|
|
|
type = tcp
|
|
|
|
local_ip = 127.0.0.1
|
|
|
|
local_port = 10701
|
2017-12-18 19:35:09 +08:00
|
|
|
remote_port = 10801
|
2016-05-17 19:13:37 +08:00
|
|
|
|
2017-12-18 19:35:09 +08:00
|
|
|
[tcp_ec]
|
|
|
|
type = tcp
|
2016-05-17 19:13:37 +08:00
|
|
|
local_ip = 127.0.0.1
|
2017-12-18 19:35:09 +08:00
|
|
|
local_port = 10701
|
|
|
|
remote_port = 10901
|
2017-03-10 00:52:32 +08:00
|
|
|
use_encryption = true
|
|
|
|
use_compression = true
|
2017-03-28 00:27:30 +08:00
|
|
|
|
2018-05-23 14:39:12 +08:00
|
|
|
[tcp_group1]
|
|
|
|
type = tcp
|
|
|
|
local_ip = 127.0.0.1
|
|
|
|
local_port = 10701
|
|
|
|
remote_port = 10802
|
|
|
|
group = test1
|
|
|
|
group_key = 123
|
|
|
|
|
|
|
|
[tcp_group2]
|
|
|
|
type = tcp
|
|
|
|
local_ip = 127.0.0.1
|
|
|
|
local_port = 10702
|
|
|
|
remote_port = 10802
|
|
|
|
group = test1
|
|
|
|
group_key = 123
|
|
|
|
|
2017-12-18 19:35:09 +08:00
|
|
|
[udp_normal]
|
2017-03-28 00:27:30 +08:00
|
|
|
type = udp
|
|
|
|
local_ip = 127.0.0.1
|
2017-12-18 19:35:09 +08:00
|
|
|
local_port = 10702
|
|
|
|
remote_port = 10802
|
|
|
|
|
|
|
|
[udp_ec]
|
|
|
|
type = udp
|
|
|
|
local_ip = 127.0.0.1
|
|
|
|
local_port = 10702
|
|
|
|
remote_port = 10902
|
|
|
|
use_encryption = true
|
|
|
|
use_compression = true
|
2017-05-21 22:42:42 +08:00
|
|
|
|
|
|
|
[unix_domain]
|
|
|
|
type = tcp
|
2017-12-18 19:35:09 +08:00
|
|
|
remote_port = 10803
|
2017-05-21 22:42:42 +08:00
|
|
|
plugin = unix_domain_socket
|
|
|
|
plugin_unix_path = /tmp/frp_echo_server.sock
|
2017-12-18 19:35:09 +08:00
|
|
|
|
|
|
|
[stcp]
|
|
|
|
type = stcp
|
|
|
|
sk = abcdefg
|
|
|
|
local_ip = 127.0.0.1
|
|
|
|
local_port = 10701
|
|
|
|
|
|
|
|
[stcp_ec]
|
|
|
|
type = stcp
|
|
|
|
sk = abc
|
|
|
|
local_ip = 127.0.0.1
|
|
|
|
local_port = 10701
|
|
|
|
use_encryption = true
|
|
|
|
use_compression = true
|
|
|
|
|
2020-04-22 21:37:45 +08:00
|
|
|
[sudp]
|
|
|
|
type = sudp
|
|
|
|
sk = abcdefg
|
|
|
|
local_ip = 127.0.0.1
|
|
|
|
local_port = 10702
|
|
|
|
|
2017-12-18 19:35:09 +08:00
|
|
|
[web01]
|
|
|
|
type = http
|
|
|
|
local_ip = 127.0.0.1
|
|
|
|
local_port = 10704
|
|
|
|
custom_domains = 127.0.0.1
|
|
|
|
|
|
|
|
[web02]
|
|
|
|
type = http
|
|
|
|
local_ip = 127.0.0.1
|
|
|
|
local_port = 10704
|
|
|
|
custom_domains = test2.frp.com
|
|
|
|
host_header_rewrite = test2.frp.com
|
|
|
|
use_encryption = true
|
|
|
|
use_compression = true
|
|
|
|
|
|
|
|
[web03]
|
|
|
|
type = http
|
|
|
|
local_ip = 127.0.0.1
|
|
|
|
local_port = 10704
|
|
|
|
custom_domains = test3.frp.com
|
|
|
|
use_encryption = true
|
|
|
|
use_compression = true
|
|
|
|
host_header_rewrite = test3.frp.com
|
|
|
|
locations = /,/foo
|
|
|
|
|
|
|
|
[web04]
|
|
|
|
type = http
|
|
|
|
local_ip = 127.0.0.1
|
|
|
|
local_port = 10704
|
|
|
|
custom_domains = test3.frp.com
|
|
|
|
use_encryption = true
|
|
|
|
use_compression = true
|
|
|
|
host_header_rewrite = test3.frp.com
|
|
|
|
locations = /bar
|
|
|
|
|
|
|
|
[web05]
|
|
|
|
type = http
|
|
|
|
local_ip = 127.0.0.1
|
|
|
|
local_port = 10704
|
|
|
|
custom_domains = test5.frp.com
|
|
|
|
host_header_rewrite = test5.frp.com
|
|
|
|
use_encryption = true
|
|
|
|
use_compression = true
|
|
|
|
http_user = test
|
|
|
|
http_user = test
|
2018-01-18 14:53:44 +08:00
|
|
|
|
2018-05-20 23:55:22 +08:00
|
|
|
[web06]
|
|
|
|
type = http
|
|
|
|
local_ip = 127.0.0.1
|
|
|
|
local_port = 10704
|
|
|
|
custom_domains = test6.frp.com
|
|
|
|
host_header_rewrite = test6.frp.com
|
|
|
|
header_X-From-Where = frp
|
|
|
|
|
2020-03-05 21:47:49 +08:00
|
|
|
[tcpmuxhttpconnect]
|
|
|
|
type = tcpmux
|
|
|
|
multiplexer = httpconnect
|
|
|
|
local_ip = 127.0.0.1
|
|
|
|
local_port = 10701
|
|
|
|
custom_domains = tunnel1
|
|
|
|
|
2019-03-15 16:22:41 +08:00
|
|
|
[wildcard_http]
|
|
|
|
type = http
|
|
|
|
local_ip = 127.0.0.1
|
|
|
|
local_port = 10704
|
|
|
|
custom_domains = *.frp1.com
|
|
|
|
|
2018-01-22 14:16:46 +08:00
|
|
|
[subhost01]
|
|
|
|
type = http
|
|
|
|
local_ip = 127.0.0.1
|
|
|
|
local_port = 10704
|
|
|
|
subdomain = test01
|
|
|
|
|
|
|
|
[subhost02]
|
|
|
|
type = http
|
|
|
|
local_ip = 127.0.0.1
|
|
|
|
local_port = 10704
|
|
|
|
subdomain = test02
|
|
|
|
|
2018-01-18 14:53:44 +08:00
|
|
|
[tcp_port_not_allowed]
|
|
|
|
type = tcp
|
|
|
|
local_ip = 127.0.0.1
|
|
|
|
local_port = 10701
|
|
|
|
remote_port = 20001
|
|
|
|
|
|
|
|
[tcp_port_unavailable]
|
|
|
|
type =tcp
|
|
|
|
local_ip = 127.0.0.1
|
|
|
|
local_port = 10701
|
|
|
|
remote_port = 10700
|
|
|
|
|
|
|
|
[tcp_port_normal]
|
|
|
|
type = tcp
|
|
|
|
local_ip = 127.0.0.1
|
|
|
|
local_port = 10701
|
|
|
|
remote_port = 20002
|
|
|
|
|
|
|
|
[tcp_random_port]
|
|
|
|
type = tcp
|
|
|
|
local_ip = 127.0.0.1
|
|
|
|
local_port = 10701
|
|
|
|
remote_port = 0
|
|
|
|
|
|
|
|
[udp_port_not_allowed]
|
|
|
|
type = udp
|
|
|
|
local_ip = 127.0.0.1
|
|
|
|
local_port = 10702
|
|
|
|
remote_port = 20001
|
|
|
|
|
|
|
|
[udp_port_normal]
|
|
|
|
type = udp
|
|
|
|
local_ip = 127.0.0.1
|
|
|
|
local_port = 10702
|
|
|
|
remote_port = 20002
|
|
|
|
|
|
|
|
[udp_random_port]
|
|
|
|
type = udp
|
|
|
|
local_ip = 127.0.0.1
|
|
|
|
local_port = 10702
|
|
|
|
remote_port = 0
|
2018-01-23 17:11:59 +08:00
|
|
|
|
|
|
|
[http_proxy]
|
|
|
|
type = tcp
|
|
|
|
plugin = http_proxy
|
|
|
|
remote_port = 0
|
2018-01-29 23:13:10 +08:00
|
|
|
|
|
|
|
[range:range_tcp]
|
|
|
|
type = tcp
|
|
|
|
local_ip = 127.0.0.1
|
|
|
|
local_port = 30000-30001,30003
|
|
|
|
remote_port = 30000-30001,30003
|