cancel
Showing results for 
Search instead for 
Did you mean: 
Post a Question

Regex Policy Installation Issue

Jump to solution

I have an R80.10 installation and I'm attempting to allow access to opendns.  Given that at times there is a name pre-pended to the url of opendns I created the following Regex: [\w:\/\/][\w][-]opendns\.com

When I have this regex defined, used in policy or not, I cannot install policy (error below):

Gateway: 
Policy: Standard
Status: Failed
- Policy installation failed on gateway. If the problem persists contact Check Point support (Error code: 0-2000178).
--------------------------------------------------------------------------------

I remove the regex and things function as expected.

Is there a strict regex format necessary for constructing these??

1 Solution

Accepted Solutions
Jason_Dance
Copper

Re: Regex Policy Installation Issue

Jump to solution

Try this format:

(.*\.|)opendns.com

This allows matching of any text in the third, fourth, fifth etc level of the name like:

www.opendns.com

www.us.opendns.com

-Jason

5 Replies
Danny
Pearl

Re: Regex Policy Installation Issue

Jump to solution

Either try this regex: .*opendns\.com.*

or this without regex: *opendns.com

0 Kudos

Re: Regex Policy Installation Issue

Jump to solution

Tried both those and doesn't match.

Sent from my iPhone

0 Kudos
Jason_Dance
Copper

Re: Regex Policy Installation Issue

Jump to solution

Try this format:

(.*\.|)opendns.com

This allows matching of any text in the third, fourth, fifth etc level of the name like:

www.opendns.com

www.us.opendns.com

-Jason

Re: Regex Policy Installation Issue

Jump to solution

Kudos to you Jason - that worked like a charm!!!!

0 Kudos

Re: Regex Policy Installation Issue

Jump to solution

You can refer the sk121802, you may have to change the url "[\w:\/\/][\w][-]opendns\.com" and use 

"[\w:\/\/][\w][\-]opendns\.com" for this to work. 

@Jason, Thanks for the format.