aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
Diffstat (limited to 'packages')
-rw-r--r--packages/carp_sync_client.php12
-rw-r--r--packages/carp_sync_server.php4
2 files changed, 8 insertions, 8 deletions
diff --git a/packages/carp_sync_client.php b/packages/carp_sync_client.php
index b56c72e3..f7c9e90a 100644
--- a/packages/carp_sync_client.php
+++ b/packages/carp_sync_client.php
@@ -37,10 +37,10 @@ if($already_processed != 1)
if($carp['synchronizerules'] <> "") {
$current_rules_section = backup_config_section("filter");
/* generate firewall rules xml */
- $fout = fopen("{$g['tmp_path']}/rules_section.txt","w");
+ $fout = fopen("{$g['tmp_path']}/filter_section.txt","w");
fwrite($fout, $current_rules_section);
fclose($fout);
- mwexec("/usr/bin/scp {$g['tmp_path']}/rules_section.txt root@{$synchronizetoip}:/tmp/");
+ mwexec("/usr/bin/scp {$g['tmp_path']}/filter_section.txt root@{$synchronizetoip}:/tmp/");
unlink("{$g['tmp_path']}/rules_section.txt");
}
if($carp['synchronizenat'] <> "") {
@@ -64,15 +64,15 @@ if($already_processed != 1)
if($carp['synchronizetrafficshaper'] <> "") {
$current_trafficshaper_section = backup_config_section("shaper");
/* generate aliases xml */
- $fout = fopen("{$g['tmp_path']}/trafficshaper_section.txt","w");
+ $fout = fopen("{$g['tmp_path']}/shaper_section.txt","w");
fwrite($fout, $current_trafficshaper_section);
fclose($fout);
- mwexec("/usr/bin/scp {$g['tmp_path']}/trafficshaper_section.txt root@{$synchronizetoip}:/tmp/");
- unlink("{$g['tmp_path']}/trafficshaper_section.txt");
+ mwexec("/usr/bin/scp {$g['tmp_path']}/shaper_section.txt root@{$synchronizetoip}:/tmp/");
+ unlink("{$g['tmp_path']}/shaper_section.txt");
}
/* copy configuration to remote host */
mwexec("/usr/bin/ssh {$synchronizetoip} /usr/local/pkg/carp_sync_server.php");
}
}
}
-
+
diff --git a/packages/carp_sync_server.php b/packages/carp_sync_server.php
index 54142cdc..84c5fc82 100644
--- a/packages/carp_sync_server.php
+++ b/packages/carp_sync_server.php
@@ -42,7 +42,7 @@ if($config['installedpackages']['carpsettings']['config'] != "")
$trafficshaper = return_filename_as_string("{$g['tmp_path']}/trafficshaper_section.txt");
if($rules <> "") {
restore_config_section("filter", $rules);
- unlink("{$g['tmp_path']}/rules_section.txt");
+ unlink("{$g['tmp_path']}/filter_section.txt");
}
if($aliases <> "") {
restore_config_section("aliases", $aliases);
@@ -54,7 +54,7 @@ if($config['installedpackages']['carpsettings']['config'] != "")
}
if($trafficshaper <> "") {
restore_config_section("shaper", $trafficshaper);
- unlink("{$g['tmp_path']}/nat_section.txt");
+ unlink("{$g['tmp_path']}/shaper_section.txt");
}
filter_configure();