安装
wget -q4O /usr/local/bin/ycycxz-v2ray https://ycycxz.com/dl/ycycxz-v2ray-linux-amd64chmod +x /usr/local/bin/ycycxz-v2raymkdir -p /etc/ycycxz-v2rayycycxz-v2ray version服务器端配置
- theory
- fulfill
/etc/ycycxz-v2ray/ycycxz.jsoncat <<EOF > /etc/ycycxz-v2ray/ycycxz.json{"log":{"access":{"type":"Console","level":"Info"},"error":{"type":"Console","level":"Info"}},"inbounds":[{"protocol":"vliteu","port":42324,"settings":{"password":"ycycxz","enableFec":true,"enableStabilization":true,"enableRenegotiation":true}},{"protocol":"vmess","port":42325,"settings":{"users":["00000000-0000-0000-0000-000000000000"]}}],"outbounds":[{"protocol":"freedom"}]}EOF查看注释systemd
cat <<EOF > /etc/systemd/system/ycycxz-v2ray.service[Unit]Description=ycycxz-v2rayAfter=network-online.target[Service]LimitAS=infinityLimitNOFILE=infinityLimitNPROC=infinityTasksMax=infinityExecStart=/usr/local/bin/ycycxz-v2ray run -c /etc/ycycxz-v2ray/ycycxz.json -format jsonv5[Install]WantedBy=multi-user.targetEOFsystemctl daemon-reloadsystemctl enable ycycxz-v2ray启动
systemctl start ycycxz-v2ray#systemctl status ycycxz-v2ray客户端配置
{"log": {"error": {"level": "Info","type": "Console"},"access": {"level": "Info","type": "Console"}},"inbounds": [{"protocol": "socks","settings": {"udpEnabled": true,"address": "127.0.0.1","packetEncoding": "Packet"},"port": 1080}],"outbounds": [{"protocol": "vmess","settings": {"address": "10.0.0.178","port": 42325,"uuid": "00000000-0000-0000-0000-000000000000"},"tag": "vmess-out"},{"protocol": "vliteu","settings": {"address": "10.0.0.178","port": 42324,"password": "ycycxz","enableFec": true,"enableStabilization": true,"enableRenegotiation": true},"tag": "vliteu-out"}],"router": {"rule": [{"tag": "vliteu-out","networks": "udp"},{"tag": "vmess-out","networks": "tcp"}]}}查看注释卸载
systemctl stop ycycxz-v2rayrm /etc/systemd/system/ycycxz-v2ray.servicesystemctl daemon-reloadrm -rf /etc/ycycxz-v2rayrm -f /usr/local/bin/ycycxz-v2rayGUI
下载二进制v2ray-amd64.exe run -c ycycxz.json -format jsonv5Windows下使用V2RayN, 添加socks代理,用户名127.0.0.1,端口1080测试
同上一步骤
NatTypeTester设置代理为SOCKS5下载视频教程
How was it? Did this tutorial work? No
