capo-ctl.pl - Controller script for Captive::Portal
Controller script to start, stop, clear, list and purge iptables/ipsets and session entries.
capo-ctl.pl [-f capo.cfg] [-l log4perl.cfg] ACTION
Captive::Portal config file. By default
$ENV{CAPTIVE_PORTAL_CONFIG} || $Bin/../etc/local/config.pl || $Bin/../etc/config.pl
Log::Log4perl config file. By default
$ENV{CAPTIVE_PORTAL_LOG4PERL} || $Bin/../etc/local/log4perl.conf || $Bin/../etc/log4perl.conf
One and only one ACTION is needed.
check the firewall status
start the firewall, reload old sessions from sessions dir
stop the firewall, keep current sessions in sessions dir
start the firewall, flush old sessions in sessions dir
clear current sessions from iptables/ipsets and sessions dir
purge idle sessions, periodically used by cron
list active clients and sessions from ipset and sessions dir
Karl Gaissmaier, <gaissmai at cpan.org>
<gaissmai at cpan.org>
Copyright 2010-2013 Karl Gaissmaier, all rights reserved.
This distribution is free software; you can redistribute it and/or modify it under the terms of either:
a) the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version, or
b) the Artistic License version 2.0.
To install Captive::Portal, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Captive::Portal
CPAN shell
perl -MCPAN -e shell install Captive::Portal
For more information on module installation, please visit the detailed CPAN module installation guide.