]> git.ipfire.org Git - people/meitelwein/ipfire-2.x.git/commit
snort: Also monitor assigned alias addresses on red.
authorStefan Schantl <stefan.schantl@ipfire.org>
Fri, 16 Oct 2015 16:49:15 +0000 (18:49 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 18 Nov 2015 17:30:59 +0000 (17:30 +0000)
commitc77e962d565b1ae07c9b44e3c864c9bacc9f6b78
tree45781e810924f9a1c13023cbf5ababcd3bd31733
parente9fbc1cecf856ccc7f5f2b2c504aa4318e879a7d
snort: Also monitor assigned alias addresses on red.

These changes will allow snort to also inspect the traffic for
one or more configured alias addresses, which has not been done in the past.

The current situation is, that snort if enabled on red, only inspects
the traffic which is desired to the statically configured red address.

If some alias addresses have been assigned to the red interface the
traffic to these addresses will not be checked by snort and
completely bypasses the IDS.

There is no user interaction required, nor visible-effects or any
backward-compatiblity required, only a restart of snort after the
update process to protect all red addresses.

To do this we will now check if, the RED interface has been set to STATIC (which
is required to use the aliases function) and any aliases have been configured. In
case of this, the modified code will add all enabled alias addresses to the HOMENET
variable in which snort is storing all the monitored addresses.

Fixes #10619.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/initscripts/init.d/snort