v2ray
安装v2ray
1 |
bash <(curl -L -s https://install.direct/go.sh) |
默认配置文件/etc/v2ray/config.json
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
{ "inbounds": [{ "port": 34227, "protocol": "vmess", "settings": { "clients": [ { "id": "989b260c-2a69-45e6-b855-76475528c33c", "level": 1, "alterId": 64 } ] } }], "outbounds": [{ "protocol": "freedom", "settings": {} },{ "protocol": "blackhole", "settings": {}, "tag": "blocked" }], "routing": { "rules": [ { "type": "field", "ip": ["geoip:private"], "outboundTag": "blocked" } ] } } |
验证配置文件
1 |
/usr/bin/v2ray/v2ray -test -config=/etc/v2ray/config.json |
重启服务
1 |
service v2ray restart |
证书
安装certbot
1 2 |
wget https://dl.eff.org/certbot-auto chmod a+x ./certbot-auto |
获取证书
1 |
./certbot-auto --apache certonly -d v2ray.minirplus.com |
修改python解决certbot安装错误,切换至python2.7
1 2 3 4 5 |
python --version update-alternatives --config python apt --fix-broken install |
There are no comments yet