mirror of
https://github.com/v2ray/v2ray-core.git
synced 2026-11-19 23:03:08 +00:00
Update config files
This commit is contained in:
1 parent
46b81b7e98
commit
fb1dda5a19
3 files changed
+183
No files matched your search
@@ -25,5 +25,94 @@
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"outboundDetour": [
|
||||||
|
{
|
||||||
|
"protocol": "freedom",
|
||||||
|
"settings": {},
|
||||||
|
"tag": "direct"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"router": {
|
||||||
|
"strategy": "rules",
|
||||||
|
"settings": {
|
||||||
|
"rules": [
|
||||||
|
{
|
||||||
|
"type": "field",
|
||||||
|
"ip": "0.0.0.0/8",
|
||||||
|
"outboundTag": "direct"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "field",
|
||||||
|
"ip": "10.0.0.0/8",
|
||||||
|
"outboundTag": "direct"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "field",
|
||||||
|
"ip": "100.64.0.0/10",
|
||||||
|
"outboundTag": "direct"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "field",
|
||||||
|
"ip": "127.0.0.0/8",
|
||||||
|
"outboundTag": "direct"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "field",
|
||||||
|
"ip": "169.254.0.0/16",
|
||||||
|
"outboundTag": "direct"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "field",
|
||||||
|
"ip": "172.16.0.0/12",
|
||||||
|
"outboundTag": "direct"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "field",
|
||||||
|
"ip": "192.0.0.0/24",
|
||||||
|
"outboundTag": "direct"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "field",
|
||||||
|
"ip": "192.0.2.0/24",
|
||||||
|
"outboundTag": "direct"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "field",
|
||||||
|
"ip": "192.168.0.0/16",
|
||||||
|
"outboundTag": "direct"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "field",
|
||||||
|
"ip": "198.18.0.0/15",
|
||||||
|
"outboundTag": "direct"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "field",
|
||||||
|
"ip": "198.51.100.0/24",
|
||||||
|
"outboundTag": "direct"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "field",
|
||||||
|
"ip": "203.0.113.0/24",
|
||||||
|
"outboundTag": "direct"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "field",
|
||||||
|
"ip": "::1/128",
|
||||||
|
"outboundTag": "direct"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "field",
|
||||||
|
"ip": "fc00::/7",
|
||||||
|
"outboundTag": "direct"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "field",
|
||||||
|
"ip": "fe80::/10",
|
||||||
|
"outboundTag": "direct"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -21,5 +21,94 @@
|
|||||||
"outbound": {
|
"outbound": {
|
||||||
"protocol": "freedom",
|
"protocol": "freedom",
|
||||||
"settings": {}
|
"settings": {}
|
||||||
|
},
|
||||||
|
"outboundDetour": [
|
||||||
|
{
|
||||||
|
"protocol": "blackhole",
|
||||||
|
"settings": {},
|
||||||
|
"tag": "blocked"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"router": {
|
||||||
|
"strategy": "rules",
|
||||||
|
"settings": {
|
||||||
|
"rules": [
|
||||||
|
{
|
||||||
|
"type": "field",
|
||||||
|
"ip": "0.0.0.0/8",
|
||||||
|
"outboundTag": "blocked"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "field",
|
||||||
|
"ip": "10.0.0.0/8",
|
||||||
|
"outboundTag": "blocked"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "field",
|
||||||
|
"ip": "100.64.0.0/10",
|
||||||
|
"outboundTag": "blocked"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "field",
|
||||||
|
"ip": "127.0.0.0/8",
|
||||||
|
"outboundTag": "blocked"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "field",
|
||||||
|
"ip": "169.254.0.0/16",
|
||||||
|
"outboundTag": "blocked"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "field",
|
||||||
|
"ip": "172.16.0.0/12",
|
||||||
|
"outboundTag": "blocked"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "field",
|
||||||
|
"ip": "192.0.0.0/24",
|
||||||
|
"outboundTag": "blocked"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "field",
|
||||||
|
"ip": "192.0.2.0/24",
|
||||||
|
"outboundTag": "blocked"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "field",
|
||||||
|
"ip": "192.168.0.0/16",
|
||||||
|
"outboundTag": "blocked"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "field",
|
||||||
|
"ip": "198.18.0.0/15",
|
||||||
|
"outboundTag": "blocked"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "field",
|
||||||
|
"ip": "198.51.100.0/24",
|
||||||
|
"outboundTag": "blocked"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "field",
|
||||||
|
"ip": "203.0.113.0/24",
|
||||||
|
"outboundTag": "blocked"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "field",
|
||||||
|
"ip": "::1/128",
|
||||||
|
"outboundTag": "blocked"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "field",
|
||||||
|
"ip": "fc00::/7",
|
||||||
|
"outboundTag": "blocked"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "field",
|
||||||
|
"ip": "fe80::/10",
|
||||||
|
"outboundTag": "blocked"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -9,9 +9,14 @@ import (
|
|||||||
"github.com/v2ray/v2ray-core"
|
"github.com/v2ray/v2ray-core"
|
||||||
"github.com/v2ray/v2ray-core/app/point"
|
"github.com/v2ray/v2ray-core/app/point"
|
||||||
jsonconf "github.com/v2ray/v2ray-core/app/point/config/json"
|
jsonconf "github.com/v2ray/v2ray-core/app/point/config/json"
|
||||||
|
_ "github.com/v2ray/v2ray-core/app/router/config/json"
|
||||||
|
_ "github.com/v2ray/v2ray-core/app/router/rules"
|
||||||
|
_ "github.com/v2ray/v2ray-core/app/router/rules/config/json"
|
||||||
"github.com/v2ray/v2ray-core/common/log"
|
"github.com/v2ray/v2ray-core/common/log"
|
||||||
|
|
||||||
// The following are neccesary as they register handlers in their init functions.
|
// The following are neccesary as they register handlers in their init functions.
|
||||||
|
_ "github.com/v2ray/v2ray-core/proxy/blackhole"
|
||||||
|
_ "github.com/v2ray/v2ray-core/proxy/blackhole/config/json"
|
||||||
_ "github.com/v2ray/v2ray-core/proxy/dokodemo"
|
_ "github.com/v2ray/v2ray-core/proxy/dokodemo"
|
||||||
_ "github.com/v2ray/v2ray-core/proxy/dokodemo/config/json"
|
_ "github.com/v2ray/v2ray-core/proxy/dokodemo/config/json"
|
||||||
_ "github.com/v2ray/v2ray-core/proxy/freedom"
|
_ "github.com/v2ray/v2ray-core/proxy/freedom"
|
||||||
|
|||||||
Reference in new issue
Block a user