enable-traffic+block-IR-IP.txt 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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. "ip": [
  60. "geoip:private",
  61. "geoip:ir"
  62. ],
  63. "outboundTag": "blocked",
  64. "type": "field"
  65. },
  66. {
  67. "outboundTag": "blocked",
  68. "protocol": [
  69. "bittorrent"
  70. ],
  71. "type": "field"
  72. }
  73. ]
  74. },
  75. "stats": {}
  76. }