1
0

enable-traffic.txt 1.2 KB

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