diff -rN -x dev DEVEL_generic-pc-1.2b1/fs/etc/inc/system.inc STOCKTON_generic-pc-1.2b1/fs/etc/inc/system.inc 196a197 > local4.* %/var/log/portalauth.log 198c199 < *.notice;kern.debug;lpr.info;mail.crit;news.err;local0.none;local7.none %/var/log/system.log --- > *.notice;kern.debug;lpr.info;mail.crit;news.err;local0.none;local4.none;local7.none %/var/log/system.log 212a214,221 > if (isset($syslogcfg['portalauth'])) { > $syslogconf .= << local4.* @{$syslogcfg['remoteserver']} > > EOD; > > } > 222c231 < *.notice;kern.debug;lpr.info;mail.crit;news.err;local0.none;local7.none @{$syslogcfg['remoteserver']} --- > *.notice;kern.debug;lpr.info;mail.crit;news.err;local0.none;local4.none;local7.none @{$syslogcfg['remoteserver']} diff -rN -x dev DEVEL_generic-pc-1.2b1/fs/etc/rc STOCKTON_generic-pc-1.2b1/fs/etc/rc 28c28,29 < chmod 0600 /var/log/system.log /var/log/filter.log /var/log/dhcpd.log --- > clog -i -s 32768 /var/log/portalauth.log > chmod 0600 /var/log/system.log /var/log/filter.log /var/log/dhcpd.log /var/log/portalauth.log diff -rN -x dev DEVEL_generic-pc-1.2b1/fs/etc/syslog.conf STOCKTON_generic-pc-1.2b1/fs/etc/syslog.conf 1a2 > local4.* %/var/log/portalauth.log 3c4 < *.notice;kern.debug;lpr.info;mail.crit;news.err;local0.none;local7.none %/var/log/system.log --- > *.notice;kern.debug;lpr.info;mail.crit;news.err;local0.none;local7.none;local4.none %/var/log/system.log diff -rN -x dev DEVEL_generic-pc-1.2b1/fs/etc/version STOCKTON_generic-pc-1.2b1/fs/etc/version 1c1 < 1.2b1 --- > 1.2b1-STOCKTON diff -rN -x dev DEVEL_generic-pc-1.2b1/fs/usr/local/captiveportal/index.php STOCKTON_generic-pc-1.2b1/fs/usr/local/captiveportal/index.php 35a36 > require("portal_log.inc") ; 79a81 > captiveportal_logportalauth($_POST['auth_user'],$clientmac,$clientip); diff -rN -x dev DEVEL_generic-pc-1.2b1/fs/usr/local/captiveportal/portal_log.inc STOCKTON_generic-pc-1.2b1/fs/usr/local/captiveportal/portal_log.inc 0a1,16 > *************** > *** 0 > --- 1,13 ----- > + + > + /* log successful captive portal authentication to syslog */ > + /* part of this code from php.net */ > + function captiveportal_logportalauth($user,$mac,$ip) { > + define_syslog_variables(); > + openlog("logportalauth", LOG_PID, LOG_LOCAL4); > + // Log it > + syslog(LOG_INFO, "Success: $user $mac $ip"); > + closelog(); > + } > + > + ?> diff -rN -x dev DEVEL_generic-pc-1.2b1/fs/usr/local/www/diag_logs.php STOCKTON_generic-pc-1.2b1/fs/usr/local/www/diag_logs.php 78c78 <
  • System
  • --- >
  • System
  • 80a81 >
  • Authentication
  • diff -rN -x dev DEVEL_generic-pc-1.2b1/fs/usr/local/www/diag_logs_auth.php STOCKTON_generic-pc-1.2b1/fs/usr/local/www/diag_logs_auth.php 0a1,103 > *************** > *** 0 > --- 1,100 ----- > + #!/usr/local/bin/php > + + /* > + diag_logs_auth.php > + part of m0n0wall (http://m0n0.ch/wall) > + > + Copyright (C) 2003-2004 Manuel Kasper . > + All rights reserved. > + > + Redistribution and use in source and binary forms, with or without > + modification, are permitted provided that the following conditions are met: > + > + 1. Redistributions of source code must retain the above copyright notice, > + this list of conditions and the following disclaimer. > + > + 2. Redistributions in binary form must reproduce the above copyright > + notice, this list of conditions and the following disclaimer in the > + documentation and/or other materials provided with the distribution. > + > + THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, > + INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY > + AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE > + AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, > + OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF > + SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS > + INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN > + CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) > + ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE > + POSSIBILITY OF SUCH DAMAGE. > + */ > + > + require("guiconfig.inc"); > + > + $nentries = $config['syslog']['nentries']; > + if (!$nentries) > + $nentries = 50; > + > + if ($_POST['clear']) { > + exec("/usr/sbin/clog -i -s 32768 /var/log/portalauth.log"); > + } > + > + function dump_clog($logfile, $tail) { > + global $g, $config; > + > + $sor = isset($config['syslog']['reverse']) ? "-r" : ""; > + > + exec("/usr/sbin/clog " . $logfile . " | tail {$sor} -n " . $tail, $logarr); > + > + foreach ($logarr as $logent) { > + echo "\n"; > + > + ?> > + > + + > + echo "\n"; > + } > + } > + > + ?> > + > + > + > + m0n0wall webGUI - Diagnostics: Captive Portal Authentication Log > + > + > + > + > + > + > +

    Diagnostics: Captive Portal Authentication Log

    > + > + > + > + > + > +
    > + > +
    > + > + > + > + > + > +
    > + Last Captive Portal Authentication log entries
    > +
    > + > +
    > +
    > + > + > + > + diff -rN -x dev DEVEL_generic-pc-1.2b1/fs/usr/local/www/diag_logs_dhcp.php STOCKTON_generic-pc-1.2b1/fs/usr/local/www/diag_logs_dhcp.php 67c67 < m0n0wall webGUI - Diagnostics: System logs --- > m0n0wall webGUI - Diagnostics: DHCP logs 80a81 >
  • Authentication
  • diff -rN -x dev DEVEL_generic-pc-1.2b1/fs/usr/local/www/diag_logs_filter.php STOCKTON_generic-pc-1.2b1/fs/usr/local/www/diag_logs_filter.php 135a136 >
  • Authentication
  • diff -rN -x dev DEVEL_generic-pc-1.2b1/fs/usr/local/www/diag_logs_settings.php STOCKTON_generic-pc-1.2b1/fs/usr/local/www/diag_logs_settings.php 38a39 > $pconfig['portalauth'] = isset($config['syslog']['portalauth']); 65a67 > $config['syslog']['portalauth'] = $_POST['portalauth'] ? true : false; 99a102 > document.iform.portalauth.disabled = 0; 103a107 > document.iform.portalauth.disabled = 1; 123a128 >
  • Authentication
  • 168c173,174 < firewall events
    > --- > firewall events
    > > Portal Auth Log
    >