If check in scripts

Hi to all,

I have setup ssh, torrent and spam firewall detection rules that create address lists. If new address list entry is added, script is sending out email with warning to me.
I want to decrease email count to only spam and torrent. How to make following?
if adresslistentry = “ssh*” don’t send email

ssh has 4 stages and 4 entries in address list table.

How to compare two strings with wildcards? Is it possible in Tik scripting?

Best regards,

Petar

It is possible to use regular expressions.
:if ($adresslistentry~“expression”) do={ …

Hi,

thx for quick reply. So, it should be like this:
:if ($adresslistentry~“ssh”) do={ nothing } else { sendemail …}

in other language: if adresslistentry contains ssh do nothing else sendemail?

Best regards,

Petar

Yes, something like that