Skip to content

Instantly share code, notes, and snippets.

@punkmonday
Last active March 9, 2020 08:30
Show Gist options
  • Select an option

  • Save punkmonday/291f35ca0ae354e07510ad79d910f163 to your computer and use it in GitHub Desktop.

Select an option

Save punkmonday/291f35ca0ae354e07510ad79d910f163 to your computer and use it in GitHub Desktop.
v2ray config.json
{
"inbounds": [
{
"port": 1080,
"protocol": "socks",
"sniffing": {
"enabled": true,
"destOverride": ["http", "tls"]
},
"settings": {
"auth": "noauth"
}
},
{
"port": 8088,
"protocol": "http",
"settings": {
"allowTransparent": false,
"auth": "noauth"
}
}
],
"outbounds": [
{
"protocol": "shadowsocks",
"settings": {
"servers": [
{
"address": "your server address",
"method": "aes-256-gcm",
"ota": true,
"password": "your server password",
"port": "your server port"
}
]
}
}
]
}
{
"inbounds": [
{
"port": 1080,
"protocol": "socks",
"sniffing": {
"enabled": true,
"destOverride": [
"http",
"tls"
]
},
"settings": {
"auth": "noauth"
}
},
{
"port": 8088,
"protocol": "http",
"settings": {
"allowTransparent": false,
"auth": "noauth"
}
}
],
"outbounds": [
{
"protocol": "shadowsocks",
"settings": {
"servers": [
{
"address": "your server address",
"method": "aes-256-gcm",
"ota": true,
"password": "your server password",
"port": "your server port",
"tag": "us1"
},
{
"address": "your server address",
"method": "aes-256-gcm",
"ota": true,
"password": "your server password",
"port": "your server port",
"tag": "us2"
}
]
}
}
],
"routing": {
"domainStrategy": "IPOnDemand",
"balancers": [
{
"tag": "b1",
"selector": [
"us1",
"us2"
]
}
],
"rules": [
{
"type": "field",
"outboundTag": "direct",
"ip": [
"geoip:private",
"geoip:cn"
]
},
{
"type": "field",
"outboundTag": "direct",
"domain": [
"geosite:cn"
]
},
{
"type": "field",
"network": "tcp,udp",
"balancerTag": "b1"
}
]
}
}
{
"inbounds": [
{
"port": "1080",
"protocol": "socks",
"settings": {
"auth": "noauth",
"udp": true
}
}
],
"outbounds": [
{
"protocol": "vmess",
"settings": {
"vnext": [
{
"address": "your server Ip",
"port": 26799,
"users": [
{
"id": "your server Id"
}
]
}
]
}
}
]
}
{
"server": "your server ip",
"server_port": 8080,
"local_port": 1080,
"password": "your server password",
"timeout": 60,
"method": "aes-256-gcm",
"fast_open": true,
"plugin": "obfs-local",
"plugin_opts": "obfs=tls;obfs-host=www.bing.com"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment