Based on your request
1. For HTTP requests, issue a HTTPS redirect to the client browser.
2. For Non-HTTP requests, insert the "STRING=MLint" header for IIS.
This should work.
when HTTP_REQUEST {
if { [TCP::local_port] eq 80 } {
Send HTTP redirect to browser
HTTP::redirect "https://[HTTP::host][HTTP::uri]test"
} else {
Add header with name "STRING" and value "MLint"
to be sent to backend webserver
HTTP::header insert STRING "MLint"
}
}
Now, this didn't include a filter for source IP but that could easily be done with an elseif instead of the else testing for the IP::client_addr against either an address (10.10.10.10), a masked address (ie. 10.10.10.0/24), or an address class using the matchclass command.
Hope this helps...
-Joe