config.json 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  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": "block", "ip": ["geoip:private"] },
  37. { "action": "allow" }
  38. ]
  39. },
  40. "tag": "direct"
  41. },
  42. {
  43. "protocol": "blackhole",
  44. "settings": {},
  45. "tag": "blocked"
  46. }
  47. ],
  48. "policy": {
  49. "levels": {
  50. "0": {
  51. "statsUserDownlink": true,
  52. "statsUserUplink": true
  53. }
  54. },
  55. "system": {
  56. "statsInboundDownlink": true,
  57. "statsInboundUplink": true,
  58. "statsOutboundDownlink": false,
  59. "statsOutboundUplink": false
  60. }
  61. },
  62. "routing": {
  63. "domainStrategy": "AsIs",
  64. "rules": [{
  65. "inboundTag": [
  66. "api"
  67. ],
  68. "outboundTag": "api",
  69. "type": "field"
  70. },
  71. {
  72. "ip": [
  73. "geoip:private"
  74. ],
  75. "outboundTag": "blocked",
  76. "type": "field"
  77. },
  78. {
  79. "outboundTag": "blocked",
  80. "protocol": [
  81. "bittorrent"
  82. ],
  83. "type": "field"
  84. }
  85. ]
  86. },
  87. "stats": {}
  88. }