The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

capo-ctl.pl - Controller script for Captive::Portal

ABSTRACT

Controller script to start, stop, clear, list and purge iptables/ipsets and session entries.

SYNOPSIS

 capo-ctl.pl [-f capo.cfg] [-l log4perl.cfg] ACTION

OPTIONS

--file capo.cfg

Captive::Portal config file. By default

    $ENV{CAPTIVE_PORTAL_CONFIG} ||
    $Bin/../etc/local/config.pl ||
    $Bin/../etc/config.pl
--logg log4perl.cfg

Log::Log4perl config file. By default

    $ENV{CAPTIVE_PORTAL_LOG4PERL}   ||
    $Bin/../etc/local/log4perl.conf ||
    $Bin/../etc/log4perl.conf

ARGUMENTS

One and only one ACTION is needed.

start

start the firewall, reload old sessions

stop

stop the firewall, keep current sessions

purge

purge idle sessions, periodically used by cron

start_clear

start the firewall, flush old sessions

clear

clear current sessions from iptables/ipsets and sessions dir

status

check the firewall status

list

list sessions from iptables/ipsets and sessions dir

AUTHOR

Karl Gaissmaier, <gaissmai at cpan.org>

LICENSE AND COPYRIGHT

Copyright 2010-2012 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.