frpc_full.ini 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  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. [dns]
  55. type = udp
  56. local_ip = 114.114.114.114
  57. local_port = 53
  58. remote_port = 6002
  59. use_encryption = false
  60. use_compression = false
  61. # 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
  62. [web01]
  63. type = http
  64. local_ip = 127.0.0.1
  65. local_port = 80
  66. use_encryption = false
  67. use_compression = true
  68. # http username and password are safety certification for http protocol
  69. # if not set, you can access this custom_domains without certification
  70. http_user = admin
  71. http_pwd = admin
  72. # if domain for frps is frps.com, then you can access [web01] proxy by URL http://test.frps.com
  73. subdomain = web01
  74. custom_domains = web02.yourdomain.com
  75. # locations is only useful for http type
  76. locations = /,/pic
  77. host_header_rewrite = example.com
  78. [web02]
  79. type = https
  80. local_ip = 127.0.0.1
  81. local_port = 8000
  82. use_encryption = false
  83. use_compression = false
  84. subdomain = web01
  85. custom_domains = web02.yourdomain.com
  86. [plugin_unix_domain_socket]
  87. type = tcp
  88. remote_port = 6003
  89. # if plugin is defined, local_ip and local_port is useless
  90. # plugin will handle connections got from frps
  91. plugin = unix_domain_socket
  92. # params set with prefix "plugin_" that plugin needed
  93. plugin_unix_path = /var/run/docker.sock
  94. [plugin_http_proxy]
  95. type = tcp
  96. remote_port = 6004
  97. plugin = http_proxy
  98. plugin_http_user = abc
  99. plugin_http_passwd = abc
  100. [secret_tcp]
  101. # If the type is secret tcp, remote_port is useless
  102. # Who want to connect local port should deploy another frpc with stcp proxy and role is vistor
  103. type = stcp
  104. # sk used for authentication for vistors
  105. sk = abcdefg
  106. local_ip = 127.0.0.1
  107. local_port = 22
  108. use_encryption = false
  109. use_compression = false
  110. # user of frpc should be same in both stcp server and stcp vistor
  111. [secret_tcp_vistor]
  112. # frpc role vistor -> frps -> frpc role server
  113. role = vistor
  114. type = stcp
  115. # the server name you want to vistor
  116. server_name = secret_tcp
  117. sk = abcdefg
  118. # connect this address to vistor stcp server
  119. bind_addr = 127.0.0.1
  120. bind_port = 9000
  121. use_encryption = false
  122. use_compression = false
  123. [p2p_tcp]
  124. type = xtcp
  125. sk = abcdefg
  126. local_ip = 127.0.0.1
  127. local_port = 22
  128. use_encryption = false
  129. use_compression = false
  130. [p2p_tcp_vistor]
  131. role = vistor
  132. type = xtcp
  133. server_name = p2p_tcp
  134. sk = abcdefg
  135. bind_addr = 127.0.0.1
  136. bind_port = 9001
  137. use_encryption = false
  138. use_compression = false