微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

nginx – LetsEncrypt无法连接以验证域(超时)

我正在尝试使用LetsEncrypt为我的Nextcloud服务器设置SSL证书,但是当我运行时:

$sudo certbot certonly --webroot -w /var/www/nextcloud --agree-tos \
     --no-eff-email --email email@domain.com -d cloud.domain.com --rsa-key-size 4096

(基于本教程:https://howto.wared.fr/ubuntu-installation-nextcloud-nginx/)

我收到此错误消息:

Failed authorization procedure. cloud.domain.com (http-01): urn:acme:error:connection :: 
The server Could not connect to the client to verify the domain ::
Fetching http://cloud.domain.com/...: Timeout during connect (likely firewall problem)

(我已经打开防火墙端口80和443)

由于我的路由器只使用IPv6,我无法设置端口转发指向我的服务器(ubuntu 18.04),这是最有潜在的问题吗?如果是,我是否必须联系我的ISP以重新启用IPv4?

如果不是,它会是什么?

解决方法:

您肯定需要确保在路由器上启用公共IPv4.没有它,只有少数人能够连接到你,考虑到,我相信你的服务器上有一些防火墙问题.请发布:

sudo iptables --list --verbose --line-numbers

As my router only uses IPv6, I Could not set up the port forwarding to point on my server (ubuntu 18.04), is that the most potential problem? If yes, do I have to contact my ISP to re-enable IPv4?

由于我没有完全掌握这句话,我会说:

>您需要在路由器上分配IPv4公共IP地址
>如果您没有,那么是的,您需要联系您的提供商

之后,请确保已将路由器80和443从路由器转发到服务器.

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐