Guest User

Untitled

a guest
Jul 6th, 2026
1,266
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.82 KB | None | 0 0
  1. SHADOWSOCKS + v2ray plugin
  2.  
  3. server config (VPS SIDE)
  4.  
  5. /etc/shadowsocks-libev/config.json
  6.  
  7. ---------------------------------
  8.  
  9. {
  10. "server": "0.0.0.0",
  11. "server_port": 443,
  12. "password": "YOUR_RANDOM_PASSWORD_HERE",
  13. "timeout": 300,
  14. "method": "chacha20-ietf-poly1305",
  15. "plugin": "v2ray-plugin",
  16. "plugin_opts": "server;tls;host=YOUR_DOMAIN_HERE;cert=/etc/letsencrypt/live/YOUR_DOMAIN_HERE/fullchain.pem;key=/etc/letsencrypt/live/YOUR_DOMAIN_HERE/privkey.pem"
  17. }
  18.  
  19. -------------------------------------------------------------------------
  20.  
  21. CLIENT CONFIG (HOST SIDE)
  22. (store-anywhere)
  23.  
  24. ----------------------
  25. {
  26. "server": "YOUR_DOMAIN_HERE",
  27. "server_port": 443,
  28. "local_address": "127.0.0.1",
  29. "local_port": 1080,
  30. "password": "YOUR_RANDOM_PASSWORD_HERE",
  31. "timeout": 300,
  32. "method": "chacha20-ietf-poly1305",
  33. "plugin": "v2ray-plugin",
  34. "plugin_opts": "tls;host=YOUR_DOMAIN_HERE"
  35. }
  36.  
  37. --------------------------------------------------------------------------
  38.  
  39. turning it into systemd service:
  40. /etc/systemd/system/ss-local.service
  41.  
  42. -------------------
  43. [Unit]
  44. Description=Shadowsocks local client with v2ray-plugin
  45. After=network-online.target
  46. Wants=network-online.target
  47.  
  48. [Service]
  49. ExecStart=/usr/bin/ss-local -c /home/YOUR_LOCAL_USERNAME/ss-client.json
  50. Restart=on-failure
  51. User=YOUR_LOCAL_USERNAME
  52.  
  53. [Install]
  54. WantedBy=multi-user.target
  55.  
  56.  
  57. -------------------------------------------------------------------------------
  58. VLESS + REALITY + XTLS VISION + uTLS Fingerprinting
  59.  
  60. XRAY CONFIG (VPS SIDE)
  61.  
  62. /usr/local/etc/xray/config.json
  63.  
  64. ----------------------------------
  65.  
  66. {
  67. "log": {
  68. "access": "none",
  69. "error": "/var/log/xray/error.log",
  70. "loglevel": "warning",
  71. "maskAddress": "half"
  72. },
  73. "inbounds": [
  74. {
  75. "tag": "vless-reality-443",
  76. "listen": "0.0.0.0",
  77. "port": 443,
  78. "protocol": "vless",
  79. "settings": {
  80. "clients": [
  81. {
  82. "id": "[YOUR-UUID]",
  83. "flow": "xtls-rprx-vision",
  84. "email": "client1"
  85. }
  86. ],
  87. "decryption": "none"
  88. },
  89. "streamSettings": {
  90. "network": "tcp",
  91. "security": "reality",
  92. "realitySettings": {
  93. "show": false,
  94. "dest": "[YOUR-SNI]:443",
  95. "xver": 0,
  96. "serverNames": [
  97. "[YOUR-SNI]"
  98. ],
  99. "privateKey": "[YOUR-REALITY-PRIVATE-KEY]",
  100. "shortIds": [
  101. "[YOUR-SHORT-ID]"
  102. ]
  103. }
  104. },
  105. "sniffing": {
  106. "enabled": true,
  107. "destOverride": [
  108. "http",
  109. "tls",
  110. "quic"
  111. ],
  112. "routeOnly": true
  113. }
  114. }
  115. ],
  116. "outbounds": [
  117. {
  118. "tag": "direct",
  119. "protocol": "freedom"
  120. },
  121. {
  122. "tag": "block",
  123. "protocol": "blackhole"
  124. }
  125. ],
  126. "routing": {
  127. "domainStrategy": "AsIs",
  128. "rules": [
  129. {
  130. "type": "field",
  131. "ip": [
  132. "geoip:private"
  133. ],
  134. "outboundTag": "block"
  135. }
  136. ]
  137. }
  138. }
  139.  
  140. ------------------------------------------------------------------------------------
  141.  
  142. MANUAL sing-box CONFIG FOR YOUR HOST MACHINE
  143.  
  144. /etc/sing-box/config.json
  145.  
  146. ----------------------------
  147.  
  148. {
  149. "log": {
  150. "level": "warn",
  151. "timestamp": true
  152. },
  153. "dns": {
  154. "servers": [
  155. {
  156. "type": "https",
  157. "tag": "cloudflare-doh",
  158. "server": "1.1.1.1",
  159. "server_port": 443,
  160. "path": "/dns-query",
  161. "detour": "proxy"
  162. }
  163. ],
  164. "final": "cloudflare-doh",
  165. "strategy": "ipv4_only"
  166. },
  167. "inbounds": [
  168. {
  169. "type": "tun",
  170. "tag": "tun-in",
  171. "interface_name": "singtun0",
  172. "address": [
  173. "172.19.0.1/30"
  174. ],
  175. "mtu": 1500,
  176. "auto_route": true,
  177. "strict_route": true
  178. }
  179. ],
  180. "outbounds": [
  181. {
  182. "type": "vless",
  183. "tag": "proxy",
  184. "server": "[YOUR-VPS-IP]",
  185. "server_port": 443,
  186. "uuid": "[YOUR-UUID]",
  187. "flow": "xtls-rprx-vision",
  188. "network": "tcp",
  189. "tls": {
  190. "enabled": true,
  191. "server_name": "[YOUR-SNI]",
  192. "utls": {
  193. "enabled": true,
  194. "fingerprint": "chrome"
  195. },
  196. "reality": {
  197. "enabled": true,
  198. "public_key": "[YOUR-REALITY-PUBLIC-KEY]",
  199. "short_id": "[YOUR-SHORT-ID]"
  200. }
  201. },
  202. "packet_encoding": "xudp"
  203. },
  204. {
  205. "type": "direct",
  206. "tag": "direct"
  207. }
  208. ],
  209. "route": {
  210. "auto_detect_interface": true,
  211. "rules": [
  212. {
  213. "action": "sniff"
  214. },
  215. {
  216. "protocol": "dns",
  217. "action": "hijack-dns"
  218. }
  219. ],
  220. "final": "proxy"
  221. }
  222. }
  223.  
  224. ---------------------------------------------------------------------
  225.  
  226.  
Advertisement
Add Comment
Please, Sign In to add comment