kirikira 7 лет назад
Родитель
Сommit
d08d421f0e
3 измененных файлов с 312 добавлено и 0 удалено
  1. 194 0
      MITM/client.json
  2. 1 0
      MITM/readme.md
  3. 117 0
      MITM/server.json

+ 194 - 0
MITM/client.json

@@ -0,0 +1,194 @@
+{
+  "inbound": {
+    "allowPassive": true,
+    "listen": "127.0.0.1",
+    "port": 10854,
+    "protocol": "socks",
+    "settings": {
+      "auth": "noauth",
+      "udp": true
+    },
+    "tag": "vanillas"
+  },
+  "inboundDetour": [
+    {
+      "listen": "127.0.0.1",
+      "port": 10855,
+      "protocol": "http",
+      "settings": {},
+      "tag": "vanilla"
+    },
+    {
+      "listen": "0.0.0.0",
+      "port": 10856,
+      "tag": "mitm",
+      "protocol": "dokodemo-door",
+      "settings": {
+        "network": "tcp",
+        "timeout": 0,
+        "address": "kiri.moe",
+        "port": 443,
+        "followRedirect": true
+      },
+      "streamSettings": {
+        "security": "tls",
+        "tlsSettings": {
+          "allowInsecure": false,
+          "alpn": [
+            "http/1.1"
+          ],
+          "certificates": [
+            {
+              "usage": "issue",
+              "alpn": [
+                "http/1.1"
+              ],
+              "certificateFile": "/path/to/ca.cer",
+              "keyFile": "/path/to/ca.key"
+            }
+          ]
+        }
+      },
+      "sniffing": {
+        "enabled": false,
+        "destOverride": [
+          "http",
+          "tls"
+        ]
+      }
+    }
+  ],
+  "log": {
+    "access": "",
+    "error": "",
+    "loglevel": "info"
+  },
+  "outbound": {
+    "mux": {
+      "enabled": true
+    },
+    "protocol": "vmess",
+    "proxySettings": {
+      "tag": "proxy"
+    },
+    "settings": {
+      "vnext": [
+        {
+          "address": "YOUR_IP",
+          "port": 11451,
+          "users": [
+            {
+              "alterId": 16,
+              "id": "b4fe5665-cebe-d292-0e66-9139958200f4",
+              "level": 0,
+              "security": "auto"
+            }
+          ]
+        }
+      ]
+    },
+    "streamSettings": {
+      "network": "tcp",
+      "security": "none"
+    }
+  },
+  "outboundDetour": [
+    {
+      "protocol": "freedom",
+      "settings": {},
+      "tag": "direct"
+    },
+    {
+      "protocol": "freedom",
+      "settings": {
+        "redirect": "127.0.0.1:10856"
+      },
+      "tag": "reentry"
+    },
+    {
+      "mux": {
+        "enabled": true
+      },
+      "protocol": "vmess",
+      "proxySettings": {
+        "tag": "proxy"
+      },
+      "settings": {
+        "vnext": [
+          {
+            "address": "YOUR_IP",
+            "port": 11452,
+            "users": [
+              {
+                "alterId": 16,
+                "id": "b4fe5665-cebe-d292-0e66-9139958200f4",
+                "level": 0,
+                "security": "auto"
+              }
+            ]
+          }
+        ]
+      },
+      "streamSettings": {
+        "network": "tcp",
+        "security": "none"
+      },
+      "tag": "notouch"
+    }
+  ],
+  "routing": {
+    "settings": {
+      "rules": [
+        {
+          "ip": [
+            "0.0.0.0/8",
+            "10.0.0.0/8",
+            "100.64.0.0/10",
+            "127.0.0.0/8",
+            "169.254.0.0/16",
+            "172.16.0.0/12",
+            "192.0.0.0/24",
+            "192.0.2.0/24",
+            "192.168.0.0/16",
+            "198.18.0.0/15",
+            "198.51.100.0/24",
+            "203.0.113.0/24",
+            "::1/128",
+            "fc00::/7",
+            "fe80::/10"
+          ],
+          "outboundTag": "direct",
+          "type": "field"
+        },
+        {
+          "inboundTag": [
+            "vanilla",
+            "vanillas"
+          ],
+          "port": "443",
+          "outboundTag": "reentry",
+          "type": "field"
+        },
+        {
+          "inboundTag": [
+            "vanilla",
+            "vanillas"
+          ],
+          "port": "0-442",
+          "outboundTag": "notouch",
+          "type": "field"
+        },
+        {
+          "inboundTag": [
+            "vanilla",
+            "vanillas"
+          ],
+          "port": "444-65535",
+          "outboundTag": "notouch",
+          "type": "field"
+        }
+      ]
+    },
+    "strategy": "rules"
+  }
+}

+ 1 - 0
MITM/readme.md

@@ -0,0 +1 @@
+如您对这个配置分类存在疑问,请移步 <https://kirikira.moe/post/30/>

+ 117 - 0
MITM/server.json

@@ -0,0 +1,117 @@
+{
+  "inbound": {
+    "allowPassive": true,
+    "port": 11451,
+    "protocol": "vmess",
+    "settings": {
+      "clients": [
+        {
+          "alterId": 16,
+          "id": "b4fe5665-cebe-d292-0e66-9139958200f4",
+          "level": 1,
+          "security": "auto"
+        }
+      ]
+    },
+    "streamSettings": {
+      "network": "tcp",
+      "security": "none"
+    }
+  },
+  "inboundDetour": [
+    {
+      "allowPassive": true,
+      "port": 11452,
+      "tag": "notouch",
+      "protocol": "vmess",
+      "settings": {
+        "clients": [
+          {
+            "alterId": 16,
+            "id": "b4fe5665-cebe-d292-0e66-9139958200f4",
+            "level": 1,
+            "security": "auto"
+          }
+        ]
+      },
+      "streamSettings": {
+        "network": "tcp",
+        "security": "none"
+      }
+    }
+  ],
+  "log": {
+    "access": "",
+    "error": "",
+    "loglevel": "info"
+  },
+  "outbound": {
+    "protocol": "freedom",
+    "settings": {
+      "domainStrategy": "AsIs",
+      "timeout": 0
+    },
+    "streamSettings": {
+      "security": "tls",
+      "tlsSettings": {
+        "allowInsecure": false,
+        "alpn": [
+          "http/1.1"
+        ]
+      }
+    }
+  },
+  "outboundDetour": [
+    {
+      "protocol": "blackhole",
+      "settings": {},
+      "tag": "blocked"
+    },
+    {
+      "protocol": "freedom",
+      "tag": "nointercept",
+      "settings": {
+        "domainStrategy": "AsIs",
+        "timeout": 0
+      },
+      "streamSettings": {
+        "security": "none"
+      }
+    }
+  ],
+  "routing": {
+    "settings": {
+      "rules": [
+        {
+          "ip": [
+            "0.0.0.0/8",
+            "10.0.0.0/8",
+            "100.64.0.0/10",
+            "127.0.0.0/8",
+            "169.254.0.0/16",
+            "172.16.0.0/12",
+            "192.0.0.0/24",
+            "192.0.2.0/24",
+            "192.168.0.0/16",
+            "198.18.0.0/15",
+            "198.51.100.0/24",
+            "203.0.113.0/24",
+            "::1/128",
+            "fc00::/7",
+            "fe80::/10"
+          ],
+          "outboundTag": "blocked",
+          "type": "field"
+        },
+        {
+          "inboundTag": [
+            "notouch"
+          ],
+          "outboundTag": "nointercept",
+          "type": "field"
+        }
+      ]
+    },
+    "strategy": "rules"
+  }
+}