config.json 1.5 KB

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