Cisco Support Community
Showing results for 
Search instead for 
Did you mean: 

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. If you'd prefer to explore, try our test area to get started. And see here for current known issues.

New Member

Problem adding URL to whitelist using Regex.

We have a Cisco 5525 ASA, and we have a Whitelist where only the agents are allowed to go to specific websites.

I am using the following commands to add a new URL to a list which was preconfigured by another IT member:


(config)# regex allowurl1 "facebook\.com"

(config)# class-map type inspect http match-all allow-url-class2

(-cmap)# match not request header host regex allowurl1


#wr mem

the following commands added the new URL to the whitelist, but the other websites stopped working.

We were trying to fix the problem, and the firewall crashed on us !

After the restart all the websites went back working fine, and all the added websites are working fine as well !

I heard from other IT workers I know, that this is a bug in 5525 ASA, and to avoid it i need to take service policy off then re-enable it when am done.

I need to add other websites to our network, I would like to know if any one had  a similar situation, and the way i can avoid it.

Thanks in advance for your help.

Best Regards.

Everyone's tags (2)

Problem adding URL to whitelist using Regex.

The simlest solution to match against several regex might be to use a regex-class with a match any.

In your http class-map you then use regex-class instead of regex.

Here is a brief decription:

New Member

Problem adding URL to whitelist using Regex.

Thanks for the reply,
I read the article you sent, but I do not have the permission to change the Firewall configuration. They were made by a Cisco CCIE Engineer, am only allowed to modify (add websites)... on my other locations am using Kaspersky to Block URL and its User friendly and easy to change and modify.

But for this location am stuck with the Firewall URL allowed LIST ... I made the changes last time and they worked but after the Firewall crashed ! and required a manual restart. I want to see how I can do the changes again but avoid the crashing part. Is it related to service policy ?


Problem adding URL to whitelist using Regex.

Why do you ask us if you can't change anything?