Install p5-File-Temp, p5-Digest-MD5 and of course portaudit from ports. Verify that you can use portaudit from the command line first, refer to its man page for more information.

Copy portaudit-send.pl to the client machine, edit the script and set the following:

$hostname

The client machine's hostname, this should also be added in the server config $allowedhosts

$recipient

Where to email the reports too

$sender

What to put the From address as

$portaudit

The path to portaudit

$portauditargs

Options to pass to portaudit, I recommend -Fda

$passphrase

The same password as set in the server config

$sendmail

Where to find sendmail and what to use as arguments

Arrange for this to be run every night from cron, a sample crontab entry below:

15 1 * * * root /usr/local/bin/portaudit-send.pl >/dev/null 2>&1

PortAuditCentral/ClientSetup (last edited 2005-11-22 23:18:47 by azrael)