123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228 |
- [common]
- server_addr = 0.0.0.0
- server_port = 7000
- log_file = ./frpc.log
- log_level = info
- log_max_days = 3
- token = 12345678
- admin_addr = 127.0.0.1
- admin_port = 7400
- admin_user = admin
- admin_pwd = admin
- pool_count = 5
- tcp_mux = true
- user = your_name
- login_fail_exit = true
- protocol = tcp
- [ssh]
- type = tcp
- local_ip = 127.0.0.1
- local_port = 22
- use_encryption = false
- use_compression = false
- remote_port = 6001
- group = test_group
- group_key = 123456
- health_check_type = tcp
- health_check_timeout_s = 3
- health_check_max_failed = 3
- health_check_interval_s = 10
- [ssh_random]
- type = tcp
- local_ip = 127.0.0.1
- local_port = 22
- remote_port = 0
- [range:tcp_port]
- type = tcp
- local_ip = 127.0.0.1
- local_port = 6010-6020,6022,6024-6028
- remote_port = 6010-6020,6022,6024-6028
- use_encryption = false
- use_compression = false
- [dns]
- type = udp
- local_ip = 114.114.114.114
- local_port = 53
- remote_port = 6002
- use_encryption = false
- use_compression = false
- [range:udp_port]
- type = udp
- local_ip = 127.0.0.1
- local_port = 6010-6020
- remote_port = 6010-6020
- use_encryption = false
- use_compression = false
- [web01]
- type = http
- local_ip = 127.0.0.1
- local_port = 80
- use_encryption = false
- use_compression = true
- http_user = admin
- http_pwd = admin
- subdomain = web01
- custom_domains = web02.yourdomain.com
- locations = /,/pic
- host_header_rewrite = example.com
- header_X-From-Where = frp
- health_check_type = http
- health_check_url = /status
- health_check_interval_s = 10
- health_check_max_failed = 3
- health_check_timeout_s = 3
- [web02]
- type = https
- local_ip = 127.0.0.1
- local_port = 8000
- use_encryption = false
- use_compression = false
- subdomain = web01
- custom_domains = web02.yourdomain.com
- [plugin_unix_domain_socket]
- type = tcp
- remote_port = 6003
- plugin = unix_domain_socket
- plugin_unix_path = /var/run/docker.sock
- [plugin_http_proxy]
- type = tcp
- remote_port = 6004
- plugin = http_proxy
- plugin_http_user = abc
- plugin_http_passwd = abc
- [plugin_socks5]
- type = tcp
- remote_port = 6005
- plugin = socks5
- plugin_user = abc
- plugin_passwd = abc
- [plugin_static_file]
- type = tcp
- remote_port = 6006
- plugin = static_file
- plugin_local_path = /var/www/blog
- plugin_strip_prefix = static
- plugin_http_user = abc
- plugin_http_passwd = abc
- [secret_tcp]
- type = stcp
- sk = abcdefg
- local_ip = 127.0.0.1
- local_port = 22
- use_encryption = false
- use_compression = false
- [secret_tcp_visitor]
- role = visitor
- type = stcp
- server_name = secret_tcp
- sk = abcdefg
- bind_addr = 127.0.0.1
- bind_port = 9000
- use_encryption = false
- use_compression = false
- [p2p_tcp]
- type = xtcp
- sk = abcdefg
- local_ip = 127.0.0.1
- local_port = 22
- use_encryption = false
- use_compression = false
- [p2p_tcp_visitor]
- role = visitor
- type = xtcp
- server_name = p2p_tcp
- sk = abcdefg
- bind_addr = 127.0.0.1
- bind_port = 9001
- use_encryption = false
- use_compression = false
|