imKobz

Untitled

Oct 20th, 2023 (edited)
579
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.51 KB | None | 0 0
  1. {
  2. "log" : {
  3. "access": "/var/log/xray/access.log",
  4. "error": "/var/log/xray/error.log",
  5. "loglevel": "warning"
  6. },
  7. "inbounds": [
  8. {
  9. "listen": "127.0.0.1",
  10. "port": 10000,
  11. "protocol": "dokodemo-door",
  12. "settings": {
  13. "address": "127.0.0.1"
  14. },
  15. "tag": "api"
  16. },
  17. {
  18. "listen": "127.0.0.1",
  19. "port": "10001",
  20. "protocol": "vless",
  21. "settings": {
  22. "decryption":"none",
  23. "clients": [
  24. {
  25. "id": "KobeKobz"
  26. #vless
  27. }
  28. ]
  29. },
  30. "streamSettings":{
  31. "network": "ws",
  32. "wsSettings": {
  33. "path": "/vless"
  34. }
  35. }
  36. },
  37. {
  38. "listen": "127.0.0.1",
  39. "port": "10002",
  40. "protocol": "vmess",
  41. "settings": {
  42. "clients": [
  43. {
  44. "id": "KobeKobz",
  45. "alterId": 0
  46. #vmess
  47. }
  48. ]
  49. },
  50. "streamSettings":{
  51. "network": "ws",
  52. "wsSettings": {
  53. "path": "/vmess"
  54. }
  55. }
  56. },
  57. {
  58. "listen": "127.0.0.1",
  59. "port": "10003",
  60. "protocol": "trojan",
  61. "settings": {
  62. "decryption":"none",
  63. "clients": [
  64. {
  65. "password": "KobeKobz"
  66. #trojanws
  67. }
  68. ],
  69. "udp": true
  70. },
  71. "streamSettings":{
  72. "network": "ws",
  73. "wsSettings": {
  74. "path": "/trojan-ws"
  75. }
  76. }
  77. },
  78. {
  79. "listen": "127.0.0.1",
  80. "port": "10004",
  81. "protocol": "shadowsocks",
  82. "settings": {
  83. "clients": [
  84. {
  85. "method": "aes-128-gcm",
  86. "password": "KobeKobz"
  87. #ssws
  88. }
  89. ],
  90. "network": "tcp,udp"
  91. },
  92. "streamSettings":{
  93. "network": "ws",
  94. "wsSettings": {
  95. "path": "/ss-ws"
  96. }
  97. }
  98. },
  99. {
  100. "listen": "127.0.0.1",
  101. "port": "10005",
  102. "protocol": "vless",
  103. "settings": {
  104. "decryption":"none",
  105. "clients": [
  106. {
  107. "id": "KobeKobz"
  108. #vlessgrpc
  109. }
  110. ]
  111. },
  112. "streamSettings":{
  113. "network": "grpc",
  114. "grpcSettings": {
  115. "serviceName": "vless-grpc"
  116. }
  117. }
  118. },
  119. {
  120. "listen": "127.0.0.1",
  121. "port": "10006",
  122. "protocol": "vmess",
  123. "settings": {
  124. "clients": [
  125. {
  126. "id": "KobeKobz",
  127. "alterId": 0
  128. #vmessgrpc
  129. }
  130. ]
  131. },
  132. "streamSettings":{
  133. "network": "grpc",
  134. "grpcSettings": {
  135. "serviceName": "vmess-grpc"
  136. }
  137. }
  138. },
  139. {
  140. "listen": "127.0.0.1",
  141. "port": "10007",
  142. "protocol": "trojan",
  143. "settings": {
  144. "decryption":"none",
  145. "clients": [
  146. {
  147. "password": "KobeKobz"
  148. #trojangrpc
  149. }
  150. ]
  151. },
  152. "streamSettings":{
  153. "network": "grpc",
  154. "grpcSettings": {
  155. "serviceName": "trojan-grpc"
  156. }
  157. }
  158. },
  159. {
  160. "listen": "127.0.0.1",
  161. "port": "10008",
  162. "protocol": "shadowsocks",
  163. "settings": {
  164. "clients": [
  165. {
  166. "method": "aes-128-gcm",
  167. "password": "KobeKobz"
  168. #ssgrpc
  169. }
  170. ],
  171. "network": "tcp,udp"
  172. },
  173. "streamSettings":{
  174. "network": "grpc",
  175. "grpcSettings": {
  176. "serviceName": "ss-grpc"
  177. }
  178. }
  179. }
  180. ],
  181. "outbounds": [
  182. {
  183. "protocol": "freedom",
  184. "settings": {}
  185. },
  186. {
  187. "protocol": "blackhole",
  188. "settings": {},
  189. "tag": "blocked"
  190. }
  191. ],
  192. "routing": {
  193. "rules": [
  194. {
  195. "type": "field",
  196. "ip": [
  197. "0.0.0.0/8",
  198. "10.0.0.0/8",
  199. "100.64.0.0/10",
  200. "169.254.0.0/16",
  201. "172.16.0.0/12",
  202. "192.0.0.0/24",
  203. "192.0.2.0/24",
  204. "192.168.0.0/16",
  205. "198.18.0.0/15",
  206. "198.51.100.0/24",
  207. "203.0.113.0/24",
  208. "::1/128",
  209. "fc00::/7",
  210. "fe80::/10"
  211. ],
  212. "outboundTag": "blocked"
  213. },
  214. {
  215. "inboundTag": [
  216. "api"
  217. ],
  218. "outboundTag": "api",
  219. "type": "field"
  220. },
  221. {
  222. "type": "field",
  223. "outboundTag": "blocked",
  224. "protocol": [
  225. "bittorrent"
  226. ]
  227. }
  228. ]
  229. },
  230. "stats": {},
  231. "api": {
  232. "services": [
  233. "StatsService"
  234. ],
  235. "tag": "api"
  236. },
  237. "policy": {
  238. "levels": {
  239. "0": {
  240. "statsUserDownlink": true,
  241. "statsUserUplink": true
  242. }
  243. },
  244. "system": {
  245. "statsInboundUplink": true,
  246. "statsInboundDownlink": true,
  247. "statsOutboundUplink" : true,
  248. "statsOutboundDownlink" : true
  249. }
  250. }
  251. }
  252. {
  253. "outbounds": [
  254. {
  255. "protocol": "dns",
  256. "tag": "dns-out"
  257. },
  258. {
  259. "streamSettings": {
  260. "sockopt": {
  261. "mark": 255
  262. }
  263. },
  264. "settings": {
  265. "domainStrategy": "UseIPv4"
  266. },
  267. "protocol": "freedom",
  268. "tag": "direct"
  269. },
  270. {
  271. "protocol": "blackhole",
  272. "tag": "blackhole"
  273. },
  274. {
  275. "settings": {
  276. "servers": [
  277. {
  278. "port": 10000,
  279. "address": "127.0.0.1"
  280. }
  281. ]
  282. },
  283. "streamSettings": {
  284. "network": "tcp",
  285. "security": "none"
  286. },
  287. "protocol": "socks",
  288. "tag": "out"
  289. }
  290. ],
  291. "log": {
  292. "loglevel": "warning"
  293. },
  294. "dns": {
  295. "hosts": {
  296. "tiar.app": "174.138.21.128",
  297. "geosite:category-ads-all": "127.0.0.1"
  298. },
  299. "servers": [
  300. {
  301. "address": "https://doh.tiar.app/dns-query",
  302. "domains": ["geosite:geolocation-!id"],
  303. "expectIPs": ["geoip:!id"]
  304. },
  305. "174.138.21.128",
  306. {
  307. "address": "174.138.21.128",
  308. "port": 53,
  309. "domains": ["geosite:id", "geosite:category-games@id"],
  310. "expectIPs": ["geoip:id"],
  311. "skipFallback": true
  312. },
  313. {
  314. "address": "localhost",
  315. "skipFallback": true
  316. }
  317. ]
  318. },
  319. "routing": {
  320. "rules": [
  321. {
  322. "type": "field",
  323. "outboundTag": "Reject",
  324. "domain": ["geosite:category-ads-all"]
  325. },
  326. {
  327. "type": "field",
  328. "outboundTag": "Direct",
  329. "domain": [
  330. "geosite:private",
  331. "geosite:apple-id",
  332. "geosite:google-id",
  333. "geosite:tld-id",
  334. "geosite:category-games@id"
  335. ]
  336. },
  337. {
  338. "type": "field",
  339. "outboundTag": "Proxy",
  340. "domain": ["geosite:geolocation-!id"]
  341. },
  342. {
  343. "type": "field",
  344. "outboundTag": "Direct",
  345. "domain": ["geosite:id"]
  346. },
  347. {
  348. "type": "field",
  349. "outboundTag": "Proxy",
  350. "network": "tcp,udp"
  351. }
  352. ]
  353. },
  354. "inbounds": [
  355. {
  356. "port": 10000,
  357. "protocol": "dokodemo-door",
  358. "settings": {
  359. "port": 53,
  360. "network": "udp",
  361. "address": "174.138.21.128"
  362. },
  363. "tag": "dns-in",
  364. "listen": "127.0.0.1"
  365. }
  366. ]
  367. }
Add Comment
Please, Sign In to add comment