From: <abe...@us...> - 2014-01-27 15:45:31
|
Revision: 6383 http://sourceforge.net/p/astlinux/code/6383 Author: abelbeck Date: 2014-01-27 15:45:28 +0000 (Mon, 27 Jan 2014) Log Message: ----------- webinterface, add firewall 'Log Denied DMZ interface packets' option, additional support with upcoming AIF 2.0.1e Modified Paths: -------------- branches/1.0/package/webinterface/altweb/admin/firewall.php branches/1.0/package/webinterface/altweb/common/version.php Modified: branches/1.0/package/webinterface/altweb/admin/firewall.php =================================================================== --- branches/1.0/package/webinterface/altweb/admin/firewall.php 2014-01-26 04:41:52 UTC (rev 6382) +++ branches/1.0/package/webinterface/altweb/admin/firewall.php 2014-01-27 15:45:28 UTC (rev 6383) @@ -1,6 +1,6 @@ <?php -// Copyright (C) 2008-2009 Lonnie Abelbeck +// Copyright (C) 2008-2014 Lonnie Abelbeck // This is free software, licensed under the GNU General Public License // version 3 as published by the Free Software Foundation; you can // redistribute it and/or modify it under the terms of the GNU @@ -18,6 +18,7 @@ // 10-14-2010, Added IPv6 support // 03-28-2012, Added NAT EXT support // 07-16-2012, Added "Pass LAN->EXT" and "Pass DMZ->EXT" actions +// 01-27-2014, Added "Log Denied DMZ interface packets" // // System location of /mnt/kd/rc.conf.d directory $FIREWALLCONFDIR = '/mnt/kd/rc.conf.d'; @@ -296,6 +297,10 @@ fwrite($fp, $value."\n"); fwrite($fp, "### Logging\n"); + $value = 'DMZ_INPUT_DENY_LOG='.(isset($_POST['log_dmz']) ? '1' : '0'); + fwrite($fp, $value."\n"); + $value = 'DMZ_OUTPUT_DENY_LOG='.(isset($_POST['log_dmz']) ? '1' : '0'); + fwrite($fp, $value."\n"); $value = 'ICMP_REQUEST_LOG='.(isset($_POST['log_icmp']) ? '1' : '0'); fwrite($fp, $value."\n"); $value = 'PRIV_TCP_LOG='.(isset($_POST['log_tcp']) ? '1' : '0'); @@ -1016,7 +1021,12 @@ $value = getVARdef($vars, 'OPEN_ICMPV6'); $sel = ($value == 1 || $value === '') ? ' checked="checked"' : ''; putHtml('<input type="checkbox" value="allow_icmpv6" name="allow_icmpv6"'.$sel.' /></td><td>Allow IPv6 ICMPv6 on External (EXT) Interface</td></tr>'); + putHtml('<tr class="dtrow1"><td style="text-align: right;">'); + $sel = (getVARdef($vars, 'DMZ_INPUT_DENY_LOG') == 1) ? ' checked="checked"' : ''; + putHtml('<input type="checkbox" value="log_dmz" name="log_dmz"'.$sel.' /></td><td>Log Denied DMZ interface packets</td></tr>'); + + putHtml('<tr class="dtrow1"><td style="text-align: right;">'); $sel = (getVARdef($vars, 'ICMP_REQUEST_LOG') == 1) ? ' checked="checked"' : ''; putHtml('<input type="checkbox" value="log_icmp" name="log_icmp"'.$sel.' /></td><td>Log Denied ICMP (ping) attempts</td></tr>'); putHtml('<tr class="dtrow1"><td style="text-align: right;">'); Modified: branches/1.0/package/webinterface/altweb/common/version.php =================================================================== --- branches/1.0/package/webinterface/altweb/common/version.php 2014-01-26 04:41:52 UTC (rev 6382) +++ branches/1.0/package/webinterface/altweb/common/version.php 2014-01-27 15:45:28 UTC (rev 6383) @@ -1,6 +1,6 @@ <?php // version.php for AstLinux Alternate Web Interface -$GUI_VERSION = '1.8.26'; +$GUI_VERSION = '1.8.27'; ?> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |