config.json 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. {
  2. "api": {
  3. "services": [
  4. "HandlerService",
  5. "LoggerService",
  6. "StatsService"
  7. ],
  8. "tag": "api"
  9. },
  10. "inbounds": [{
  11. "listen": "127.0.0.1",
  12. "port": 62789,
  13. "protocol": "tunnel",
  14. "settings": {
  15. "rewriteAddress": "127.0.0.1"
  16. },
  17. "tag": "api"
  18. }],
  19. "log": {
  20. "access": "none",
  21. "dnsLog": false,
  22. "error": "",
  23. "loglevel": "warning",
  24. "maskAddress": ""
  25. },
  26. "metrics": {
  27. "listen": "127.0.0.1:11111",
  28. "tag": "metrics_out"
  29. },
  30. "outbounds": [{
  31. "protocol": "freedom",
  32. "settings": {
  33. "domainStrategy": "AsIs"
  34. },
  35. "tag": "direct"
  36. },
  37. {
  38. "protocol": "blackhole",
  39. "settings": {},
  40. "tag": "blocked"
  41. }
  42. ],
  43. "policy": {
  44. "levels": {
  45. "0": {
  46. "statsUserDownlink": true,
  47. "statsUserUplink": true
  48. }
  49. },
  50. "system": {
  51. "statsInboundDownlink": true,
  52. "statsInboundUplink": true,
  53. "statsOutboundDownlink": false,
  54. "statsOutboundUplink": false
  55. }
  56. },
  57. "routing": {
  58. "domainStrategy": "AsIs",
  59. "rules": [{
  60. "inboundTag": [
  61. "api"
  62. ],
  63. "outboundTag": "api",
  64. "type": "field"
  65. },
  66. {
  67. "ip": [
  68. "geoip:private"
  69. ],
  70. "outboundTag": "blocked",
  71. "type": "field"
  72. },
  73. {
  74. "outboundTag": "blocked",
  75. "protocol": [
  76. "bittorrent"
  77. ],
  78. "type": "field"
  79. }
  80. ]
  81. },
  82. "stats": {}
  83. }