=for HTML =head1 NAME App::Monport - Monitor network ports for changes =head1 SYNOPSIS Run this to see available commands: $ monport =head1 DESCRIPTION Use this application to find out whether some new ports have been opened or existing ones have been closed. New open ports mean bigger attack surface and consequently higher security risk. On the other hand if a port gets closed it might indicate a problem with a network service. The application works by comparing the actual state of ports (open or closed) with the baseline scan. Any differences found are reported (via command line interface, email, L). C is used for doing the port scanning so you need to have it installed. First you should run a base scan, like: $ monport base --name "test scan" localhost 192.168.1.0/24 Later on check whether some changes in ports' state took place: $ monport diff --name "test scan" 192.168.1.10 () has changes in port(s) state 3333 (dec-notes) -- not-open => open To check regularly create a cronjob like: PERL5LIB=/home/jdoe/perl5/lib/perl5 * 21 * * 5 /home/jdoe/perl5/bin/monport diff --name "test scan" --email jdoe@example.com To list the executed base scans: $ monport list noname test scan To see the results of the base scan: $ monport list -p -n 'test scan' Base scan done: Fri Feb 12 08:41:06 2016 127.0.0.1 (localhost) 22 (ssh) =head1 INSTALLATION To install this module run: $ cpan App::Monport or $ cpanm App::Monport when using L. To install manually clone the L and then run (on Unix): perl Build.PL ./Build ./Build test ./Build install For more see L or L instructions. =head1 SOURCE REPOSITORY L =head1 AUTHOR Jozef Reisinger, Ereisinge@cpan.orgE =head1 COPYRIGHT AND LICENSE This software is copyright (c) 2015 by Jozef Reisinger. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.