wget https://install.direct/go.sh // 下载脚本 bash go.sh // 执行 systemctl status v2ray systemctl start v2ray systemctl stop v2ray systemctl restart v2ray systemctl enable v2ray
cat /etc/v2ray/config.json { "inbounds": [{ "port": 36710, // 自定义端口号 "protocol": "vmess", "settings": { "clients": [ { "id": "472b34f4-e918-4e1c-9caf-842c50a6dfef", "level": 1, "alterId": 2 } ] } }], "outbounds": [{ "protocol": "freedom", "settings": {} },{ "protocol": "blackhole", "settings": {}, "tag": "blocked" }], "routing": { "rules": [ { "type": "field", "ip": ["geoip:private"], "outboundTag": "blocked" } ] } }
|