现在支持同一个 IP 开多个 HTTPS 网站的 SNI,是会在请求的最开始加上想要访问的域名的;所以同一个 IP、同一个端口,在握手前实现 IP 黑白名单是做得到的;效果就是该 IP 能访问同一 IP 的其它域名,但是访问指定域名就握手失败,看起来像该 IP 上没有架设指定网站。 (跑个题,这一步是明文的,所以在中国大陆,部分 https 网站上不去,也是在这一步被 XX )
lsylsy2
2018-05-28 16:57:22 +08:00
@mashiro233 http://nginx.org/en/docs/http/configuring_https_servers.html In order to use SNI in nginx, it must be supported in both the OpenSSL library with which the nginx binary has been built as well as the library to which it is being dynamically linked at run time. 看起来是把很多工作交给 openssl 库了