gpt4 book ai didi

iis-7 - IIS 7 - 如何将 IPv6 地址添加到 IIS IP 限制列表?

转载 作者:行者123 更新时间:2023-12-01 10:52:43 26 4
gpt4 key购买 nike

我们这里有大量 IPv4 地址限制对 API 的访问。问题是,我需要允许本地服务器连接到自身进行测试和诊断,但即使我将本地 IPv4 范围添加到允许列表,它也不起作用。

我的理论是,因为 IPv6 是在本地配置的,所以它在连接中(与自身)使用此协议(protocol),因此它仍然被阻止。

如何将 IPv6 地址添加到 IIS IP 限制列表?

最佳答案

这回答了你的问题了吗?
http://blogs.iis.net/nazim/archive/2008/05/03/using-ipv6-with-iis7.aspx

... The inetmgr UI has an artificial restriction for allowing only IPv4 addresses and this is mostly because of test constraints on our part. However, you can easily configure this in our configuration file (applicationHost.config), and here are what entries look like for both a specific address and an address range for both IPv4 and IPV6:


<ipSecurity allowUnlisted="true">
<add ipAddress="10.199.199.199" allowed="false" />
<add ipAddress="12.14.0.0" subnetMask="255.255.0.0" allowed="false" />
<add ipAddress="2001:4898:2a:5:c4ad:9291:22b1:c870" subnetMask="ffff:ffff::" allowed="false" />
</ipSecurity >

关于iis-7 - IIS 7 - 如何将 IPv6 地址添加到 IIS IP 限制列表?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17165803/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com