1
0

auto_test_frpc.ini 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  1. [common]
  2. server_addr = 127.0.0.1
  3. server_port = 10700
  4. log_file = ./frpc.log
  5. # debug, info, warn, error
  6. log_level = debug
  7. privilege_token = 123456
  8. admin_port = 10600
  9. admin_user = abc
  10. admin_pwd = abc
  11. [tcp_normal]
  12. type = tcp
  13. local_ip = 127.0.0.1
  14. local_port = 10701
  15. remote_port = 10801
  16. [tcp_ec]
  17. type = tcp
  18. local_ip = 127.0.0.1
  19. local_port = 10701
  20. remote_port = 10901
  21. use_encryption = true
  22. use_compression = true
  23. [udp_normal]
  24. type = udp
  25. local_ip = 127.0.0.1
  26. local_port = 10702
  27. remote_port = 10802
  28. [udp_ec]
  29. type = udp
  30. local_ip = 127.0.0.1
  31. local_port = 10702
  32. remote_port = 10902
  33. use_encryption = true
  34. use_compression = true
  35. [unix_domain]
  36. type = tcp
  37. remote_port = 10803
  38. plugin = unix_domain_socket
  39. plugin_unix_path = /tmp/frp_echo_server.sock
  40. [stcp]
  41. type = stcp
  42. sk = abcdefg
  43. local_ip = 127.0.0.1
  44. local_port = 10701
  45. [stcp_ec]
  46. type = stcp
  47. sk = abc
  48. local_ip = 127.0.0.1
  49. local_port = 10701
  50. use_encryption = true
  51. use_compression = true
  52. [web01]
  53. type = http
  54. local_ip = 127.0.0.1
  55. local_port = 10704
  56. custom_domains = 127.0.0.1
  57. [web02]
  58. type = http
  59. local_ip = 127.0.0.1
  60. local_port = 10704
  61. custom_domains = test2.frp.com
  62. host_header_rewrite = test2.frp.com
  63. use_encryption = true
  64. use_compression = true
  65. [web03]
  66. type = http
  67. local_ip = 127.0.0.1
  68. local_port = 10704
  69. custom_domains = test3.frp.com
  70. use_encryption = true
  71. use_compression = true
  72. host_header_rewrite = test3.frp.com
  73. locations = /,/foo
  74. [web04]
  75. type = http
  76. local_ip = 127.0.0.1
  77. local_port = 10704
  78. custom_domains = test3.frp.com
  79. use_encryption = true
  80. use_compression = true
  81. host_header_rewrite = test3.frp.com
  82. locations = /bar
  83. [web05]
  84. type = http
  85. local_ip = 127.0.0.1
  86. local_port = 10704
  87. custom_domains = test5.frp.com
  88. host_header_rewrite = test5.frp.com
  89. use_encryption = true
  90. use_compression = true
  91. http_user = test
  92. http_user = test
  93. [subhost01]
  94. type = http
  95. local_ip = 127.0.0.1
  96. local_port = 10704
  97. subdomain = test01
  98. [subhost02]
  99. type = http
  100. local_ip = 127.0.0.1
  101. local_port = 10704
  102. subdomain = test02
  103. [tcp_port_not_allowed]
  104. type = tcp
  105. local_ip = 127.0.0.1
  106. local_port = 10701
  107. remote_port = 20001
  108. [tcp_port_unavailable]
  109. type =tcp
  110. local_ip = 127.0.0.1
  111. local_port = 10701
  112. remote_port = 10700
  113. [tcp_port_normal]
  114. type = tcp
  115. local_ip = 127.0.0.1
  116. local_port = 10701
  117. remote_port = 20002
  118. [tcp_random_port]
  119. type = tcp
  120. local_ip = 127.0.0.1
  121. local_port = 10701
  122. remote_port = 0
  123. [udp_port_not_allowed]
  124. type = udp
  125. local_ip = 127.0.0.1
  126. local_port = 10702
  127. remote_port = 20001
  128. [udp_port_normal]
  129. type = udp
  130. local_ip = 127.0.0.1
  131. local_port = 10702
  132. remote_port = 20002
  133. [udp_random_port]
  134. type = udp
  135. local_ip = 127.0.0.1
  136. local_port = 10702
  137. remote_port = 0
  138. [http_proxy]
  139. type = tcp
  140. plugin = http_proxy
  141. remote_port = 0
  142. [range:range_tcp]
  143. type = tcp
  144. local_ip = 127.0.0.1
  145. local_port = 30000-30001,30003
  146. remote_port = 30000-30001,30003