Skip to content

Instantly share code, notes, and snippets.

@pandada8
Created October 30, 2016 13:30
Show Gist options
  • Save pandada8/45c814613202e23b6da0a9cf2cdb5361 to your computer and use it in GitHub Desktop.
Save pandada8/45c814613202e23b6da0a9cf2cdb5361 to your computer and use it in GitHub Desktop.
v2ray websocket setup example
{
"log": {
"loglevel": "info"
},
"outboundDetour": [
{
"tag": "direct",
"protocol": "freedom",
"settings": {}
}
],
"routing": {
"strategy": "rules",
"settings": {
"rules": [
{
"outboundTag": "direct",
"type": "field",
"port": "1-52"
},
{
"outboundTag": "direct",
"type": "field",
"port": "54-79"
},
{
"outboundTag": "direct",
"type": "field",
"port": "81-442"
},
{
"outboundTag": "direct",
"type": "field",
"port": "444-65535"
},
{
"domain": [
"rrsub.com",
"36kr.com",
"36krcnd.com"
],
"outboundTag": "direct",
"type": "field"
},
{
"outboundTag": "direct",
"type": "chinasites"
},
{
"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",
"fc00::/7",
"fe80::/10",
],
"outboundTag": "direct",
"type": "field"
},
{
"outboundTag": "direct",
"type": "chinaip"
}
],
"domainStrategy": "IPIfNonMatch"
}
},
"dns": {
"servers": [
"8.8.8.8",
"8.8.4.4",
"localhost"
]
},
"inbound": {
"settings": {
"udp": false,
"auth": "noauth",
"ip": "127.0.0.1"
},
"listen": "127.0.0.1",
"protocol": "socks",
"port": 1080
},
"outbound": {
"tag": "default",
"streamSettings": {
"network": "ws",
"wsSettings": {
"path": "ws.pandada8.me/endpoint",
"connectionReuse": true
}
},
"protocol": "vmess",
"settings": {
"vnext": [
{
"address": "proxy.panic.moe",
"users": [
{
"id": "<your-id>",
"alterId": 64
}
],
"port": 81
}
]
}
},
"inboundDetour": [
{
"settings": {},
"listen": "127.0.0.1",
"protocol": "http",
"port": 1081
}
]
}
{
"inboundDetour": [
{
"protocol": "shadowsocks",
"port": 123,
"settings": {
"method": "chacha20",
"password": "<password>",
"level": 1
}
}
],
"inbound": {
"protocol": "vmess",
"streamSettings": {
"network": "ws"
},
"port": 81,
"settings": {
"clients": [
{
"alterId": 64,
"id": "<id1>",
"level": 1
},
{
"alterId": 64,
"id": "<id2>",
"level": 1
}
]
}
},
"outboundDetour": [
{
"protocol": "blackhole",
"settings": {},
"tag": "blocked"
}
],
"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",
"192.0.0.0/24",
"192.0.2.0/24",
"198.18.0.0/15",
"198.51.100.0/24",
"203.0.113.0/24",
"::1/128",
"fc00::/7",
"fe80::/10"
],
"type": "field",
"outboundTag": "blocked"
}
]
},
"strategy": "rules"
},
"transport": {
"kcpSettings": {
"downlinkCapacity": 20,
"uplinkCapacity": 20
},
"wsSettings": {
"connectionReuse": true
}
},
"outbound": {
"protocol": "freedom",
"settings": {}
},
"log": {
"loglevel": "info"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment