Browse Source

update default config

Darien Raymond 6 years ago
parent
commit
cb6376ec27
1 changed files with 22 additions and 6 deletions
  1. 22 6
      release/config/config.json

+ 22 - 6
release/config/config.json

@@ -31,6 +31,13 @@
       "auth": "noauth",
       "auth": "noauth",
       "udp": false,
       "udp": false,
       "ip": "127.0.0.1"
       "ip": "127.0.0.1"
+    },
+
+    // Enable sniffing on TCP connection.
+    "sniffing": {
+      "enable": true,
+      // Target domain will be overriden to the one carried by the connection, if the connection is HTTP or HTTPS.
+      "destOverride": ["http", "tls"]
     }
     }
   }],
   }],
   // List of outbound proxy configurations.
   // List of outbound proxy configurations.
@@ -56,11 +63,20 @@
   // Routing controls how traffic from inbounds are sent to outbounds.
   // Routing controls how traffic from inbounds are sent to outbounds.
   "routing": {
   "routing": {
     "domainStrategy": "IPOnDemand",
     "domainStrategy": "IPOnDemand",
-    "rules":[{
-      "type": "field",
-      "ip": ["geoip:private"],
-      "outboundTag": "blocked"
-    }]
+    "rules":[
+      {
+        // Blocks access to private IPs. Remove this if you want to access your router.
+        "type": "field",
+        "ip": ["geoip:private"],
+        "outboundTag": "blocked"
+      },
+      {
+        // Blocks major ads.
+        "type": "field",
+        "domain": ["geosite:category-ads"],
+        "outboundTag": "blocked"
+      }
+    ]
   },
   },
 
 
   // Dns settings for domain resolution.
   // Dns settings for domain resolution.
@@ -69,7 +85,7 @@
     "hosts": {
     "hosts": {
       // Blacklist all Baidu domains, including all sub domains.
       // Blacklist all Baidu domains, including all sub domains.
       "domain:baidu.com": "127.0.0.1",
       "domain:baidu.com": "127.0.0.1",
-      "domain:v2ray.com": "104.27.154.107"
+      "domain:v2ray.com": "104.27.154.107",
     },
     },
     "servers": [
     "servers": [
       {
       {