1
0

config.json 1.5 KB

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