接上贴(https://91ai.net/thread-1177046-1-7.html),买了一台128m的小鸡,折腾了一下午终于装上了某mess,加上cf cdn起飞,榨干小鸡最后的性能
(教程比较小白,大神粗略看一下即可)
首先按照大佬的教程,上脚本dd成alpine 详见(Converts OpenVZ VPS to Alpine Linux
https://gist.github.com/pexcn/dc3ebe60393cc4ede40b30e180d40ac5)
刷机之后ipv6会有点问题,要用ipv6套cf的话可以按照这个方法修复
首先查看网卡,我的机器网卡是 venet0
ipv6的address和gateway按你实际填写(去solosvm后台里找)
用vim编辑 interfaces
添加这一行
保存
查看是否生效 curl -4 ip.sb curl -6 ip.sb
之后按这个教程 https://32mib.eu.org/post/install-v2ray-under-32-mib 手搓v2ray
(防止实效,archive.org备份 http://web.archive.org/web/20230607115257/https://32mib.eu.org/post/install-v2ray-under-32-mib )
这里提供一个模板vmess+ws+tls(来自ray项目官方的实例)
- {
- "log": {
- "loglevel": "warning"
- },
- "routing": {
- "domainStrategy": "AsIs",
- "rules": [
- {
- "type": "field",
- "ip": [
- "geoip:private"
- ],
- "outboundTag": "block"
- }
- ]
- },
- "inbounds": [
- {
- "listen": "0.0.0.0",
- "port": 443,
- "protocol": "vmess",
- "settings": {
- "clients": [
- {
- "id": "3c85f535-c1c7-473f-9a65-d0c90619fc98"
- }
- ]
- },
- "streamSettings": {
- "network": "ws",
- "security": "tls",
- "tlsSettings": {
"certificates": [
- {
- "certificateFile": "/path/to/crt.crt",
- "keyFile": "/path/to/key.key"
- }
- ]
- }
- }
- }
- ],
- "outbounds": [
- {
- "protocol": "freedom",
- "tag": "direct"
- },
- {
- "protocol": "blackhole",
- "tag": "block"
- }
- ]
- }
复制代码
在代码对应的位置放好证书(证书可以用cf自签15年的),上cdn的话记得在cf后台把SSL/TLS调成 full,最后 service v2ray restart ,service v2ray status查看状态