I need to require client certificates on a site in IIS for any request that does not originate from the local network. Any local requests should not require client certificates. Is there a way to do this in IIS? I was thinking of configuring IIS to allow client certificates but not require them and then use a custom HttpModule that would check the originating IP address and kick back anything not from the local network that didn't include a client certificate.
Will that work? How would you solve the problem?