NAME

App::Monport - Monitor network ports for changes

SYNOPSIS

Run this to see available commands:

$ monport

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, twitter). Nmap 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

07 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)

INSTALLATION

To install this module run:

$ cpan App::Monport

or

$ cpanm App::Monport

when using App::cpanminus.

To install manually clone the "SOURCE REPOSITORY" and then run (on Unix):

perl Build.PL
./Build
./Build test
./Build install

For more see StackOverflow or CPAN instructions.

SOURCE REPOSITORY

http://github.com/jreisinger/App-Monport

AUTHOR

Jozef Reisinger, <reisinge@cpan.org>

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.