Community discussions

MikroTik App
 
stromo
just joined
Topic Author
Posts: 7
Joined: Sun Sep 23, 2012 3:06 pm

layer7 capture groups?

Sun Feb 19, 2017 2:54 pm

According to the POSIX spec, parentheses around a regexp defines a "capture group" which can be recalled later using "\n" notation (e.g., "\1", "\2" ..)
Do any layer7 IP rule matchers allow the captured pattern to be used elsewhere in the rule?

I have an HTTP transaction forwarded through the router with a custom header of the form -
X-Tarpit: <ip address>

For example,
X-Tarpit: 172.35.46.88

I would like to add a firewall rule to [1]detect this pattern, and [2]add the ip address to an IP address list.

TIA!

Who is online

Users browsing this forum: Syn, techcomtecnico and 119 guests