Skip to content

Instantly share code, notes, and snippets.

@usshen
Created May 25, 2021 10:40
Show Gist options
  • Save usshen/53eb069150f97d4c717342acd10cfd85 to your computer and use it in GitHub Desktop.
Save usshen/53eb069150f97d4c717342acd10cfd85 to your computer and use it in GitHub Desktop.
v2ray; socks outbound; netflix outbound
{
"log": {
"access": "/var/log/v2ray/access.log",
"error": "/var/log/v2ray/error.log",
"loglevel": "warn"
},
"inbounds": [
{
"port": 443,
"tag": "itor",
"protocol": "trojan",
"settings": {
"clients": [
{
"password": "password"
}
],
"fallbacks": [
{
"dest": 80
}
]
},
"streamSettings": {
"network": "tcp",
"security": "tls",
"tlsSettings": {
"certificates": [
{
"certificateFile": "/path/to/fullchain.cer",
"keyFile": "/path/to/inf.aboy.ga.key"
}
],
"alpn": [
"http/1.1"
]
},
"tcpSettings": {},
"kcpSettings": {},
"wsSettings": {},
"httpSettings": {},
"quicSettings": {},
"grpcSettings": {}
},
"domain": "example.com"
},
{
"port": port,
"protocol": "vmess",
"settings": {
"clients": [
{
"alterId": 0,
"id": "id"
}
]
},
"streamSettings": {
"network": "kcp",
"security": "none",
"tlsSettings": {},
"tcpSettings": {},
"httpSettings": {},
"kcpSettings": {
"mtu": 1350,
"tti": 50,
"uplinkCapacity": 100,
"downlinkCapacity": 100,
"congestion": false,
"readBufferSize": 2,
"writeBufferSize": 2,
"header": {
"type": "dtls"
}
},
"wsSettings": {},
"quicSettings": {}
}
}
],
"outbounds": [
{
"protocol": "freedom",
"tag": "direct",
"settings": {}
},
{
"protocol": "freedom",
"tag": "direct6",
"settings": {"domainStrategy": "UseIPv6"}
},
{
"protocol": "socks",
"tag": "tor",
"settings":{"servers":[{"address": "127.0.0.1","port": 9050 }]}
},
{
"protocol": "blackhole",
"settings": {},
"tag": "blocked"
}
],
"routing": {
"rules": [
{
"type": "field",
"ip": [
"0.0.0.0/8",
"10.0.0.0/8",
"100.64.0.0/10",
"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",
"domain": [
"geosite:netflix",
"geosite:google"
],
"outboundTag": "direct6"
},
{
"type": "field",
"outboundTag": "tor",
"inboundTag": ["itor"]
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment