返回列表 發帖
回復 45# 角色
師兄,我也是跟住企業號設定。前5頁設定已經包括Server and Client.  如果玩WS + TLS,只要注意Let's Encrypt和KingWilliam config.json.如果大家唔明,我哋討論一下。
https://www.enterpr1se.info/2017/10/v2ray-gfw-asuswrt-merlin/
另外,我試咗一晚,WS+TLS非常穩定 XD。

TOP

经过你的测试,你说的组合ws + tls不错,我在努力中。。。。

现在我就是Let's Encrypt里卡住,因为Let‘s Encrypt需要用到hostname,我也有,也按照需要用sftp方式,但是估计到下载cert的是,对方的machine IP要进入local machine,要我enable,因为我前面还有好几个router,所以都不知道怎样解决到。

出现下面的信息:

SFTP Connection Failed. Please check that all fields are correct. If there is a firewall then temporarily disable it or make an exception for "67.222.10.211".

上面的IP是美国IP address,如果这一步能解决,后面应该问题不大。

TOP

本帖最後由 slemon 於 2019-3-25 17:26 編輯

回復 47# 角色
不是所有DDNS都支持Let's Encrypt.  比如Namecheap Domain就是不支持

這個link有用嗎?
https://youtu.be/IjL3D9km3II

TOP

本帖最後由 kingwilliam 於 2019-3-25 18:23 編輯

回復 47# 角色

C hing, 每一層router你何admin嗎? 每層開放port 21可以嗎?

或 直接安裝  caddy, 因caddy 可自行申請letsencrypt電子證書。

TOP

因为PCCW家用的broadband没有开放port 80,所以我用FTP method,但是我选用了sftp方法,我还以为可以用自己定义的port,例如hostname:8xxx, router port forward to internal v2ray server port 22。谁知道对方进入如果用sftp,一定用port 22入,还有不止,还要用port 21 (ftp)(还在set)。

之前的问题
  1. SFTP Connection Failed. Please check that all fields are correct. If there is a firewall then temporarily disable it or make an exception for "67.222.10.211".
複製代碼
, 就不再出现。

还在努力中。。。。。。setup ftp server

TOP

C hing 加油

TOP

I got the following error when the port 21 and 22 were suitably re-directed to the correct machine. However Let's Encrypt requires the directory being publicly accessible through port 80, which is impossible for domestic subscribers of PCCW.
  1. Server error 0. Make sure directory is publicly accessible through port 80. Turn off password protection temporarily if on. Ask your host if unsure about the directory or try using an FTP client or >web FTP if you do not have an FTP client to try finding it out.
複製代碼
.

I have to make a pause for this issue and attempt to use the self-signed certificate method.

TOP

TOP

本帖最後由 角色 於 2019-3-26 01:49 編輯

回復 53# slemon

谢谢CHing,我测试过,是的,没有blocked,这样我又可以继续。

Caddy info
https://medium.com/@jestem/caddy ... %94%A8-1e6d25154804

TOP

本帖最後由 角色 於 2019-3-26 09:30 編輯

终于到凌晨三点半,把需要certificates gen了出来!

感谢kingwilliam和selmon两位CHing信息,不然都不知道错在哪里!!!



More information from Let's encrypt

Installing your SSL Certificate
The easiest way to install the SSL certificate is to contact your host, developer or admin. Most of the time your host will install it for free. You can also view ssl certificate installation tutorials depending on your server setup.

If you use IIS and need a PFX file then follow the instructions in the following link to convert the certificate and private key file into a .PFX file - http://stackoverflow.com/a/17284371 (Install openssl and run openssl pkcs12 -export -out "certificate_combined.pfx" -inkey "private.key" -in "certificate.crt" -certfile ca_bundle.crt in a command prompt with path set to location of downloaded certificate files or use https://www.digicert.com/util/)

If you have any issues with certain browsers like Android not recognizing the certificate then test your server SSL configuration on SSL Labs and fix any errors shown.

If you get an error saying the certificate and key do not match then contact your host asking for the key type they accept. If they require the old RSA key type then download OpenSSL and execute the following command on the private key file: openssl rsa -in private.key -out private_rsa.key

If you need the private key in PEM format then install OpenSSL and run the following on the private key file: "openssl rsa -in private.key -text > private.pem"

If you need the multiple certificates in PEM format or everything in PEM format then first convert your private key to PEM format above then follow these instructions.
附件: 您需要登錄才可以下載或查看附件。沒有帳號?註冊

TOP

回復 55# 角色
Congratulations !!!

TOP

终于改好了V2Ray指ws + tls!!!(用美国vps),下一步就是用V2Ray ws + tls + web。

TOP

回復 57# 角色

C hing 加油

TOP

本帖最後由 角色 於 2019-3-27 15:16 編輯

回復 58# kingwilliam

我也用caddy,问题是如果运行caddy,v2ray就有error,要stop了caddy。

还有我按照白话文[1], Caddyfile
  1. mydomain.me (changed to my hostname)
  2. {
  3.   log ./caddy.log
  4.   proxy /ray localhost:10000 {
  5.     websocket
  6.     header_upstream -Origin
  7.   }
  8. }
複製代碼
,

都不知道怎样处理?CHing是否有suggestion?

In order to start up the web server, I need more information about setting Caddyfile [2,3].

Ref. [4] is also a good example of using vmess + tls + websocket。用户的client node用443过海,然后转12345。所以不会有冲突!!!劲!!!!

References:
[1] https://toutyrater.github.io/advanced/wss_and_web.html
[2] https://ellinia.me/Use_caddy_to_reverse_proxy_project_v/
[3] https://ellinia.me/Use_caddy_to_reverse_proxy_project_v_2/
[4] https://3mile.top/archives/2018/07/21/

TOP

现在单独v2ray: ws + tls是没有问题,单独用caddy建立网站也没有问题,但是两者合起来就出问题,依据[1], 服务端的caddy 实收到client v2ray node的443 packets,caddy+tls,然后用ws跟remote vps连接。但是都不成功。

Reference(s):
[1] https://steemit.com/v2ray/@wuming/v2ray-websocket-tls-caddy-443

TOP

返回列表