From d499c12bc05fa09b3810abc6125d4edf5edee54f Mon Sep 17 00:00:00 2001 From: Ermal Date: Fri, 18 Jun 2010 16:19:25 +0000 Subject: Silence. --- etc/inc/system.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/inc/system.inc b/etc/inc/system.inc index 86916cf..9a0d054 100644 --- a/etc/inc/system.inc +++ b/etc/inc/system.inc @@ -276,7 +276,7 @@ function system_routing_configure() { $interfacegw = ""; /* tack on all the hard defined gateways as well */ if (is_array($config['gateways']['gateway_item'])) { - mwexec("/bin/rm {$g['tmp_path']}/*_defaultgw"); + mwexec("/bin/rm {$g['tmp_path']}/*_defaultgw", true); $foundgw = false; foreach ($config['gateways']['gateway_item'] as $gateway) { if (isset($gateway['defaultgw'])) { -- cgit v1.1 From 1fea67419a5c7042e06d9ff0740bbfee97a05bad Mon Sep 17 00:00:00 2001 From: jim-p Date: Fri, 18 Jun 2010 10:36:46 -0400 Subject: Use killbyname() instead of mwexec/killall directly. --- usr/local/www/system_advanced_admin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr/local/www/system_advanced_admin.php b/usr/local/www/system_advanced_admin.php index 6f7a077..ca4cee3 100644 --- a/usr/local/www/system_advanced_admin.php +++ b/usr/local/www/system_advanced_admin.php @@ -412,7 +412,7 @@ function prot_change() { Date: Fri, 18 Jun 2010 10:47:03 -0400 Subject: Silence --- etc/sshd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/etc/sshd b/etc/sshd index 285cf65..a700615 100755 --- a/etc/sshd +++ b/etc/sshd @@ -64,7 +64,7 @@ foreach($files_to_check as $f2c) { if(file_exists("/etc/ssh/{$f2c}")) if(file_size("/etc/ssh/{$f2c}")==0) { - mwexec("rm /etc/ssh/ssh_host*"); + mwexec("rm /etc/ssh/ssh_host*", true); } } @@ -138,7 +138,7 @@ if (!file_exists("$sshConfigDir/ssh_host_key")) { /* remove previous keys and regen later */ file_notice("SSH", "{$g['product_name']} has started creating your SSH keys. SSH Startup will be delayed. Please note that reloading the filter rules and changes will be delayed until this operation is completed.", "SSH KeyGen", ""); - mwexec("rm /etc/ssh/ssh_host_*"); + mwexec("rm /etc/ssh/ssh_host_*", true); mark_subsystem_dirty('sshdkeys'); echo " Generating Keys:\n"; system("/usr/bin/nice -n20 /usr/bin/ssh-keygen -t rsa1 -N '' -f $sshConfigDir/ssh_host_key"); -- cgit v1.1 From 759d0de1e8a199ac7e52ce209089977791bd98b0 Mon Sep 17 00:00:00 2001 From: Renato Botelho Date: Fri, 18 Jun 2010 13:21:31 -0300 Subject: Add delete button for each NAT Port Forward rule, like firewall rules. It Fixes #674 --- usr/local/www/firewall_nat.php | 36 +++++++++++++++++++++++++++++++----- 1 file changed, 31 insertions(+), 5 deletions(-) diff --git a/usr/local/www/firewall_nat.php b/usr/local/www/firewall_nat.php index 0c9229b..84fc0e8 100755 --- a/usr/local/www/firewall_nat.php +++ b/usr/local/www/firewall_nat.php @@ -82,6 +82,19 @@ if ($_POST) { } } +if ($_GET['act'] == "del") { + if ($a_nat[$_GET['id']]) { + if (isset($a_nat[$_GET['id']]['associated-rule-id'])) { + delete_id($a_nat[$_GET['id']]['associated-rule-id'], $config['filter']['rule']); + } + unset($a_nat[$_GET['id']]); + write_config(); + mark_subsystem_dirty('nat'); + header("Location: firewall_nat.php"); + exit; + } +} + if (isset($_POST['del_x'])) { /* delete selected rules */ if (is_array($_POST['rule']) && count($_POST['rule'])) { @@ -195,7 +208,13 @@ echo "