frpc_full.ini 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  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. # if you want to connect frps by http proxy, you can set http_proxy here or in global environment variables
  8. # it only works when protocol is tcp
  9. # http_proxy = http://user:pwd@192.168.1.128:8080
  10. # console or real logFile path like ./frpc.log
  11. log_file = ./frpc.log
  12. # trace, debug, info, warn, error
  13. log_level = info
  14. log_max_days = 3
  15. # for authentication
  16. privilege_token = 12345678
  17. # connections will be established in advance, default value is zero
  18. pool_count = 5
  19. # if tcp stream multiplexing is used, default is true, it must be same with frps
  20. tcp_mux = true
  21. # your proxy name will be changed to {user}.{proxy}
  22. user = your_name
  23. # decide if exit program when first login failed, otherwise continuous relogin to frps
  24. # default is true
  25. login_fail_exit = true
  26. # communication protocol used to connect to server
  27. # now it supports tcp and kcp, default is tcp
  28. protocol = tcp
  29. # proxy names you want to start divided by ','
  30. # default is empty, means all proxies
  31. # start = ssh,dns
  32. # heartbeat configure, it's not recommended to modify the default value
  33. # the default value of heartbeat_interval is 10 and heartbeat_timeout is 90
  34. # heartbeat_interval = 30
  35. # heartbeat_timeout = 90
  36. # ssh is the proxy name same as server's configuration
  37. # if user in [common] section is not empty, it will be changed to {user}.{proxy} such as your_name.ssh
  38. [ssh]
  39. # tcp | udp | http | https, default is tcp
  40. type = tcp
  41. local_ip = 127.0.0.1
  42. local_port = 22
  43. # true or false, if true, messages between frps and frpc will be encrypted, default is false
  44. use_encryption = false
  45. # if true, message will be compressed
  46. use_compression = false
  47. # remote port listen by frps
  48. remote_port = 6001
  49. [dns]
  50. type = udp
  51. local_ip = 114.114.114.114
  52. local_port = 53
  53. remote_port = 6002
  54. use_encryption = false
  55. use_compression = false
  56. # 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
  57. [web01]
  58. type = http
  59. local_ip = 127.0.0.1
  60. local_port = 80
  61. use_encryption = false
  62. use_compression = true
  63. # http username and password are safety certification for http protocol
  64. # if not set, you can access this custom_domains without certification
  65. http_user = admin
  66. http_pwd = admin
  67. # if domain for frps is frps.com, then you can access [web01] proxy by URL http://test.frps.com
  68. subdomain = web01
  69. custom_domains = web02.yourdomain.com
  70. # locations is only useful for http type
  71. locations = /,/pic
  72. host_header_rewrite = example.com
  73. [web02]
  74. type = https
  75. local_ip = 127.0.0.1
  76. local_port = 8000
  77. use_encryption = false
  78. use_compression = false
  79. subdomain = web01
  80. custom_domains = web02.yourdomain.com
  81. [plugin_unix_domain_socket]
  82. type = tcp
  83. remote_port = 6003
  84. # if plugin is defined, local_ip and local_port is useless
  85. # plugin will handle connections got from frps
  86. plugin = unix_domain_socket
  87. # params set with prefix "plugin_" that plugin needed
  88. plugin_unix_path = /var/run/docker.sock
  89. [plugin_http_proxy]
  90. type = tcp
  91. remote_port = 6004
  92. plugin = http_proxy
  93. plugin_http_user = abc
  94. plugin_http_passwd = abc
  95. [secret_tcp]
  96. # If the type is secret tcp, remote_port is useless
  97. # Who want to connect local port should deploy another frpc with stcp proxy and role is vistor
  98. type = stcp
  99. # sk used for authentication for vistors
  100. sk = abcdefg
  101. local_ip = 127.0.0.1
  102. local_port = 22
  103. use_encryption = false
  104. use_compression = false
  105. [secret_tcp_vistor]
  106. # frpc role vistor -> frps -> frpc role server
  107. role = vistor
  108. type = stcp
  109. sk = abcdefg
  110. bind_addr = 127.0.0.1
  111. bind_port = 9000
  112. use_encryption = false
  113. use_compression = false