Using IP-Ranges for Admin area allowed ip

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
9 anos atrás
Hi

Is it possible to use ip ranges instead of ip addresse to configure the admin area allowed ip? if yes, which format is used?

Thanks and best regards
Fabio Renggli
9 anos atrás
Currently you can put multiple ip addresses with comma separation. To set a IP range, there should have a way to put IP and subnet mask. But unfortunately, there is no way to put subnet mask in admin area.

Anyway, there is a work round, following configuration shows how only the IP-Range 127.0.0.1 to 127.0.0.254 are allowed to access /admin area

Web.Cofig -> configuration tag

<location path="admin">
    <system.webServer>
      <security>
        <!--IP Restriction Deny all, but allow specific IPs or networks-->
        <ipSecurity allowUnlisted="false">
          <!-- removes all upstream restrictions -->
          <clear/>
          <!--allow IP range 127.0.0.1, 127.0.0.2, 127.0.0.3  and so on-->
          <add ipAddress="127.0.0.1" subnetMask="255.255.255.0" allowed="true" />
        </ipSecurity>
      </security>
    </system.webServer>
</location>
5 anos atrás
Will this solution still work for v4.00?
Is this the only workaround for wildcard IP addresses?
5 anos atrás
Bump!  We would love a wildcard option.
4 anos atrás
I have Nop 4.0, those this solution work for version 4.0.  It seems to be blocking all of the IP addresses.
<location path="admin">
    <system.webServer>
      <security>
        <!--IP Restriction Deny all, but allow specific IPs or networks-->
        <ipSecurity allowUnlisted="false">
          <!-- removes all upstream restrictions -->
          <clear/>
          <!--allow IP range 127.0.0.1, 127.0.0.2, 127.0.0.3  and so on-->
          <add ipAddress="127.0.0.1" subnetMask="255.255.255.0" allowed="true" />
        </ipSecurity>
      </security>
    </system.webServer>
</location>
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.