config_client.json 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. {
  2. "log": {
  3. "loglevel": "warning"
  4. },
  5. "routing": {
  6. "domainStrategy": "AsIs",
  7. "rules": [
  8. {
  9. "type": "field",
  10. "ip": [
  11. "geoip:private"
  12. ],
  13. "outboundTag": "direct"
  14. }
  15. ]
  16. },
  17. "inbounds": [
  18. {
  19. "listen": "127.0.0.1",
  20. "port": "1080",
  21. "protocol": "socks",
  22. "settings": {
  23. "auth": "noauth",
  24. "udp": true,
  25. "ip": "127.0.0.1"
  26. }
  27. },
  28. {
  29. "listen": "127.0.0.1",
  30. "port": "1081",
  31. "protocol": "http"
  32. }
  33. ],
  34. "outbounds": [
  35. {
  36. "protocol": "shadowsocks",
  37. "settings": {
  38. "servers": [
  39. {
  40. "address": "{{ host }}",
  41. "port": 443,
  42. "method": "chacha20-ietf-poly1305",
  43. "password": "{{ password }}"
  44. }
  45. ]
  46. },
  47. "streamSettings": {
  48. "network": "grpc",
  49. "security": "tls",
  50. "grpcSettings": {
  51. "serviceName": "michi"
  52. }
  53. },
  54. "tag": "proxy"
  55. },
  56. {
  57. "protocol": "freedom",
  58. "tag": "direct"
  59. }
  60. ]
  61. }