traffic.json 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. {
  2. "log": {
  3. "loglevel": "warning",
  4. "error": "./error.log"
  5. },
  6. "api": {
  7. "tag": "api",
  8. "services": ["HandlerService", "LoggerService", "StatsService"]
  9. },
  10. "inbounds": [
  11. {
  12. "tag": "api",
  13. "listen": "127.0.0.1",
  14. "port": 62789,
  15. "protocol": "dokodemo-door",
  16. "settings": {
  17. "address": "127.0.0.1"
  18. }
  19. }
  20. ],
  21. "outbounds": [
  22. {
  23. "protocol": "freedom",
  24. "settings": {}
  25. },
  26. {
  27. "tag": "blocked",
  28. "protocol": "blackhole",
  29. "settings": {}
  30. }
  31. ],
  32. "policy": {
  33. "levels": {
  34. "0": {
  35. "statsUserDownlink": true,
  36. "statsUserUplink": true
  37. }
  38. },
  39. "system": {
  40. "statsInboundDownlink": true,
  41. "statsInboundUplink": true
  42. }
  43. },
  44. "routing": {
  45. "domainStrategy": "IPIfNonMatch",
  46. "rules": [
  47. {
  48. "type": "field",
  49. "inboundTag": ["api"],
  50. "outboundTag": "api"
  51. },
  52. {
  53. "type": "field",
  54. "outboundTag": "blocked",
  55. "ip": ["geoip:private"]
  56. },
  57. {
  58. "type": "field",
  59. "outboundTag": "blocked",
  60. "protocol": ["bittorrent"]
  61. }
  62. ]
  63. },
  64. "stats": {}
  65. }