精彩评论
- al2359(2年前 (2023-02-06))
求科学离线插件,谢谢!34401355@qq.com
评:改版梅林固件安装SS【shadowsocks】科学上网插件教程 - al2359(2年前 (2023-02-06))
求科学离线插件,谢谢!!!
评:改版梅林固件安装SS【shadowsocks】科学上网插件教程
curl -O https://raw.githubusercontent.com/v2fly/fhs-install-v2ray/master/install-release.sh
bash install-release.sh
如果安装不成功脚本会有红色的提示语句,这个时候你应当按照提示除错,除错后再重新执行一遍脚本安装 V2Ray。
systemctl enable v2ray
systemctl start v2ray
systemctl stop v2ray
systemctl restart v2ray
curl https://get.acme.sh | sh
可以创建 一个 bash 的 alias, 方便使用
alias acme.sh=~/.acme.sh/acme.sh
apt install socat -y
acme.sh --issue -d mydomain.me --server letsencrypt
acme.sh --set-default-ca --server letsencrypt
acme.sh --issue -d mydomain.me --standalone -k ec-256
acme.sh --list
手动更新 ECC 证书,执行:
acme.sh --renew -d mydomain.me --force --ecc
如果是 RSA 证书则执行:
acme.sh --renew -d mydomain.me --force
mkdir -p /root/cert
acme.sh --installcert -d mydomain.me --ecc \ --key-file /root/cert/private.key \ --fullchain-file /root/cert/cert.crt
{ "log": { "loglevel": "warning" }, "inbounds": [ { "port": 443, "protocol": "vmess", "settings": { "clients": [ { "id": "23ad6b10-8d1a-40f7-8ad0-e3e35cd38297", "alterId": 0 } ] }, "streamSettings": { "network": "tcp", "security": "tls", "tlsSettings": { "certificates": [ { "certificateFile": "/root/cert/cert.crt", "keyFile": "/root/cert/private.key" } ] } } } ], "outbounds": [ { "protocol": "freedom", "settings": {} } ] }
{ "inbounds": [ { "port": 1080, "protocol": "socks", "sniffing": { "enabled": true, "destOverride": ["http", "tls"] }, "settings": { "auth": "noauth" } } ], "outbounds": [ { "protocol": "vmess", "settings": { "vnext": [ { "address": "mydomain.me", "port": 443, "users": [ { "id": "23ad6b10-8d1a-40f7-8ad0-e3e35cd38297", "alterId": 0 } ] } ] }, "streamSettings": { "network": "tcp", "security": "tls" } } ] }
{ "inbounds": [ { "port": 1080, "protocol": "socks", "sniffing": { "enabled": true, "destOverride": ["http", "tls"] }, "settings": { "auth": "noauth" } } ], "outbounds": [ { "protocol": "vmess", "settings": { "vnext": [ { "address": "mydomain.me", "port": 443, "users": [ { "id": "23ad6b10-8d1a-40f7-8ad0-e3e35cd38297", "alterId": 0 } ] } ] }, "streamSettings": { "network": "tcp", "security": "tls" } }, { "protocol": "freedom", "settings": {}, "tag": "direct" } ], "routing": { "domainStrategy": "IPOnDemand", "rules": [ { "type": "field", "outboundTag": "direct", "domain": ["geosite:cn"] }, { "type": "field", "outboundTag": "direct", "ip": [ "geoip:cn", "geoip:private" ] } ] } }
/usr/local/bin/v2ray -test -config /usr/local/etc/v2ray/config.json
{ "log": { "loglevel": "warning" }, "inbounds": [ { "port": 10000, //端口可设置任何未被占用的,但必须与nginx配置文件中的一致 "listen":"127.0.0.1", "protocol": "vmess", "settings": { "clients": [ { "id": "23ad6b10-8d1a-40f7-8ad0-e3e35cd38297", //与客户端保持一致 "alterId": 0 //与客户端一致 } ] }, "streamSettings": { "network": "ws", "wsSettings": { "path": "/rayghrh" //与nginx配置文件中的location地址保持一致 } } } ], "outbounds": [ { "protocol": "freedom", "settings": {} } ] }
/usr/local/bin/v2ray -test -config /usr/local/etc/v2ray/config.json
apt install nginx -y
systemctl start nginx
systemctl enable nginx
user www-data; worker_processes 1; error_log /var/log/nginx/error.log; pid /var/run/nginx.pid; events { worker_connections 2048; } http { server_tokens off; include mime.types; default_type application/octet-stream; access_log off; sendfile on; tcp_nopush on; tcp_nodelay on; keepalive_timeout 65; gzip on; client_max_body_size 10m; client_body_buffer_size 128k; server { listen 80 default_server; server_name mydomain.me; root /usr/share/nginx/html; return 301 https://$server_name$request_uri; error_page 404 /404.html; location = /40x.html { } error_page 500 502 503 504 /50x.html; location = /50x.html { } } server { listen 443 ssl; server_name mydomain.me; ssl_certificate /root/cert/cert.crt; ssl_certificate_key /root/cert/private.key; ssl_protocols TLSv1.2 TLSv1.3; ssl_ciphers HIGH:!aNULL:!MD5; ssl_prefer_server_ciphers on; #WS协议转发 location /raygrgf { #任意字母及数字组合,但必须与v2ray服务端配置文件的path地址一致 proxy_redirect off; proxy_pass http://127.0.0.1:10000; #端口与v2ray服务端配置文件中的一致 proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; proxy_set_header Host $http_host; } #其他请求转发 location / { proxy_pass http://127.0.0.1:80; #建议配置可以正常访问,实现伪装 } } }
/usr/sbin/nginx -t -c /etc/nginx/nginx.conf
{ "inbounds": [ { "port": 1080, "listen": "127.0.0.1", "protocol": "socks", "sniffing": { "enabled": true, "destOverride": ["http", "tls"] }, "settings": { "auth": "noauth", "udp": false } } ], "outbounds": [ { "protocol": "vmess", "settings": { "vnext": [ { "address": "mydomain.me", "port": 443, "users": [ { "id": "23ad6b10-8d1a-40f7-8ad0-e3e35cd38297", "alterId": 0 } ] } ] }, "streamSettings": { "network": "ws", "security": "tls", "wsSettings": { "path": "/rayghrh" //与服务器端保持一致 } } } ] }
set ws=WScript.CreateObject("WScript.Shell") ws.Run "F:\v2ray\v2ray.exe -c F:\v2ray\config.json",0
C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup
set ws=WScript.CreateObject("WScript.Shell") ws.Run "F:\clash\clash.exe -f F:\clash\config.yaml",0
「梦想一旦被付诸行动,就会变得神圣,如果觉得我的文章对您有用,请帮助本站成长」
下一篇:V2board搭建教程-后端Docker对接和soga对接v2ray节点篇
求科学离线插件,谢谢!34401355@qq.com
评:改版梅林固件安装SS【shadowsocks】科学上网插件教程求科学离线插件,谢谢!!!
评:改版梅林固件安装SS【shadowsocks】科学上网插件教程