improve sing-box config and update friend info
This commit is contained in:
@@ -126,7 +126,7 @@
|
||||
{
|
||||
"type": "tun",
|
||||
"tag": "tun-in",
|
||||
"interface_name": "singbox-tun-0",
|
||||
"interface_name": "utun42",
|
||||
"inet4_address": "172.19.0.1/30",
|
||||
"inet6_address": "fdfe:dcba:9876::1/126",
|
||||
"mtu": 9000,
|
||||
|
||||
@@ -357,6 +357,204 @@ This is my personal configuration. Obviously, exposing it to the public network
|
||||
}
|
||||
```
|
||||
|
||||
## MacOS Client
|
||||
|
||||
```json
|
||||
{
|
||||
"log": {
|
||||
"level": "info",
|
||||
"timestamp": true
|
||||
},
|
||||
"dns": {
|
||||
"servers": [
|
||||
{
|
||||
"tag": "dns_proxy",
|
||||
"address": "https://1.1.1.1/dns-query",
|
||||
"address_resolver": "dns_resolver",
|
||||
"strategy": "prefer_ipv6",
|
||||
"detour": "proxy"
|
||||
},
|
||||
{
|
||||
"tag": "dns_direct",
|
||||
"address": "https://dns.alidns.com/dns-query",
|
||||
"address_resolver": "dns_resolver",
|
||||
"strategy": "prefer_ipv6",
|
||||
"detour": "direct"
|
||||
},
|
||||
{
|
||||
"tag": "dns_resolver",
|
||||
"address": "223.5.5.5",
|
||||
"detour": "direct"
|
||||
}
|
||||
],
|
||||
"rules": [
|
||||
{
|
||||
"outbound": "any",
|
||||
"server": "dns_resolver"
|
||||
},
|
||||
{
|
||||
"rule_set": "geosite-geolocation-!cn",
|
||||
"server": "dns_proxy"
|
||||
},
|
||||
{
|
||||
"rule_set": "geosite-cn",
|
||||
"server": "dns_direct"
|
||||
}
|
||||
],
|
||||
"final": "dns_proxy"
|
||||
},
|
||||
"route": {
|
||||
"rule_set": [
|
||||
{
|
||||
"tag": "geosite-geolocation-!cn",
|
||||
"type": "remote",
|
||||
"format": "binary",
|
||||
"url": "https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-geolocation-!cn.srs",
|
||||
"download_detour": "proxy"
|
||||
},
|
||||
{
|
||||
"tag": "geoip-cn",
|
||||
"type": "remote",
|
||||
"format": "binary",
|
||||
"url": "https://raw.githubusercontent.com/SagerNet/sing-geoip/rule-set/geoip-cn.srs",
|
||||
"download_detour": "proxy"
|
||||
},
|
||||
{
|
||||
"tag": "geosite-cn",
|
||||
"type": "remote",
|
||||
"format": "binary",
|
||||
"url": "https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-cn.srs",
|
||||
"download_detour": "proxy"
|
||||
}
|
||||
],
|
||||
"rules": [
|
||||
{
|
||||
"protocol": "dns",
|
||||
"outbound": "dns-out"
|
||||
},
|
||||
{
|
||||
"port": 853,
|
||||
"network": "tcp",
|
||||
"outbound": "block"
|
||||
},
|
||||
{
|
||||
"port": [
|
||||
443,
|
||||
853
|
||||
],
|
||||
"network": "udp",
|
||||
"outbound": "block"
|
||||
},
|
||||
{
|
||||
"type": "logical",
|
||||
"mode": "and",
|
||||
"rules": [
|
||||
{
|
||||
"rule_set": "geoip-cn",
|
||||
"invert": true
|
||||
},
|
||||
{
|
||||
"rule_set": "geosite-geolocation-!cn"
|
||||
}
|
||||
],
|
||||
"outbound": "proxy"
|
||||
},
|
||||
{
|
||||
"type": "logical",
|
||||
"mode": "and",
|
||||
"rules": [
|
||||
{
|
||||
"rule_set": "geoip-cn"
|
||||
},
|
||||
{
|
||||
"rule_set": "geosite-cn"
|
||||
}
|
||||
],
|
||||
"outbound": "direct"
|
||||
},
|
||||
{
|
||||
"rule_set": "geoip-cn",
|
||||
"outbound": "direct"
|
||||
},
|
||||
{
|
||||
"ip_is_private": true,
|
||||
"outbound": "direct"
|
||||
}
|
||||
],
|
||||
"final": "proxy",
|
||||
"auto_detect_interface": true
|
||||
},
|
||||
"inbounds": [
|
||||
{
|
||||
"type": "tun",
|
||||
"tag": "tun-in",
|
||||
"interface_name": "utun42",
|
||||
"inet4_address": "172.19.0.1/30",
|
||||
"inet6_address": "fdfe:dcba:9876::1/126",
|
||||
"mtu": 9000,
|
||||
"auto_route": true,
|
||||
"strict_route": true,
|
||||
"stack": "mixed",
|
||||
"sniff": true
|
||||
}
|
||||
],
|
||||
"outbounds": [
|
||||
{
|
||||
"type": "vless",
|
||||
"tag": "proxy",
|
||||
"server": "154.17.5.35",
|
||||
"server_port": 443,
|
||||
"uuid": "9337d5ec-b489-4bf4-a22c-19f7f6e8fbbd",
|
||||
"flow": "xtls-rprx-vision",
|
||||
"tls": {
|
||||
"enabled": true,
|
||||
"server_name": "portfolio.newschool.edu",
|
||||
"utls": {
|
||||
"enabled": true,
|
||||
"fingerprint": "chrome"
|
||||
},
|
||||
"reality": {
|
||||
"enabled": true,
|
||||
"public_key": "dpU-LTUuyoCyox_4fh5n-h5NCsSSUKXayFsOsfcIzRA",
|
||||
"short_id": "7fcff4362963e98e"
|
||||
}
|
||||
},
|
||||
"multiplex": {
|
||||
"enabled": false,
|
||||
"protocol": "h2mux",
|
||||
"max_streams": 32,
|
||||
"padding": true,
|
||||
"brutal": {
|
||||
"enabled": false,
|
||||
"up_mbps": 1000,
|
||||
"down_mbps": 100
|
||||
}
|
||||
|
||||
},
|
||||
"packet_encoding": "xudp"
|
||||
},
|
||||
{
|
||||
"type": "direct",
|
||||
"tag": "direct"
|
||||
},
|
||||
{
|
||||
"type": "block",
|
||||
"tag": "block"
|
||||
},
|
||||
{
|
||||
"type": "dns",
|
||||
"tag": "dns-out"
|
||||
}
|
||||
],
|
||||
"experimental": {
|
||||
"cache_file": {
|
||||
"enabled": true,
|
||||
"path": "cache.db"
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
## Android Client
|
||||
|
||||
```json
|
||||
@@ -601,7 +799,7 @@ mtr jamesflare.com
|
||||
brew install sing-box
|
||||
wget -c https://www.jamesflare.com/en/get-my-proxy/client-macos.json -O ~/sing-box/config.json
|
||||
|
||||
sing-box run -c ~/sing-box/config.json
|
||||
sudo sing-box run -c ~/sing-box/config.json
|
||||
```
|
||||
|
||||
### Run sing-box Android Client
|
||||
|
||||
@@ -120,7 +120,7 @@ Now, let's fill them into the right place and finish the config. If you want to
|
||||
{
|
||||
"type": "vless",
|
||||
"tag": "vless-in",
|
||||
"listen":"0.0.0.0",
|
||||
"listen": "::",
|
||||
"listen_port": 443,
|
||||
"users": [
|
||||
{
|
||||
@@ -131,11 +131,11 @@ Now, let's fill them into the right place and finish the config. If you want to
|
||||
],
|
||||
"tls": {
|
||||
"enabled": true,
|
||||
"server_name":"www.rpi.edu",
|
||||
"server_name": "portfolio.newschool.edu",
|
||||
"reality": {
|
||||
"enabled": true,
|
||||
"handshake": {
|
||||
"server":"www.rpi.edu",
|
||||
"server": "portfolio.newschool.edu",
|
||||
"server_port": 443
|
||||
},
|
||||
"private_key": "0H5tYLhpDT_r675UC93iWAS2LqN6mPZoDcVDqsff018",
|
||||
@@ -145,7 +145,13 @@ Now, let's fill them into the right place and finish the config. If you want to
|
||||
}
|
||||
},
|
||||
"multiplex": {
|
||||
"enabled":false
|
||||
"enabled": false,
|
||||
"padding": true,
|
||||
"brutal": {
|
||||
"enabled": false,
|
||||
"up_mbps": 1000,
|
||||
"down_mbps": 1000
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
@@ -187,94 +193,211 @@ make sure your value match the server-side information. Here is an example:
|
||||
|
||||
```json
|
||||
{
|
||||
"dns": {
|
||||
"final": "dns_proxy",
|
||||
"rules": [
|
||||
{
|
||||
"outbound": "any",
|
||||
"server": "dns_resolver"
|
||||
},
|
||||
{
|
||||
"rule_set": "geosite-geolocation-!cn",
|
||||
"server": "dns_proxy"
|
||||
},
|
||||
{
|
||||
"rule_set": "geosite-cn",
|
||||
"server": "dns_direct"
|
||||
}
|
||||
],
|
||||
"servers": [
|
||||
{
|
||||
"address": "https://1.1.1.1/dns-query",
|
||||
"address_resolver": "dns_resolver",
|
||||
"detour": "proxy",
|
||||
"strategy": "prefer_ipv6",
|
||||
"tag": "dns_proxy"
|
||||
},
|
||||
{
|
||||
"address": "https://dns.alidns.com/dns-query",
|
||||
"address_resolver": "dns_resolver",
|
||||
"detour": "direct",
|
||||
"strategy": "prefer_ipv6",
|
||||
"tag": "dns_direct"
|
||||
},
|
||||
{
|
||||
"address": "223.5.5.5",
|
||||
"detour": "direct",
|
||||
"tag": "dns_resolver"
|
||||
}
|
||||
]
|
||||
},
|
||||
"experimental": {
|
||||
"cache_file": {
|
||||
"enabled": true,
|
||||
"path": "cache.db"
|
||||
}
|
||||
},
|
||||
"inbounds": [
|
||||
{
|
||||
"auto_route": true,
|
||||
"inet4_address": "172.19.0.1/30",
|
||||
"inet6_address": "fdfe:dcba:9876::1/126",
|
||||
"interface_name": "tun0",
|
||||
"mtu": 9000,
|
||||
"sniff": true,
|
||||
"stack": "mixed",
|
||||
"strict_route": true,
|
||||
"tag": "tun-in",
|
||||
"type": "tun"
|
||||
},
|
||||
{
|
||||
"domain_strategy": "prefer_ipv6",
|
||||
"listen": "::",
|
||||
"listen_port": 1080,
|
||||
"set_system_proxy": false,
|
||||
"sniff": false,
|
||||
"sniff_override_destination": false,
|
||||
"sniff_timeout": "300ms",
|
||||
"tag": "mixed-in",
|
||||
"tcp_fast_open": true,
|
||||
"tcp_multi_path": true,
|
||||
"type": "mixed",
|
||||
"udp_disable_domain_unmapping": false,
|
||||
"udp_fragment": true,
|
||||
"udp_timeout": "5m"
|
||||
}
|
||||
],
|
||||
"log": {
|
||||
"level": "info",
|
||||
"timestamp": true
|
||||
},
|
||||
"dns":{
|
||||
"servers":[
|
||||
{
|
||||
"tag":"cloudflare",
|
||||
"address":"1.1.1.1"
|
||||
}
|
||||
],
|
||||
"rules":[
|
||||
{
|
||||
"outbound":"any",
|
||||
"server":"cloudflare"
|
||||
}
|
||||
],
|
||||
"strategy":"ipv4_only"
|
||||
},
|
||||
"inbounds":[
|
||||
{
|
||||
"type":"tun",
|
||||
"tag":"tun-in",
|
||||
"interface_name":"tun0",
|
||||
"inet4_address":"172.28.0.1/30",
|
||||
"auto_route":true,
|
||||
"strict_route":true,
|
||||
"stack":"system",
|
||||
"sniff":true
|
||||
}
|
||||
],
|
||||
"outbounds": [
|
||||
{
|
||||
"type":"vless",
|
||||
"tag":"vless-out",
|
||||
"flow": "xtls-rprx-vision",
|
||||
"multiplex": {
|
||||
"brutal": {
|
||||
"down_mbps": 100,
|
||||
"enabled": false,
|
||||
"up_mbps": 1000
|
||||
},
|
||||
"enabled": false,
|
||||
"max_streams": 32,
|
||||
"padding": true,
|
||||
"protocol": "h2mux"
|
||||
},
|
||||
"packet_encoding": "xudp",
|
||||
"server": "your.server.ip.or.domain",
|
||||
"server_port": 443,
|
||||
"uuid":"11391936-7544-4af5-ad02-e9f3970b1f64",
|
||||
"flow":"xtls-rprx-vision",
|
||||
"tag": "proxy",
|
||||
"tls": {
|
||||
"enabled": true,
|
||||
"server_name":"www.rpi.edu",
|
||||
"utls":{
|
||||
"enabled":true,
|
||||
"fingerprint":"chrome"
|
||||
},
|
||||
"reality": {
|
||||
"enabled": true,
|
||||
"public_key": "SeIw41mp1LFEd6CEGArmnSoaIXzNlwnkIbduoEY-OXk",
|
||||
"short_id": "26079ba8291ff0fc"
|
||||
},
|
||||
"server_name": "portfolio.newschool.edu",
|
||||
"utls": {
|
||||
"enabled": true,
|
||||
"fingerprint": "chrome"
|
||||
}
|
||||
},
|
||||
"packet_encoding":"xudp",
|
||||
"multiplex":{
|
||||
"enabled":false
|
||||
}
|
||||
"type": "vless",
|
||||
"uuid": "11391936-7544-4af5-ad02-e9f3970b1f64"
|
||||
},
|
||||
{
|
||||
"type":"direct",
|
||||
"tag":"direct"
|
||||
"tag": "direct",
|
||||
"type": "direct"
|
||||
},
|
||||
{
|
||||
"type":"dns",
|
||||
"tag":"dns"
|
||||
"tag": "block",
|
||||
"type": "block"
|
||||
},
|
||||
{
|
||||
"tag": "dns-out",
|
||||
"type": "dns"
|
||||
}
|
||||
],
|
||||
"route": {
|
||||
"geoip":{
|
||||
"download_url":"https://github.com/SagerNet/sing-geoip/releases/latest/download/geoip.db",
|
||||
"download_detour":"vless-out"
|
||||
},
|
||||
"geosite":{
|
||||
"download_url":"https://github.com/SagerNet/sing-geosite/releases/latest/download/geosite.db",
|
||||
"download_detour":"vless-out"
|
||||
},
|
||||
"rules":[
|
||||
"auto_detect_interface": true,
|
||||
"final": "proxy",
|
||||
"rule_set": [
|
||||
{
|
||||
"protocol":"dns",
|
||||
"outbound":"dns"
|
||||
"download_detour": "proxy",
|
||||
"format": "binary",
|
||||
"tag": "geosite-geolocation-!cn",
|
||||
"type": "remote",
|
||||
"url": "https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-geolocation-!cn.srs"
|
||||
},
|
||||
{
|
||||
"geoip":[
|
||||
"private"
|
||||
],
|
||||
"outbound":"direct"
|
||||
"download_detour": "proxy",
|
||||
"format": "binary",
|
||||
"tag": "geoip-cn",
|
||||
"type": "remote",
|
||||
"url": "https://raw.githubusercontent.com/SagerNet/sing-geoip/rule-set/geoip-cn.srs"
|
||||
},
|
||||
{
|
||||
"download_detour": "proxy",
|
||||
"format": "binary",
|
||||
"tag": "geosite-cn",
|
||||
"type": "remote",
|
||||
"url": "https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-cn.srs"
|
||||
}
|
||||
],
|
||||
"auto_detect_interface":true
|
||||
"rules": [
|
||||
{
|
||||
"outbound": "dns-out",
|
||||
"protocol": "dns"
|
||||
},
|
||||
{
|
||||
"network": "tcp",
|
||||
"outbound": "block",
|
||||
"port": 853
|
||||
},
|
||||
{
|
||||
"network": "udp",
|
||||
"outbound": "block",
|
||||
"port": [
|
||||
443,
|
||||
853
|
||||
]
|
||||
},
|
||||
{
|
||||
"mode": "and",
|
||||
"outbound": "proxy",
|
||||
"rules": [
|
||||
{
|
||||
"invert": true,
|
||||
"rule_set": "geoip-cn"
|
||||
},
|
||||
{
|
||||
"rule_set": "geosite-geolocation-!cn"
|
||||
}
|
||||
],
|
||||
"type": "logical"
|
||||
},
|
||||
{
|
||||
"mode": "and",
|
||||
"outbound": "direct",
|
||||
"rules": [
|
||||
{
|
||||
"rule_set": "geoip-cn"
|
||||
},
|
||||
{
|
||||
"rule_set": "geosite-cn"
|
||||
}
|
||||
],
|
||||
"type": "logical"
|
||||
},
|
||||
{
|
||||
"outbound": "direct",
|
||||
"rule_set": "geoip-cn"
|
||||
},
|
||||
{
|
||||
"ip_is_private": true,
|
||||
"outbound": "direct"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
@@ -126,7 +126,7 @@
|
||||
{
|
||||
"type": "tun",
|
||||
"tag": "tun-in",
|
||||
"interface_name": "tun0",
|
||||
"interface_name": "utun42",
|
||||
"inet4_address": "172.19.0.1/30",
|
||||
"inet6_address": "fdfe:dcba:9876::1/126",
|
||||
"mtu": 9000,
|
||||
|
||||
@@ -357,6 +357,204 @@ repost:
|
||||
}
|
||||
```
|
||||
|
||||
## MacOS 客户端
|
||||
|
||||
```json
|
||||
{
|
||||
"log": {
|
||||
"level": "info",
|
||||
"timestamp": true
|
||||
},
|
||||
"dns": {
|
||||
"servers": [
|
||||
{
|
||||
"tag": "dns_proxy",
|
||||
"address": "https://1.1.1.1/dns-query",
|
||||
"address_resolver": "dns_resolver",
|
||||
"strategy": "prefer_ipv6",
|
||||
"detour": "proxy"
|
||||
},
|
||||
{
|
||||
"tag": "dns_direct",
|
||||
"address": "https://dns.alidns.com/dns-query",
|
||||
"address_resolver": "dns_resolver",
|
||||
"strategy": "prefer_ipv6",
|
||||
"detour": "direct"
|
||||
},
|
||||
{
|
||||
"tag": "dns_resolver",
|
||||
"address": "223.5.5.5",
|
||||
"detour": "direct"
|
||||
}
|
||||
],
|
||||
"rules": [
|
||||
{
|
||||
"outbound": "any",
|
||||
"server": "dns_resolver"
|
||||
},
|
||||
{
|
||||
"rule_set": "geosite-geolocation-!cn",
|
||||
"server": "dns_proxy"
|
||||
},
|
||||
{
|
||||
"rule_set": "geosite-cn",
|
||||
"server": "dns_direct"
|
||||
}
|
||||
],
|
||||
"final": "dns_proxy"
|
||||
},
|
||||
"route": {
|
||||
"rule_set": [
|
||||
{
|
||||
"tag": "geosite-geolocation-!cn",
|
||||
"type": "remote",
|
||||
"format": "binary",
|
||||
"url": "https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-geolocation-!cn.srs",
|
||||
"download_detour": "proxy"
|
||||
},
|
||||
{
|
||||
"tag": "geoip-cn",
|
||||
"type": "remote",
|
||||
"format": "binary",
|
||||
"url": "https://raw.githubusercontent.com/SagerNet/sing-geoip/rule-set/geoip-cn.srs",
|
||||
"download_detour": "proxy"
|
||||
},
|
||||
{
|
||||
"tag": "geosite-cn",
|
||||
"type": "remote",
|
||||
"format": "binary",
|
||||
"url": "https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-cn.srs",
|
||||
"download_detour": "proxy"
|
||||
}
|
||||
],
|
||||
"rules": [
|
||||
{
|
||||
"protocol": "dns",
|
||||
"outbound": "dns-out"
|
||||
},
|
||||
{
|
||||
"port": 853,
|
||||
"network": "tcp",
|
||||
"outbound": "block"
|
||||
},
|
||||
{
|
||||
"port": [
|
||||
443,
|
||||
853
|
||||
],
|
||||
"network": "udp",
|
||||
"outbound": "block"
|
||||
},
|
||||
{
|
||||
"type": "logical",
|
||||
"mode": "and",
|
||||
"rules": [
|
||||
{
|
||||
"rule_set": "geoip-cn",
|
||||
"invert": true
|
||||
},
|
||||
{
|
||||
"rule_set": "geosite-geolocation-!cn"
|
||||
}
|
||||
],
|
||||
"outbound": "proxy"
|
||||
},
|
||||
{
|
||||
"type": "logical",
|
||||
"mode": "and",
|
||||
"rules": [
|
||||
{
|
||||
"rule_set": "geoip-cn"
|
||||
},
|
||||
{
|
||||
"rule_set": "geosite-cn"
|
||||
}
|
||||
],
|
||||
"outbound": "direct"
|
||||
},
|
||||
{
|
||||
"rule_set": "geoip-cn",
|
||||
"outbound": "direct"
|
||||
},
|
||||
{
|
||||
"ip_is_private": true,
|
||||
"outbound": "direct"
|
||||
}
|
||||
],
|
||||
"final": "proxy",
|
||||
"auto_detect_interface": true
|
||||
},
|
||||
"inbounds": [
|
||||
{
|
||||
"type": "tun",
|
||||
"tag": "tun-in",
|
||||
"interface_name": "utun42",
|
||||
"inet4_address": "172.19.0.1/30",
|
||||
"inet6_address": "fdfe:dcba:9876::1/126",
|
||||
"mtu": 9000,
|
||||
"auto_route": true,
|
||||
"strict_route": true,
|
||||
"stack": "mixed",
|
||||
"sniff": true
|
||||
}
|
||||
],
|
||||
"outbounds": [
|
||||
{
|
||||
"type": "vless",
|
||||
"tag": "proxy",
|
||||
"server": "154.17.5.35",
|
||||
"server_port": 443,
|
||||
"uuid": "9337d5ec-b489-4bf4-a22c-19f7f6e8fbbd",
|
||||
"flow": "xtls-rprx-vision",
|
||||
"tls": {
|
||||
"enabled": true,
|
||||
"server_name": "portfolio.newschool.edu",
|
||||
"utls": {
|
||||
"enabled": true,
|
||||
"fingerprint": "chrome"
|
||||
},
|
||||
"reality": {
|
||||
"enabled": true,
|
||||
"public_key": "dpU-LTUuyoCyox_4fh5n-h5NCsSSUKXayFsOsfcIzRA",
|
||||
"short_id": "7fcff4362963e98e"
|
||||
}
|
||||
},
|
||||
"multiplex": {
|
||||
"enabled": false,
|
||||
"protocol": "h2mux",
|
||||
"max_streams": 32,
|
||||
"padding": true,
|
||||
"brutal": {
|
||||
"enabled": false,
|
||||
"up_mbps": 1000,
|
||||
"down_mbps": 100
|
||||
}
|
||||
|
||||
},
|
||||
"packet_encoding": "xudp"
|
||||
},
|
||||
{
|
||||
"type": "direct",
|
||||
"tag": "direct"
|
||||
},
|
||||
{
|
||||
"type": "block",
|
||||
"tag": "block"
|
||||
},
|
||||
{
|
||||
"type": "dns",
|
||||
"tag": "dns-out"
|
||||
}
|
||||
],
|
||||
"experimental": {
|
||||
"cache_file": {
|
||||
"enabled": true,
|
||||
"path": "cache.db"
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
## Android 客户端
|
||||
|
||||
```json
|
||||
|
||||
@@ -120,7 +120,7 @@ sing-box generate uuid
|
||||
{
|
||||
"type": "vless",
|
||||
"tag": "vless-in",
|
||||
"listen":"0.0.0.0",
|
||||
"listen": "::",
|
||||
"listen_port": 443,
|
||||
"users": [
|
||||
{
|
||||
@@ -131,11 +131,11 @@ sing-box generate uuid
|
||||
],
|
||||
"tls": {
|
||||
"enabled": true,
|
||||
"server_name":"www.rpi.edu",
|
||||
"server_name": "portfolio.newschool.edu",
|
||||
"reality": {
|
||||
"enabled": true,
|
||||
"handshake": {
|
||||
"server":"www.rpi.edu",
|
||||
"server": "portfolio.newschool.edu",
|
||||
"server_port": 443
|
||||
},
|
||||
"private_key": "0H5tYLhpDT_r675UC93iWAS2LqN6mPZoDcVDqsff018",
|
||||
@@ -145,7 +145,13 @@ sing-box generate uuid
|
||||
}
|
||||
},
|
||||
"multiplex": {
|
||||
"enabled":false
|
||||
"enabled": false,
|
||||
"padding": true,
|
||||
"brutal": {
|
||||
"enabled": false,
|
||||
"up_mbps": 1000,
|
||||
"down_mbps": 1000
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
@@ -185,94 +191,211 @@ sing-box generate uuid
|
||||
|
||||
```json
|
||||
{
|
||||
"dns": {
|
||||
"final": "dns_proxy",
|
||||
"rules": [
|
||||
{
|
||||
"outbound": "any",
|
||||
"server": "dns_resolver"
|
||||
},
|
||||
{
|
||||
"rule_set": "geosite-geolocation-!cn",
|
||||
"server": "dns_proxy"
|
||||
},
|
||||
{
|
||||
"rule_set": "geosite-cn",
|
||||
"server": "dns_direct"
|
||||
}
|
||||
],
|
||||
"servers": [
|
||||
{
|
||||
"address": "https://1.1.1.1/dns-query",
|
||||
"address_resolver": "dns_resolver",
|
||||
"detour": "proxy",
|
||||
"strategy": "prefer_ipv6",
|
||||
"tag": "dns_proxy"
|
||||
},
|
||||
{
|
||||
"address": "https://dns.alidns.com/dns-query",
|
||||
"address_resolver": "dns_resolver",
|
||||
"detour": "direct",
|
||||
"strategy": "prefer_ipv6",
|
||||
"tag": "dns_direct"
|
||||
},
|
||||
{
|
||||
"address": "223.5.5.5",
|
||||
"detour": "direct",
|
||||
"tag": "dns_resolver"
|
||||
}
|
||||
]
|
||||
},
|
||||
"experimental": {
|
||||
"cache_file": {
|
||||
"enabled": true,
|
||||
"path": "cache.db"
|
||||
}
|
||||
},
|
||||
"inbounds": [
|
||||
{
|
||||
"auto_route": true,
|
||||
"inet4_address": "172.19.0.1/30",
|
||||
"inet6_address": "fdfe:dcba:9876::1/126",
|
||||
"interface_name": "tun0",
|
||||
"mtu": 9000,
|
||||
"sniff": true,
|
||||
"stack": "mixed",
|
||||
"strict_route": true,
|
||||
"tag": "tun-in",
|
||||
"type": "tun"
|
||||
},
|
||||
{
|
||||
"domain_strategy": "prefer_ipv6",
|
||||
"listen": "::",
|
||||
"listen_port": 1080,
|
||||
"set_system_proxy": false,
|
||||
"sniff": false,
|
||||
"sniff_override_destination": false,
|
||||
"sniff_timeout": "300ms",
|
||||
"tag": "mixed-in",
|
||||
"tcp_fast_open": true,
|
||||
"tcp_multi_path": true,
|
||||
"type": "mixed",
|
||||
"udp_disable_domain_unmapping": false,
|
||||
"udp_fragment": true,
|
||||
"udp_timeout": "5m"
|
||||
}
|
||||
],
|
||||
"log": {
|
||||
"level": "info",
|
||||
"timestamp": true
|
||||
},
|
||||
"dns":{
|
||||
"servers":[
|
||||
{
|
||||
"tag":"cloudflare",
|
||||
"address":"1.1.1.1"
|
||||
}
|
||||
],
|
||||
"rules":[
|
||||
{
|
||||
"outbound":"any",
|
||||
"server":"cloudflare"
|
||||
}
|
||||
],
|
||||
"strategy":"ipv4_only"
|
||||
},
|
||||
"inbounds":[
|
||||
{
|
||||
"type":"tun",
|
||||
"tag":"tun-in",
|
||||
"interface_name":"tun0",
|
||||
"inet4_address":"172.28.0.1/30",
|
||||
"auto_route":true,
|
||||
"strict_route":true,
|
||||
"stack":"system",
|
||||
"sniff":true
|
||||
}
|
||||
],
|
||||
"outbounds": [
|
||||
{
|
||||
"type":"vless",
|
||||
"tag":"vless-out",
|
||||
"flow": "xtls-rprx-vision",
|
||||
"multiplex": {
|
||||
"brutal": {
|
||||
"down_mbps": 100,
|
||||
"enabled": false,
|
||||
"up_mbps": 1000
|
||||
},
|
||||
"enabled": false,
|
||||
"max_streams": 32,
|
||||
"padding": true,
|
||||
"protocol": "h2mux"
|
||||
},
|
||||
"packet_encoding": "xudp",
|
||||
"server": "your.server.ip.or.domain",
|
||||
"server_port": 443,
|
||||
"uuid":"11391936-7544-4af5-ad02-e9f3970b1f64",
|
||||
"flow":"xtls-rprx-vision",
|
||||
"tag": "proxy",
|
||||
"tls": {
|
||||
"enabled": true,
|
||||
"server_name":"www.rpi.edu",
|
||||
"utls":{
|
||||
"enabled":true,
|
||||
"fingerprint":"chrome"
|
||||
},
|
||||
"reality": {
|
||||
"enabled": true,
|
||||
"public_key": "SeIw41mp1LFEd6CEGArmnSoaIXzNlwnkIbduoEY-OXk",
|
||||
"short_id": "26079ba8291ff0fc"
|
||||
},
|
||||
"server_name": "portfolio.newschool.edu",
|
||||
"utls": {
|
||||
"enabled": true,
|
||||
"fingerprint": "chrome"
|
||||
}
|
||||
},
|
||||
"packet_encoding":"xudp",
|
||||
"multiplex":{
|
||||
"enabled":false
|
||||
}
|
||||
"type": "vless",
|
||||
"uuid": "11391936-7544-4af5-ad02-e9f3970b1f64"
|
||||
},
|
||||
{
|
||||
"type":"direct",
|
||||
"tag":"direct"
|
||||
"tag": "direct",
|
||||
"type": "direct"
|
||||
},
|
||||
{
|
||||
"type":"dns",
|
||||
"tag":"dns"
|
||||
"tag": "block",
|
||||
"type": "block"
|
||||
},
|
||||
{
|
||||
"tag": "dns-out",
|
||||
"type": "dns"
|
||||
}
|
||||
],
|
||||
"route": {
|
||||
"geoip":{
|
||||
"download_url":"https://github.com/SagerNet/sing-geoip/releases/latest/download/geoip.db",
|
||||
"download_detour":"vless-out"
|
||||
},
|
||||
"geosite":{
|
||||
"download_url":"https://github.com/SagerNet/sing-geosite/releases/latest/download/geosite.db",
|
||||
"download_detour":"vless-out"
|
||||
},
|
||||
"rules":[
|
||||
"auto_detect_interface": true,
|
||||
"final": "proxy",
|
||||
"rule_set": [
|
||||
{
|
||||
"protocol":"dns",
|
||||
"outbound":"dns"
|
||||
"download_detour": "proxy",
|
||||
"format": "binary",
|
||||
"tag": "geosite-geolocation-!cn",
|
||||
"type": "remote",
|
||||
"url": "https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-geolocation-!cn.srs"
|
||||
},
|
||||
{
|
||||
"geoip":[
|
||||
"private"
|
||||
],
|
||||
"outbound":"direct"
|
||||
"download_detour": "proxy",
|
||||
"format": "binary",
|
||||
"tag": "geoip-cn",
|
||||
"type": "remote",
|
||||
"url": "https://raw.githubusercontent.com/SagerNet/sing-geoip/rule-set/geoip-cn.srs"
|
||||
},
|
||||
{
|
||||
"download_detour": "proxy",
|
||||
"format": "binary",
|
||||
"tag": "geosite-cn",
|
||||
"type": "remote",
|
||||
"url": "https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-cn.srs"
|
||||
}
|
||||
],
|
||||
"auto_detect_interface":true
|
||||
"rules": [
|
||||
{
|
||||
"outbound": "dns-out",
|
||||
"protocol": "dns"
|
||||
},
|
||||
{
|
||||
"network": "tcp",
|
||||
"outbound": "block",
|
||||
"port": 853
|
||||
},
|
||||
{
|
||||
"network": "udp",
|
||||
"outbound": "block",
|
||||
"port": [
|
||||
443,
|
||||
853
|
||||
]
|
||||
},
|
||||
{
|
||||
"mode": "and",
|
||||
"outbound": "proxy",
|
||||
"rules": [
|
||||
{
|
||||
"invert": true,
|
||||
"rule_set": "geoip-cn"
|
||||
},
|
||||
{
|
||||
"rule_set": "geosite-geolocation-!cn"
|
||||
}
|
||||
],
|
||||
"type": "logical"
|
||||
},
|
||||
{
|
||||
"mode": "and",
|
||||
"outbound": "direct",
|
||||
"rules": [
|
||||
{
|
||||
"rule_set": "geoip-cn"
|
||||
},
|
||||
{
|
||||
"rule_set": "geosite-cn"
|
||||
}
|
||||
],
|
||||
"type": "logical"
|
||||
},
|
||||
{
|
||||
"outbound": "direct",
|
||||
"rule_set": "geoip-cn"
|
||||
},
|
||||
{
|
||||
"ip_is_private": true,
|
||||
"outbound": "direct"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
@@ -3,6 +3,6 @@
|
||||
url: https://github.com/KnowsCount
|
||||
description: I make computers beep-boop.
|
||||
- nickname: oenLN
|
||||
avatar: https://halob.oneln.top/upload/jiayou.jpg
|
||||
url: https://halob.oneln.top/
|
||||
description: 时间就是力量
|
||||
avatar: https://halo.oneln.org/logo.png
|
||||
url: https://halo.oneln.org/
|
||||
description: 时间就是力量,你的时间就是你的力量
|
||||
Reference in New Issue
Block a user