.Net module install

IMPORTANT

This guide only applies to Next-Gen WAF customers with access to the Next-Gen WAF control panel. If you have access to the Next-Gen WAF product in the Fastly control panel, you can only deploy the Next-Gen WAF with the Edge WAF deployment method.

Requirements

Install

  1. Download the latest Next-Gen WAF module for .Net via one of these methods:

  2. Extract the contents of sigsci-module-dotnet-x.x.x.zip to your application's bin directory.

  3. Add the following sections to your application's web.config file:

    1<configuration>
    2 ...
    3 <configSections>
    4 <section name="SignalSciencesModule" type="SignalSciences.ModuleConfiguration"/>
    5 </configSections>
    6
    7 ...
    8 <system.webServer>
    9 <modules>
    10 <add name="SignalSciencesModule" type="SignalSciences.HttpModule"/>
    11 </modules>
    12 </system.webServer>
    13 ...
    14
    15 <SignalSciencesModule agentEndPoint="127.0.0.1:737" />
    16 ...
    17</configuration>
  4. Restart the web site service.

NOTE

Ensure the AgentEndPoint value is set to the same IP and port configured with the Next-Gen WAF agent's rpc-address value. See the Windows agent installation documentation for additional information about Windows agent configuration options.

.NET module configuration

OptionDefaultDescription
agentEndPointrequired, no defaultThe TCP endpoint (host:port) that the Agent is listening on. host can be either a hostname or an IPv4 or IPv6 address.
filterHeadersoptional, no defaultComma-separated list of request and response headers that should not be sent to the Agent. Case insensitive. Regardless of configuration, it always includes Cookie, Set-Cookie, Authorization and X-Auth-Token.
agentRpcTimeoutMillisoptional, default: 200Maximum number of milliseconds allowed for each RPC call to the Agent.
agentConnectionPoolSizeoptional, default: 10Number of connections that, once opened, will be retained in a pool.
maxPostSizeoptional, default: 100000A request body above this size will not be sent to the Agent.
anomalySizeoptional, default: 524288If the HTTP response is this size or larger, log it with the Agent.
anomalyDurationMillisoptional, default: 1000If the response took longer than this number of milliseconds, log it with the Agent.

Sample advanced .NET module configuration

1<SignalSciencesModule
2 agentEndPoint="127.0.0.1:737"
3 filterHeaders="X-My-Private-Header, X-My-Other-Header"
4 agentRpcTimeoutMillis="200"
5 agentConnectionPoolSize="10"
6 maxPostSize="100000"
7 anomalySize="524288"
8 anomalyDurationMillis="1000"
9 />
Was this guide helpful?

Do not use this form to send sensitive information. If you need assistance, contact support. This form is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.