QQ群:397745473
327_server00搭点免费节点
参考与准备工作
1 2 3 4 5 6
| 视频: https://www.youtube.com/watch?v=p78uApKdQDU 文字: https://appscross.com/blog/set-up-a-wss-proxy-and-bypass-node-on-sero00-vps.html
注册账号: https://serv00.com/ panindex: https://github.com/k0baya/panindex-freebsd 临时邮箱: https://mail.tm/zh/
|
操作细节
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 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
| 1. 打开临时邮箱把 serv00 账号注册好 您已登录为:janetanice@navalcadets.com 密码: ]>)wx;trr/
2. 注册后在邮件里获取控制面板信息 Login: janetanice Password: dy1lDUXX17Ceb0xE^zbj SSH/SFTP server address: s4.serv00.com Home directory: /usr/home/janetanice DevilWEB webpanel: https://panel4.serv00.com/
ssh janetanice@s4.serv00.com
3. 登陆后台搭建panindex 开启端口: Port reservation --> Add port 50249
Additional services --> Run your own applications --> enable (这里需要注意一定要重新连一下终端, 不然会提示没有权限)
# https://github.com/k0baya/panindex-freebsd tmux new -n pan -s pan wget https://github.com/k0baya/panindex-freebsd/releases/download/v3.1.5/PanIndex && chmod 755 PanIndex mkdir pan && mv PanIndex && cd pan cat > "config.json" << EOF { "host": "0.0.0.0", "port": 50249, "log_level": "info", "data_path": "./data", "cert_file": "", "key_file": "", "config_query": "", "db_type": "sqlite", "dsn": "./data.db" } EOF
mv pan ./domains/xxxx.serv00.net/ #将xxxx替换为实际的用户名
cd ~/domains/xxxx.serv00.net/pan ./PanIndex -c=config.json http://janetanice.serv00.net:50249/ admin / PanIndex
cron job --> Add cron job --> Specify time: After reboot --> Form type:Advanced tmux new-session -d -s pan && tmux send-keys -t pan 'cd ~/pan/;sleep 5;./PanIndex -c=config.json' C-m
#freebsd Alist
|
https://github.com/uubulb/alist-freebsd/releases
wget https://github.com/uubulb/alist-freebsd/releases/download/v3.35.0/alist
chmod +x alist
随机生成一个密码
./alist admin random
INFO[2024-06-16 13:07:44] username: admin
INFO[2024-06-16 13:07:44] password: P74ld1dG
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
|
4. 绑定自己的域名加ssl SSL --> SSL Management 打2个ip地址做成a记录
5. 再开放一个端口让代理工具使用 34339
# https://github.com/erebe/wstunnel/releases cd ~/repo wget -O wstunnel.tar.gz https://github.com/erebe/wstunnel/releases/download/v9.7.0/wstunnel_9.7.0_freebsd_amd64.tar.gz tar zxvf wstunnel.tar.gz && rm -f wstunnel.tar.gz chmod +x wstunnel tmux new-session -d -s wstunnel && tmux send-keys -t wstunnel 'cd ~/repo/;sleep 5;./wstunnel server wss://0.0.0.0:34339' C-m #请将端口号 34339 替换为实际放行的端口 同样加入到重启执行中. 至此服务端配置全部完成.
|
客户端
1 2 3 4 5 6 7 8
| https://github.com/erebe/wstunnel/releases .\wstunnel client -L socks5://127.0.0.1:8888 https://janetanice.serv00.net:34339 .\wstunnel client -L socks5://127.0.0.1:8888 https://pan.9ggm.com:34339 #请将xxx.xxx.xxx.xxx:18443修改为实际的IP地址和wstunnel server监听端口号
https://github.com/2dust/v2rayN 加个本地socks的监听代理就可以使用了
|
nodejs的方式搭建
1 2 3 4 5
| 下载: https://drive.google.com/file/d/1Rh9V_kh_fqVaI9NCY494rnJHAUoadh6R/view
cd domains/你的域名 npm install ws tmux new-session -d -s ws && tmux send-keys -t ws 'cd ~/domains/pan.9ggm.com;sleep 5;node22 index.js' C-m
|
QQ群:397745473