Community discussions

MikroTik App
 
ochm
just joined
Topic Author
Posts: 19
Joined: Wed Oct 29, 2008 2:58 pm
Location: Czech Republic

L7 regexp

Thu Nov 06, 2014 12:29 am

Hi all,

i need to use regexp

/(^POST \/ HTTP\/1\.[01].*|\s*^Host: somehost\.tld)/mg

which can detect POST to somehost.tld.

The test string what is matched looks like (not really):
-------------------------------------
POST / HTTP/1.0qdf dqgf qf g
dfgd

qwert

qewrt315t

Host: somehost.tld
gf
qwresg
qeg
qefg
---------------------------------------
The regexp was tested at http://regex101.com and works well, but in ROS is some limitation, or i don't know how to use this regexp in ROS L7 rule.

Can anybody help me,please?

Sincerely

Who is online

Users browsing this forum: No registered users and 15 guests