Hello All,<br>
<br>
I was wondering which of the two formats below would you use when filtering using syslog-ng:<br>
<br>
filter f_pix { match(PIX)
and not
match("1.2.3.4|1.2.3.4|1.2.3.4|1.2.3.4|netmask("<a href="http://1.2.3.4/28")|netmask("1.2.3.4/20")|netmask("1.2.3.4/22")|netmask("1.2.3.4/28")">1.2.3.4/28")|netmask("1.2.3.4/20")|netmask("1.2.3.4/22")|netmask("1.2.3.4/28")
</a>")<br>
};<br>
<br>
or......<br>
<br>
filter f_pix { match(PIX)<br>
and not match(<a href="http://1.2.3.4">1.2.3.4</a>)<br>
and not match(<a href="http://1.2.3.4">1.2.3.4</a>)<br>
and not match(<a href="http://1.2.3.4">1.2.3.4</a>)<br>
and not match(<a href="http://1.2.3.4">1.2.3.4</a>)<br>
and not match(netmask("<a href="http://1.2.3.4/28"))">1.2.3.4/28"))</a><br>
and not match(netmask("<a href="http://1.2.3.4/20"))">1.2.3.4/20"))</a><br>
and not match(netmask("<a href="http://1.2.3.4/22"))">1.2.3.4/22"))</a><br>
and not match(netmask("<a href="http://1.2.3.4/28"))">1.2.3.4/28"))</a><br>
};<br>
<br>
I am currently using the latter, but it seems as if the individual ips
and subnets would only be filtered if ALL is true. Would using "|", like<br>
in the first format, check for each individual ip or subnet and filter
accordingly? When I say filter I mean, I would like everything except
for the individual IPs and subnets specified. I am not certain that
this is appropriate format for filtering subnets, please advise....<br>
<br>
Thank You, in advance for your assistance!!!<br>