auto_test_frpc.ini 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199
  1. [common]
  2. server_addr = 127.0.0.1
  3. server_port = 10700
  4. log_file = console
  5. # debug, info, warn, error
  6. log_level = debug
  7. 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. [tcp_group1]
  24. type = tcp
  25. local_ip = 127.0.0.1
  26. local_port = 10701
  27. remote_port = 10802
  28. group = test1
  29. group_key = 123
  30. [tcp_group2]
  31. type = tcp
  32. local_ip = 127.0.0.1
  33. local_port = 10702
  34. remote_port = 10802
  35. group = test1
  36. group_key = 123
  37. [udp_normal]
  38. type = udp
  39. local_ip = 127.0.0.1
  40. local_port = 10702
  41. remote_port = 10802
  42. [udp_ec]
  43. type = udp
  44. local_ip = 127.0.0.1
  45. local_port = 10702
  46. remote_port = 10902
  47. use_encryption = true
  48. use_compression = true
  49. [unix_domain]
  50. type = tcp
  51. remote_port = 10803
  52. plugin = unix_domain_socket
  53. plugin_unix_path = /tmp/frp_echo_server.sock
  54. [stcp]
  55. type = stcp
  56. sk = abcdefg
  57. local_ip = 127.0.0.1
  58. local_port = 10701
  59. [stcp_ec]
  60. type = stcp
  61. sk = abc
  62. local_ip = 127.0.0.1
  63. local_port = 10701
  64. use_encryption = true
  65. use_compression = true
  66. [web01]
  67. type = http
  68. local_ip = 127.0.0.1
  69. local_port = 10704
  70. custom_domains = 127.0.0.1
  71. [web02]
  72. type = http
  73. local_ip = 127.0.0.1
  74. local_port = 10704
  75. custom_domains = test2.frp.com
  76. host_header_rewrite = test2.frp.com
  77. use_encryption = true
  78. use_compression = true
  79. [web03]
  80. type = http
  81. local_ip = 127.0.0.1
  82. local_port = 10704
  83. custom_domains = test3.frp.com
  84. use_encryption = true
  85. use_compression = true
  86. host_header_rewrite = test3.frp.com
  87. locations = /,/foo
  88. [web04]
  89. type = http
  90. local_ip = 127.0.0.1
  91. local_port = 10704
  92. custom_domains = test3.frp.com
  93. use_encryption = true
  94. use_compression = true
  95. host_header_rewrite = test3.frp.com
  96. locations = /bar
  97. [web05]
  98. type = http
  99. local_ip = 127.0.0.1
  100. local_port = 10704
  101. custom_domains = test5.frp.com
  102. host_header_rewrite = test5.frp.com
  103. use_encryption = true
  104. use_compression = true
  105. http_user = test
  106. http_user = test
  107. [web06]
  108. type = http
  109. local_ip = 127.0.0.1
  110. local_port = 10704
  111. custom_domains = test6.frp.com
  112. host_header_rewrite = test6.frp.com
  113. header_X-From-Where = frp
  114. [wildcard_http]
  115. type = http
  116. local_ip = 127.0.0.1
  117. local_port = 10704
  118. custom_domains = *.frp1.com
  119. [subhost01]
  120. type = http
  121. local_ip = 127.0.0.1
  122. local_port = 10704
  123. subdomain = test01
  124. [subhost02]
  125. type = http
  126. local_ip = 127.0.0.1
  127. local_port = 10704
  128. subdomain = test02
  129. [tcp_port_not_allowed]
  130. type = tcp
  131. local_ip = 127.0.0.1
  132. local_port = 10701
  133. remote_port = 20001
  134. [tcp_port_unavailable]
  135. type =tcp
  136. local_ip = 127.0.0.1
  137. local_port = 10701
  138. remote_port = 10700
  139. [tcp_port_normal]
  140. type = tcp
  141. local_ip = 127.0.0.1
  142. local_port = 10701
  143. remote_port = 20002
  144. [tcp_random_port]
  145. type = tcp
  146. local_ip = 127.0.0.1
  147. local_port = 10701
  148. remote_port = 0
  149. [udp_port_not_allowed]
  150. type = udp
  151. local_ip = 127.0.0.1
  152. local_port = 10702
  153. remote_port = 20001
  154. [udp_port_normal]
  155. type = udp
  156. local_ip = 127.0.0.1
  157. local_port = 10702
  158. remote_port = 20002
  159. [udp_random_port]
  160. type = udp
  161. local_ip = 127.0.0.1
  162. local_port = 10702
  163. remote_port = 0
  164. [http_proxy]
  165. type = tcp
  166. plugin = http_proxy
  167. remote_port = 0
  168. [range:range_tcp]
  169. type = tcp
  170. local_ip = 127.0.0.1
  171. local_port = 30000-30001,30003
  172. remote_port = 30000-30001,30003