Advertisement
Guest User

Untitled

a guest
Apr 20th, 2024
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.24 KB | None | 0 0
  1. Client Config:
  2. trojan://trojanpassword=@x.x.x.x:4436?security=reality&sni=example.com&allowInsecure=1&fp=chrome&pbk=o7X3l4HUar_V59iL4T-VItzwMZUSLN_H0beSHJ9kVXw&type=tcp#trojan_conf
  3.  
  4. Server Config:
  5. {
  6. "log": {
  7. "loglevel": "debug",
  8. "access": "/logs/xray-access.log",
  9. "error": "/logs/xray-error.log",
  10. "dnsLog": false
  11. },
  12. "stats": {},
  13. "api": {
  14. "tag": "api",
  15. "services": [
  16. "StatsService"
  17. ]
  18. },
  19. "policy": {
  20. "levels": {
  21. "0": {
  22. "statsUserUplink": true,
  23. "statsUserDownlink": true
  24. }
  25. }
  26. },
  27. "dns": {
  28. "servers": [
  29. "1.1.1.1"
  30. ]
  31. },
  32. "inbounds": [
  33. {
  34. "listen": "0.0.0.0",
  35. "port": 4436,
  36. "protocol": "trojan",
  37. "settings": {
  38. "clients": [
  39. {
  40. "password": "<xray generated password>=",
  41. "email": "exampleuser"
  42. }
  43. ]
  44. },
  45. "streamSettings": {
  46. "network": "tcp",
  47. "security": "reality",
  48. "realitySettings": {
  49. "show": false,
  50. "dest": "example.com:443",
  51. "serverNames": [
  52. "example.com",
  53. "www.example.com"
  54. ],
  55. "xver": 0,
  56. "privateKey": "<xray generated private key>",
  57. "maxTimeDiff": 0,
  58. "shortIds": [""]
  59. }
  60. }
  61. },
  62. {
  63. "listen": "0.0.0.0",
  64. "port": 4437,
  65. "protocol": "vless",
  66. "settings": {
  67. "decryption": "none",
  68. "clients": [
  69. {
  70. "flow": "xtls-rprx-vision",
  71. "email": "exampleuser",
  72. "id": "<xray generated id>"
  73. }
  74. ]
  75. },
  76. "streamSettings": {
  77. "network": "tcp",
  78. "security": "reality",
  79. "realitySettings": {
  80. "show": false,
  81. "dest": "example.com:443",
  82. "serverNames": [
  83. "example.com",
  84. "www.example.com"
  85. ],
  86. "xver": 0,
  87. "privateKey": "<xray generated privkey>",
  88. "maxTimeDiff": 0,
  89. "shortIds": [""]
  90. }
  91. }
  92. },
  93. {
  94. "listen": "0.0.0.0",
  95. "port": 4438,
  96. "protocol": "vmess",
  97. "settings": {
  98. "clients": [
  99. {
  100. "flow": "xtls-rprx-vision",
  101. "email": "exampleuser",
  102. "id": "<generated id>",
  103. "level": 0
  104. }
  105. ]
  106. },
  107. "streamSettings": {
  108. "network": "tcp",
  109. "security": "reality",
  110. "realitySettings": {
  111. "show": false,
  112. "dest": "example.com:443",
  113. "serverNames": [
  114. "example.com",
  115. "www.example.com"
  116. ],
  117. "xver": 0,
  118. "privateKey": "<xray generated privkey>",
  119. "maxTimeDiff": 0,
  120. "shortIds": [""]
  121. }
  122. }
  123. },
  124. {
  125. "listen": "127.0.0.1",
  126. "port": 10085,
  127. "protocol": "dokodemo-door",
  128. "settings": {
  129. "address": "127.0.0.1"
  130. },
  131. "tag": "api"
  132. }
  133. ],
  134. "outbounds": [
  135. {
  136. "protocol": "freedom",
  137. "tag": "direct"
  138. }
  139. ],
  140. "routing": {
  141. "rules": [
  142. {
  143. "inboundTag": [
  144. "api"
  145. ],
  146. "outboundTag": "api",
  147. "type": "field"
  148. }
  149. ]
  150. }
  151. }
  152.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement