B
B
bugaga01123582012-06-19 15:25:44
Computer networks
bugaga0112358, 2012-06-19 15:25:44

MikroTik RB750 + RouterOS v 5.6 + regular expressions = ?

Good day to all.

There is a piece of iron RB750.
I try to specify the string “get” as a regexp for the 7th level protocol and for the test I block this protocol in the Filter table. As a result, GET requests from the browser do not work. OK, so far so good. I change the text "get" to its HEX equivalent "\x47\x45\x54" (protocol blocked earlier). As a result, GET requests work. Can, who faced? Or at least, advise a description of the syntax of regular expressions for the specified version of the OS. I searched myself - I did not find it. Thanks in advance.
/ip firewall layer7-protocol> print
# NAME REGEXP
0 get_request get


/ip firewall layer7-protocol> print
# NAME REGEXP
0 get_request \x47\x45\x54



Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
akelsey, 2015-07-07
@akelsey

I remember that before the 6th version there was an error in the implementation of the layer7-protocol - the problem was with the case of letters, you seem to be in lower case, but it was quite possible that there were other problems. Try updating to the latest version 6.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question