Last active
November 27, 2023 01:31
-
-
Save hagerliu/85ca512754f8fea1d75e77bde56522f8 to your computer and use it in GitHub Desktop.
xtls-vision-reality server
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "log": { | |
| "loglevel": "warning", | |
| "error": "/var/log/xray/error.log", | |
| "access": "/var/log/xray/access.log" | |
| }, | |
| "dns": { | |
| "servers": [ | |
| { | |
| "address": "127.0.0.1", | |
| "port": 53 | |
| } | |
| ], | |
| "clientIp": "VPS的IP", | |
| "queryStrategy": "UseIPv4", | |
| "disableCache": true, | |
| "tag": "dns_in" | |
| }, | |
| "inbounds": [ | |
| { | |
| "port": 443, | |
| "protocol": "vless", | |
| "settings": { | |
| "clients": [ | |
| { | |
| "id": "xray uuid 生成", | |
| "flow": "xtls-rprx-vision" | |
| }, | |
| { | |
| "id": "xray uuid 生成", | |
| "flow": "xtls-rprx-vision" | |
| }, | |
| { | |
| "id": "xray uuid 生成", | |
| "flow": "xtls-rprx-vision" | |
| } | |
| ], | |
| "decryption": "none" | |
| }, | |
| "streamSettings": { | |
| "network": "tcp", | |
| "security": "reality", | |
| "realitySettings": { | |
| "show": false, | |
| "dest": "www.discoverlosangeles.com:443", | |
| "xver": 0, | |
| "serverNames": [ | |
| "www.discoverlosangeles.com" | |
| ], | |
| "privateKey": "xray x25519 生成,记好公私钥", | |
| "shortIds": [ | |
| "openssl rand -hex 8 生成", | |
| "openssl rand -hex 8 生成", | |
| "openssl rand -hex 8 生成", | |
| "openssl rand -hex 8 生成", | |
| "openssl rand -hex 8 生成" | |
| ] | |
| } | |
| }, | |
| "sniffing": { | |
| "enabled": false | |
| } | |
| } | |
| ], | |
| "routing": { | |
| "domainStrategy": "AsIs", | |
| "rules": [ | |
| { | |
| "type": "field", | |
| "protocol": [ | |
| "bittorrent" | |
| ], | |
| "outboundTag": "blocked" | |
| }, | |
| { | |
| "type": "field", | |
| "ip": [ | |
| "geoip:private", | |
| "geoip:cn" | |
| ], | |
| "outboundTag": "blocked" | |
| }, | |
| { | |
| "type": "field", | |
| "inboundTag": "dns_in", | |
| "outboundTag": "direct" | |
| } | |
| ] | |
| }, | |
| "outbounds": [ | |
| { | |
| "tag": "direct", | |
| "protocol": "freedom", | |
| "settings": { | |
| "domainStrategy": "UseIPv4" | |
| } | |
| }, | |
| { | |
| "tag": "blocked", | |
| "protocol": "blackhole", | |
| "settings": {} | |
| }, | |
| { | |
| "tag": "dns-out", | |
| "protocol": "dns", | |
| "settings": { | |
| "network": "udp", | |
| "address": "127.0.0.1", | |
| "port": 53, | |
| "nonIPQuery": "drop" | |
| } | |
| } | |
| ] | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment