123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389 |
- [common]
- server_addr = 0.0.0.0
- server_port = 7000
- log_file = ./frpc.log
- log_level = info
- log_max_days = 3
- disable_log_color = false
- authenticate_heartbeats = false
- authenticate_new_work_conns = false
- token = 12345678
- authentication_method =
- oidc_client_id =
- oidc_client_secret =
- oidc_audience =
- oidc_scope =
- oidc_token_endpoint_url =
- admin_addr = 127.0.0.1
- admin_port = 7400
- admin_user = admin
- admin_pwd = admin
- pool_count = 5
- user = your_name
- login_fail_exit = true
- protocol = tcp
- connect_server_local_ip = 0.0.0.0
- tls_enable = true
- meta_var1 = 123
- meta_var2 = 234
- udp_packet_size = 1500
- disable_custom_tls_first_byte = true
- pprof_enable = false
- [ssh]
- type = tcp
- local_ip = 127.0.0.1
- local_port = 22
- bandwidth_limit = 1MB
- bandwidth_limit_mode = client
- 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
- meta_var1 = 123
- meta_var2 = 234
- [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 = web01.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 = web02
- custom_domains = web02.yourdomain.com
- proxy_protocol_version = v2
- [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
- [plugin_https2http]
- type = https
- custom_domains = test.yourdomain.com
- plugin = https2http
- plugin_local_addr = 127.0.0.1:80
- plugin_crt_path = ./server.crt
- plugin_key_path = ./server.key
- plugin_host_header_rewrite = 127.0.0.1
- plugin_header_X-From-Where = frp
- [plugin_https2https]
- type = https
- custom_domains = test.yourdomain.com
- plugin = https2https
- plugin_local_addr = 127.0.0.1:443
- plugin_crt_path = ./server.crt
- plugin_key_path = ./server.key
- plugin_host_header_rewrite = 127.0.0.1
- plugin_header_X-From-Where = frp
- [plugin_http2https]
- type = http
- custom_domains = test.yourdomain.com
- plugin = http2https
- plugin_local_addr = 127.0.0.1:443
- plugin_host_header_rewrite = 127.0.0.1
- plugin_header_X-From-Where = frp
- [secret_tcp]
- type = stcp
- sk = abcdefg
- local_ip = 127.0.0.1
- local_port = 22
- use_encryption = false
- use_compression = false
- allow_users = *
- [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
- allow_users = user1, user2
- [p2p_tcp_visitor]
- role = visitor
- type = xtcp
- server_user = user1
- server_name = p2p_tcp
- sk = abcdefg
- bind_addr = 127.0.0.1
- bind_port = 9001
- use_encryption = false
- use_compression = false
- keep_tunnel_open = false
- max_retries_an_hour = 8
- min_retry_interval = 90
- [tcpmuxhttpconnect]
- type = tcpmux
- multiplexer = httpconnect
- local_ip = 127.0.0.1
- local_port = 10701
- custom_domains = tunnel1
|