无法从打开服务器防火墙的 LAN 访问 IIS 7 上托管的站点

发布于 2024-11-10 07:09:29 字数 199 浏览 3 评论 0原文

我有一个托管在 IIS 7 上的 MVC 站点。从服务器本身访问时它工作正常。

但是,当我尝试从与服务器相同的 LAN 访问它时,无法访问网站。

接下来,我禁用了服务器上的 Windows 防火墙,并且可以从 LAN 内访问该站点。

我希望启用防火墙并能够访问该网站。

我必须在防火墙中启用什么?

谢谢。

I have an MVC site hosted on IIS 7. It works fine when accessed from the server itself.

However when I tried to access it from the same LAN as the server's the website wasn't reachable.

Next I disabled the windows firewall on the server and the site was accessible from within the LAN.

I would like to have the firewall enabled AND be able to access the site.

What do I have to enable in the firewall?

Thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

深空失忆 2024-11-17 07:09:29

好吧,这是一个老问题,但我刚刚找到了您需要打开的入站规则。希望截图可以帮助其他人。

Win7-firewall-inbound-BranchCache 内容检索 (HTTP-In)
在此处输入图像描述

Ok, it was an old question, but I just found the inbound rule you need turn on. Hope the screenshot can help others in future.

Win7-firewall-inbound-BranchCache Content Retrieval (HTTP-In)
enter image description here

如何视而不见 2024-11-17 07:09:29

尝试在 Windows 防火墙中打开端口。进入防火墙设置中的“高级设置”,检查入站规则并根据需要添加端口。

Try opening the port in Windows Firewall. Go to "Advanced Settings" in the Firewall setup and check the inbound rules and add the port if necessary.

仅此而已 2024-11-17 07:09:29

我遇到了完全相同的问题,但我系统中的防火墙是由 ESET smart security 管理的。就我而言,我无法从启用防火墙的计算机访问该站点。我想添加我的答案,以便它可以帮助那些在 ESET 中遇到此问题的人。

  1. 最初,我禁用了防火墙并访问了该网站。
  2. 访问该站点时,我使用“ESET SysInspector -> 网络连接”检查了用于连接的端口。发现我网站的端口被程序“system”使用。
  3. 然后我进入ESET的“高级设置->网络->个人防火墙->规则和区域”。单击“区域和规则编辑器”下的“设置”。
  4. 单击“切换应用程序树视图”。然后在“应用程序/规则”栏下,展开“系统”,找到规则“拒绝系统通信”,该规则被设置为“拒绝”“Internet in”。我将网站的本地端口设置为“允许”,然后一直单击“确定”,并且能够在启用防火墙的情况下访问我的网站。

I had the exact same issue, but the firewall in my system is managed by ESET smart security. In my case, I was not able to access the site from my machine with the firewall enabled. I wanted to add my answer so that it helps someone who is facing this issue with ESET.

  1. Initially, I disabled the firewall and accessed the site.
  2. While accessing the site, I checked the ports being used for the connections using "ESET SysInspector -> Network Connections". Found that my site's port was being used by the program "system".
  3. Then I went to ESET's "Advanced setup -> Network -> Personal firewall -> Rules and zones". Clicked on "setup" under "zone and rule editor".
  4. Click on "Toggle application tree view". Then under the column "Application/Rule", expanded "System" and found the rule "Deny communication for System" which was set to "Deny" for "Internet in". I set it to "Allow" for my site's local port and clicked "Ok" all the way out and was able to access my site with firewall enabled.
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文