Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
Juan_Concepcion
Advisor
Jump to solution

Regex Policy Installation Issue

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
Collaborator

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

View solution in original post

5 Replies
Danny
Champion Champion
Champion

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

or this without regex: *opendns.com

0 Kudos
Juan_Concepcion
Advisor

Tried both those and doesn't match.

Sent from my iPhone

0 Kudos
Jason_Dance
Collaborator

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

Juan_Concepcion
Advisor

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

0 Kudos
Kiran_Naidu1
Participant

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.

Leaderboard

Epsum factorial non deposit quid pro quo hic escorol.

Upcoming Events

    CheckMates Events