0

IIS 6.0 で実行されている Web サイトがあります。この Web サイトはフレームワーク 4.0 の asp.net です。クライアントでホストされていないアプリケーションがあり、私たちの側でホストされています。クライアントは、特定の IP に対してのみアクセスを許可するよう求めます。

そこで、次のように web.config に IP のリストを追加しました。

<security>
  <ipSecurity allowUnlisted="false">    
    <clear/> <!-- removes all upstream restrictions -->
    <add ipAddress="XXX.XXX.XXX.114" subnetMask="255.255.255.0" allowed="true"/>
<add ipAddress="XXX.XXX.XXX.85" subnetMask="255.255.255.0" allowed="true"/>
   </ipSecurity>
 </security>

この例では、2 つの IP だけがサイドにアクセスできます。追加の手順を実行する必要がありますか? が機能していないためです。それはそれを行うための最良の方法ですか?ありがとうございました。

4

1 に答える 1

0

あなたの答えはこのリンクにあると思いますIP Security

    Compatibility

    Version   Notes

IIS 7.5     The <ipSecurity> element was not modified in IIS 7.5.

IIS 7.0     The <ipSecurity> element was introduced in IIS 7.0.

IIS 6.0     The <ipSecurity> element replaces the IIS 6.0 IPSecurity metabase property.
于 2012-10-15T23:35:23.117 に答える