c# - 将 Kestrel 暴露于外界的风险

标签 c# asp.net iis asp.net-core

我知道不建议将 Kestrel Web 服务器暴露给外界,但将 Kestrel 置于 IIS 之后所损失的性能并不是一件可以轻易忽略的事情。 (事实上​​ ,迁移到 .net core 可能会失去所有获得的性能。)

所以我想尝试一下:

我想知道在将 Kestrel 暴露给外界时,我是否应该注意一些事情,特别是在安全方面?

提前致谢。

最佳答案

安全风险的定义有些模糊,但基本的答案是 Kestrel 没有更成熟的 Web 服务器(如 IIS)所具有的针对攻击的强化能力。

文档中提供了完整的说明:https://learn.microsoft.com/en-us/aspnet/core/fundamentals/servers/ .这是相关部分:

The most important reason for using a reverse proxy for edge deployments (exposed to traffic from the Internet) is security. Kestrel is relatively new and does not yet have a full complement of defenses against attacks. This includes but isn't limited to appropriate timeouts, size limits, and concurrent connection limits.

关于c# - 将 Kestrel 暴露于外界的风险,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43239596/

相关文章:

c# - 限制使用未签名程序集中的程序集

长时间运行请求期间 ASP.NET session 超时

asp.net - web.config 中加密连接字符串的意义是什么?

.net - IIS 7.5 - 没有扩展名的文件导致错误 404.17

javascript - JS : XMLHttpRequest only works on specific file extensions?

c# - 在 Visual Studio 2015 RC 中使用 intelliTest 记录每个运行的测试场景

c# - 在没有 System.Windows.Forms.Clipboard 的情况下复制到剪贴板?

c# - 为什么要编译?

asp.net - 验证 RadioButtonGroup 客户端

iis - 在IIS 6.0中更改默认语言环境