summaryrefslogtreecommitdiffstats
path: root/lib/network/ifw.pm
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2008-03-04 21:20:55 +0000
committerOlivier Blin <oblin@mandriva.com>2008-03-04 21:20:55 +0000
commitcde5d02c67078975cb1de867f914acde4c7c0ed9 (patch)
treed3f6ceed4bb28a659bc9f8758d32d0d19b7f0f08 /lib/network/ifw.pm
parentc951926f4ceade475301fc00b4af61ffdecbdd08 (diff)
downloaddrakx-net-cde5d02c67078975cb1de867f914acde4c7c0ed9.tar
drakx-net-cde5d02c67078975cb1de867f914acde4c7c0ed9.tar.gz
drakx-net-cde5d02c67078975cb1de867f914acde4c7c0ed9.tar.bz2
drakx-net-cde5d02c67078975cb1de867f914acde4c7c0ed9.tar.xz
drakx-net-cde5d02c67078975cb1de867f914acde4c7c0ed9.zip
add support for "new connection" messages
Diffstat (limited to 'lib/network/ifw.pm')
-rw-r--r--lib/network/ifw.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/network/ifw.pm b/lib/network/ifw.pm
index 44f58da..1148605 100644
--- a/lib/network/ifw.pm
+++ b/lib/network/ifw.pm
@@ -129,11 +129,13 @@ sub attack_to_hash {
$attack->{prefix} eq 'SCAN' ? N("Port scanning")
: $attack->{prefix} eq 'SERV' ? N("Service attack")
: $attack->{prefix} eq 'PASS' ? N("Password cracking")
+ : $attack->{prefix} eq 'NEW' ? N("New connection")
: N(qq("%s" attack), $attack->{prefix});
$attack->{msg} =
$attack->{prefix} eq "SCAN" ? N("A port scanning attack has been attempted by %s.", $attack->{hostname})
: $attack->{prefix} eq "SERV" ? N("The %s service has been attacked by %s.", $attack->{service}, $attack->{hostname})
: $attack->{prefix} eq "PASS" ? N("A password cracking attack has been attempted by %s.", $attack->{hostname})
+ : $attack->{prefix} eq "NEW" ? N("%s is connecting on the %s service.", $attack->{hostname}, $attack->{service})
: N(qq(A "%s" attack has been attempted by %s), $attack->{prefix}, $attack->{hostname});
$attack;
}