frpc_full.ini 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  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. # set admin address for control frpc's action by http api such as reload
  18. admin_addr = 127.0.0.1
  19. admin_port = 7400
  20. admin_user = admin
  21. admin_pwd = admin
  22. # connections will be established in advance, default value is zero
  23. pool_count = 5
  24. # if tcp stream multiplexing is used, default is true, it must be same with frps
  25. tcp_mux = true
  26. # your proxy name will be changed to {user}.{proxy}
  27. user = your_name
  28. # decide if exit program when first login failed, otherwise continuous relogin to frps
  29. # default is true
  30. login_fail_exit = true
  31. # communication protocol used to connect to server
  32. # now it supports tcp and kcp, default is tcp
  33. protocol = tcp
  34. # proxy names you want to start divided by ','
  35. # default is empty, means all proxies
  36. # start = ssh,dns
  37. # heartbeat configure, it's not recommended to modify the default value
  38. # the default value of heartbeat_interval is 10 and heartbeat_timeout is 90
  39. # heartbeat_interval = 30
  40. # heartbeat_timeout = 90
  41. # ssh is the proxy name same as server's configuration
  42. # if user in [common] section is not empty, it will be changed to {user}.{proxy} such as your_name.ssh
  43. [ssh]
  44. # tcp | udp | http | https, default is tcp
  45. type = tcp
  46. local_ip = 127.0.0.1
  47. local_port = 22
  48. # true or false, if true, messages between frps and frpc will be encrypted, default is false
  49. use_encryption = false
  50. # if true, message will be compressed
  51. use_compression = false
  52. # remote port listen by frps
  53. remote_port = 6001
  54. [ssh_random]
  55. type = tcp
  56. local_ip = 127.0.0.1
  57. local_port = 22
  58. # if remote_port is 0, frps will assgin a random port for you
  59. remote_port = 0
  60. [dns]
  61. type = udp
  62. local_ip = 114.114.114.114
  63. local_port = 53
  64. remote_port = 6002
  65. use_encryption = false
  66. use_compression = false
  67. # 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
  68. [web01]
  69. type = http
  70. local_ip = 127.0.0.1
  71. local_port = 80
  72. use_encryption = false
  73. use_compression = true
  74. # http username and password are safety certification for http protocol
  75. # if not set, you can access this custom_domains without certification
  76. http_user = admin
  77. http_pwd = admin
  78. # if domain for frps is frps.com, then you can access [web01] proxy by URL http://test.frps.com
  79. subdomain = web01
  80. custom_domains = web02.yourdomain.com
  81. # locations is only available for http type
  82. locations = /,/pic
  83. host_header_rewrite = example.com
  84. [web02]
  85. type = https
  86. local_ip = 127.0.0.1
  87. local_port = 8000
  88. use_encryption = false
  89. use_compression = false
  90. subdomain = web01
  91. custom_domains = web02.yourdomain.com
  92. [plugin_unix_domain_socket]
  93. type = tcp
  94. remote_port = 6003
  95. # if plugin is defined, local_ip and local_port is useless
  96. # plugin will handle connections got from frps
  97. plugin = unix_domain_socket
  98. # params set with prefix "plugin_" that plugin needed
  99. plugin_unix_path = /var/run/docker.sock
  100. [plugin_http_proxy]
  101. type = tcp
  102. remote_port = 6004
  103. plugin = http_proxy
  104. plugin_http_user = abc
  105. plugin_http_passwd = abc
  106. [secret_tcp]
  107. # If the type is secret tcp, remote_port is useless
  108. # Who want to connect local port should deploy another frpc with stcp proxy and role is visitor
  109. type = stcp
  110. # sk used for authentication for visitors
  111. sk = abcdefg
  112. local_ip = 127.0.0.1
  113. local_port = 22
  114. use_encryption = false
  115. use_compression = false
  116. # user of frpc should be same in both stcp server and stcp visitor
  117. [secret_tcp_visitor]
  118. # frpc role visitor -> frps -> frpc role server
  119. role = visitor
  120. type = stcp
  121. # the server name you want to visitor
  122. server_name = secret_tcp
  123. sk = abcdefg
  124. # connect this address to visitor stcp server
  125. bind_addr = 127.0.0.1
  126. bind_port = 9000
  127. use_encryption = false
  128. use_compression = false
  129. [p2p_tcp]
  130. type = xtcp
  131. sk = abcdefg
  132. local_ip = 127.0.0.1
  133. local_port = 22
  134. use_encryption = false
  135. use_compression = false
  136. [p2p_tcp_visitor]
  137. role = visitor
  138. type = xtcp
  139. server_name = p2p_tcp
  140. sk = abcdefg
  141. bind_addr = 127.0.0.1
  142. bind_port = 9001
  143. use_encryption = false
  144. use_compression = false