bannedbook / fanqiang

翻墙-科学上网
38.66k stars 7.29k forks source link

V2Ray之TLS+WebSocket+Nginx+CDN配置方法 #821

Closed bigjimmy546 closed 1 year ago

bigjimmy546 commented 1 year ago

V2Ray之TLS+WebSocket+Nginx+CDN配置方法

依照这个教程,无法访问nginx的网站, 也无法使用shadowrocket连接 nginx的配置使用github的通用配置文件 ,v2ray 也是依照教程里面的只是变更uuid 测试都没有出错

nginx -t nginx: the configuration file /etc/nginx/nginx.conf syntax is ok nginx: configuration file /etc/nginx/nginx.conf test is successful

/usr/local/bin/v2ray test -config /usr/local/etc/v2ray/config.json V2Ray 5.7.0 (V2Fly, a community-driven edition of V2Ray.) Custom (go1.20.4 linux/amd64) A unified platform for anti-censorship. Configuration OK.

请问可以如何查错? 谢谢

bannedbook commented 1 year ago

无法访问nginx的网站,是哪个端口,是不是 防火墙没开端口 用这个工具测下端口 https://ping.pe/

bigjimmy546 commented 1 year ago

測試端口沒有反應 但是端口是開的

Screenshot 2023-08-04 at 11 10 25 AM
bannedbook commented 1 year ago

ufw allow 80/tcp

bigjimmy546 commented 1 year ago

Ufw disabled

On Fri, Aug 4, 2023 at 11:12 AM 如何翻墙 @.***> wrote:

ufw allow 80/tcp

— Reply to this email directly, view it on GitHub https://github.com/bannedbook/fanqiang/issues/821#issuecomment-1664911684, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABZYU2F6SNVUU6FMSQG7EVTXTRSDLANCNFSM6AAAAAA3DTCEJU . You are receiving this because you authored the thread.Message ID: @.***>

bannedbook commented 1 year ago

是不是有其它防火墙

bigjimmy546 commented 1 year ago

應該是沒有,oracle 的network也開啟了80,443

bannedbook commented 1 year ago

那就不清楚了 端口启动了,但是外面连不了,你自个研究研究吧

Alvin9999 commented 1 year ago

alter id是多少

bigjimmy546 commented 1 year ago

0

On Fri, Aug 4, 2023 at 7:14 PM 自由上网 @.***> wrote:

alter id是多少

— Reply to this email directly, view it on GitHub https://github.com/bannedbook/fanqiang/issues/821#issuecomment-1665442777, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABZYU2D3E6DZUIEAN4DEBXDXTTKQ5ANCNFSM6AAAAAA3DTCEJU . You are receiving this because you authored the thread.Message ID: @.***>

Alvin9999 commented 1 year ago

0 On Fri, Aug 4, 2023 at 7:14 PM 自由上网 @.> wrote: alter id是多少 — Reply to this email directly, view it on GitHub <#821 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABZYU2D3E6DZUIEAN4DEBXDXTTKQ5ANCNFSM6AAAAAA3DTCEJU . You are receiving this because you authored the thread.Message ID: @.>

那就不知道了

bigjimmy546 commented 1 year ago

可以了,我另外有安裝VPN服務器。

編輯 /etc/iptables/rules.v4 在这一行 -A INPUT -p tcp --dport 22 -j ACCEPT 紧接着下面添加需要的防火墙规则。

-A INPUT -p tcp --dport 80 -j ACCEPT -A INPUT -p tcp --dport 443 -j ACCEPT

重啟所有的服務現在可以使用了太感謝。