gost.yml 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192
  1. services:
  2. - name: service-0
  3. addr: ":8080"
  4. interface: eth0
  5. admission: admission-0
  6. bypass: bypass-0
  7. resolver: resolver-0
  8. hosts: hosts-0
  9. handler:
  10. type: http
  11. auth:
  12. username: user
  13. password: pass
  14. auther: auther-0
  15. chain: chain-0
  16. retries: 1
  17. metadata:
  18. foo: bar
  19. bar: baz
  20. listener:
  21. type: tcp
  22. auth:
  23. username: user
  24. password: pass
  25. auther: auther-0
  26. chain: chain-0
  27. tls:
  28. certFile: cert.pem
  29. keyFile: key.pem
  30. caFile: ca.pem
  31. metadata:
  32. abc: xyz
  33. def: 456
  34. forwarder:
  35. nodes:
  36. - name: target-0
  37. addr: 192.168.1.1:1234
  38. - name: target-1
  39. addr: 192.168.1.2:2345
  40. selector:
  41. strategy: rand
  42. maxFails: 1
  43. failTimeout: 30s
  44. chains:
  45. - name: chain-0
  46. selector:
  47. strategy: round
  48. maxFails: 1
  49. failTimeout: 30s
  50. hops:
  51. - name: hop-0
  52. - name: hop-1
  53. interface: 192.168.1.2
  54. selector:
  55. strategy: rand
  56. maxFails: 3
  57. failTimeout: 60s
  58. bypass: bypass-0
  59. nodes:
  60. - name: node-0
  61. addr: ":1080"
  62. interface: eth1
  63. bypass: bypass-0
  64. connector:
  65. type: socks5
  66. auth:
  67. username: user
  68. password: pass
  69. metadata:
  70. foo: bar
  71. dialer:
  72. type: tcp
  73. auth:
  74. username: user
  75. password: pass
  76. tls:
  77. caFile: "ca.pem"
  78. secure: true
  79. serverName: "example.com"
  80. metadata:
  81. bar: baz
  82. hops:
  83. - name: hop-0
  84. interface: 192.168.1.2
  85. selector:
  86. strategy: rand
  87. maxFails: 3
  88. failTimeout: 60s
  89. bypass: bypass-0
  90. nodes:
  91. - name: node-0
  92. addr: ":1080"
  93. interface: eth1
  94. bypass: bypass-0
  95. connector:
  96. type: socks5
  97. auth:
  98. username: user
  99. password: pass
  100. metadata:
  101. foo: bar
  102. dialer:
  103. type: tcp
  104. auth:
  105. username: user
  106. password: pass
  107. tls:
  108. caFile: "ca.pem"
  109. secure: true
  110. serverName: "example.com"
  111. metadata:
  112. bar: baz
  113. tls:
  114. certFile: "cert.pem"
  115. keyFile: "key.pem"
  116. caFile: "ca.pem"
  117. authers:
  118. - name: auther-0
  119. auths:
  120. - username: user1
  121. password: pass1
  122. - username: user2
  123. password: pass2
  124. admissions:
  125. - name: admission-0
  126. whitelist: false
  127. matchers:
  128. - 127.0.0.1
  129. - 192.168.0.0/16
  130. bypasses:
  131. - name: bypass-0
  132. whitelist: false
  133. matchers:
  134. - "*.example.com"
  135. - .example.org
  136. - 0.0.0.0/8
  137. resolvers:
  138. - name: resolver-0
  139. nameservers:
  140. - addr: udp://8.8.8.8:53
  141. chain: chain-0
  142. ttl: 60s
  143. prefer: ipv4
  144. clientIP: 1.2.3.4
  145. timeout: 3s
  146. - addr: tcp://1.1.1.1:53
  147. - addr: tls://1.1.1.1:853
  148. - addr: https://1.0.0.1/dns-query
  149. hostname: cloudflare-dns.com
  150. hosts:
  151. - name: hosts-0
  152. mappings:
  153. - ip: 127.0.0.1
  154. hostname: localhost
  155. - ip: 192.168.1.10
  156. hostname: foo.mydomain.org
  157. aliases:
  158. - foo
  159. - ip: 192.168.1.13
  160. hostname: bar.mydomain.org
  161. aliases:
  162. - bar
  163. - baz
  164. log:
  165. output: stderr
  166. level: debug
  167. format: json
  168. profiling:
  169. addr: ":6060"
  170. api:
  171. addr: ":18080"
  172. pathPrefix: /api
  173. accesslog: true
  174. auth:
  175. username: user
  176. password: pass
  177. auther: auther-0
  178. metrics:
  179. addr: :9000
  180. path: /metrics