08-20-2003 09:16 AM
Would like some guidance on how to correctly setup my Cisco Content engine with rules to divert HTTP requests containing references to certain file types (.exe, .scr ,etc) to Trend Micro VirusWall scanner proxy.
We do not want ALL HTTP requests to go to the proxy.
Brad Hanson
HealthPartners
Solved! Go to Solution.
08-20-2003 10:57 PM
Brad,
the commands are :
rule use-proxy
rule enable
ie:
rule use-proxy 1.1.1.1 8080 url-regex "\.[exe|gif|jpg]^"
Gilles.
08-20-2003 10:57 PM
Brad,
the commands are :
rule use-proxy
rule enable
ie:
rule use-proxy 1.1.1.1 8080 url-regex "\.[exe|gif|jpg]^"
Gilles.
08-26-2003 08:00 AM
hey thanks. this almost does it...
the redirect to the trend micro antivirus check seems to be working like a champ!
i'm wondering about the syntax of your sample rule. I am not the best at regex but it seems that the caret (^) is a start of string anchor and we are looking for end of string match?
I have one that looks like:
rule use proxy 1.1.1.1 5000 url-regex ".+\..+/.+\.(doc|exe|zip|com)$"
to scan anything, dot, anything, slash, anything, and ending with dot and any of doc, exe, zip or com.
wondering if i don't do this that a domain reference ending in dot com would end up with a rule match from time to time.
thanks!!!
brad hanson
healthpartners
08-27-2003 01:23 AM
Brad,
you're correct - the end of line is '$'.
Your regexp looks good.
you can use the command 'sho statistic rule all' to see if there is any hits for this rule.
Gilles.
09-19-2003 10:39 AM
well, now we have to reexamine how this works.. AFTER putting a protocol monitor on the net to watch what traffic was being redirected by the rule, it appears that a simple regular expression isn't going to be able to determine what to send over to the proxy for virus scanning.
the URL string contains the full URL, which may include additional data.
the string:
http://www.site.com/myfile.html?a=www.site.com
will pass if we are looking for files ending in a .com, for example...
I'm looking for an expression that will determine if the document being requested ends with certain extensions, such as com/exe/bin/scr/dll/ etc.
Any ideas on the string that would actually allow this? thanks!!!!
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide