v2ray-examples/Socks5-TLS/config_server.json

58 lines
1.3 KiB
JSON
Raw Permalink Normal View History

2018-03-29 13:48:40 +08:00
{
2018-04-16 17:07:21 +08:00
"log": {
"loglevel": "warning"
},
2020-08-01 21:44:14 +08:00
"routing": {
"domainStrategy": "AsIs",
"rules": [
{
"type": "field",
"ip": [
"geoip:private"
],
"outboundTag": "block"
}
]
},
"inbounds": [
{
"listen": "0.0.0.0",
"port": 1234,
"protocol": "socks",
"settings": {
"auth": "password",
"accounts": [
2018-04-16 17:07:21 +08:00
{
2020-08-01 21:44:14 +08:00
"user": "",
"pass": ""
2018-04-16 17:07:21 +08:00
}
2020-08-01 21:44:14 +08:00
],
"udp": true,
"ip": "127.0.0.1"
},
"streamSettings": {
"network": "tcp",
"security": "tls",
"tlsSettings": {
"certificates": [
{
"certificateFile": "/path/to/certificate.crt",
"keyFile": "/path/to/key.key"
}
]
}
2018-03-29 13:48:40 +08:00
}
2018-04-16 17:07:21 +08:00
}
2020-08-01 21:44:14 +08:00
],
"outbounds": [
{
"protocol": "freedom",
"tag": "direct"
},
2018-04-16 17:07:21 +08:00
{
"protocol": "blackhole",
2020-08-01 21:44:14 +08:00
"tag": "block"
2018-04-16 17:07:21 +08:00
}
2020-08-01 21:44:14 +08:00
]
}