config_server_domainsocket.json 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. {
  2. "log": {
  3. "loglevel": "warning"
  4. },
  5. "routing": {
  6. "domainStrategy": "AsIs",
  7. "rules": [
  8. {
  9. "type": "field",
  10. "inboundTag": "wsdoko",
  11. "outboundTag": "ssmux"
  12. },
  13. {
  14. "type": "field",
  15. "ip": [
  16. "geoip:private"
  17. ],
  18. "outboundTag": "blocked"
  19. }
  20. ]
  21. },
  22. "inbounds": [
  23. {
  24. "port": 10000,
  25. "listen": "127.0.0.1",
  26. "protocol": "dokodemo-door",
  27. "tag": "wsdoko",
  28. "settings": {
  29. "address": "v1.mux.cool",
  30. "followRedirect": false,
  31. "network": "tcp, udp"
  32. },
  33. "sniffing": {
  34. "enabled": true,
  35. "destOverride": [
  36. "http",
  37. "tls"
  38. ]
  39. },
  40. "streamSettings": {
  41. "network": "ws",
  42. "wsSettings": {
  43. "path": "/michi"
  44. }
  45. }
  46. },
  47. {
  48. "port": 9000,
  49. "protocol": "shadowsocks",
  50. "settings": {
  51. "method": "chacha20-ietf-poly1305",
  52. "ota": false,
  53. "password": "ifYouWantToKeepYourPassphraseSafeChangeThis!!",
  54. "network": "tcp,udp"
  55. },
  56. "streamSettings": {
  57. "network": "domainsocket"
  58. }
  59. }
  60. ],
  61. "outbounds": [
  62. {
  63. "protocol": "freedom",
  64. "settings": {},
  65. "tag": "direct"
  66. },
  67. {
  68. "protocol": "blackhole",
  69. "settings": {},
  70. "tag": "blocked"
  71. },
  72. {
  73. "protocol": "freedom",
  74. "tag": "ssmux",
  75. "streamSettings": {
  76. "network": "domainsocket"
  77. }
  78. }
  79. ],
  80. "dsSettings": {
  81. "path": "/var/run/ss-loop/ss-loop.sock"
  82. }
  83. }