frpc.ini 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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. # http_proxy = http://user:pwd@192.168.1.128:8080
  9. # console or real logFile path like ./frpc.log
  10. log_file = ./frpc.log
  11. # debug, info, warn, error
  12. log_level = info
  13. log_max_days = 3
  14. # for authentication
  15. auth_token = 123
  16. # for privilege mode
  17. privilege_token = 12345678
  18. # ssh is the proxy name same as server's configuration
  19. [ssh]
  20. # tcp | http, default is tcp
  21. type = tcp
  22. local_ip = 127.0.0.1
  23. local_port = 22
  24. # true or false, if true, messages between frps and frpc will be encrypted, default is false
  25. use_encryption = true
  26. # default is false
  27. use_gzip = false
  28. # connections will be established in advance, default value is zero
  29. pool_count = 10
  30. [dns]
  31. type = udp
  32. local_ip = 127.0.0.1
  33. local_port = 53
  34. use_encryption = true
  35. use_gzip = true
  36. # 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, the domains are set in frps.ini
  37. [web01]
  38. type = http
  39. local_ip = 127.0.0.1
  40. local_port = 80
  41. use_gzip = true
  42. pool_count = 20
  43. # http username and password are safety certification for http protoc
  44. # if not set, you can access this custom_domains without certification
  45. http_username = admin
  46. http_password = admin
  47. [web02]
  48. type = http
  49. local_ip = 127.0.0.1
  50. local_port = 8000
  51. [privilege_ssh]
  52. # if privilege_mode is enabled, this proxy will be created automatically
  53. privilege_mode = true
  54. type = tcp
  55. local_ip = 127.0.0.1
  56. local_port = 22
  57. use_encryption = true
  58. use_gzip = false
  59. remote_port = 6001
  60. [privilege_web]
  61. privilege_mode = true
  62. type = http
  63. local_ip = 127.0.0.1
  64. local_port = 80
  65. use_gzip = true
  66. custom_domains = web03.yourdomain.com
  67. host_header_rewrite = example.com