PCRE text search engine (ts_pcre)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

PCRE2 has been ported to linux kernel.

https://github.com/xnsystems/kpcre

You can filter packets using PCRE syntax like below.

iptables -A INPUT -p tcp -m string --string "/[Hh]ello.+World
[^/r/n]{20}/i" --algo pcre -j DROP

I hope it helps. :)

Best regards,
Seongmyun Cho
--
To unsubscribe from this list: send the line "unsubscribe netfilter" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux