aboutsummaryrefslogtreecommitdiffstats
path: root/packages/carp_settings.xml
diff options
context:
space:
mode:
authorColin Smith <colin@pfsense.org>2005-03-31 01:49:32 +0000
committerColin Smith <colin@pfsense.org>2005-03-31 01:49:32 +0000
commit4e577ec6d4207ff6da1d55070dab24aefd3f1c07 (patch)
treeb525d30240d81dac77a9d17f5e5e6d7deb37a4f3 /packages/carp_settings.xml
parent49324c2b92cad64679ba51ca0e46dc18f21750df (diff)
downloadpfsense-packages-4e577ec6d4207ff6da1d55070dab24aefd3f1c07.tar.gz
pfsense-packages-4e577ec6d4207ff6da1d55070dab24aefd3f1c07.tar.bz2
pfsense-packages-4e577ec6d4207ff6da1d55070dab24aefd3f1c07.zip
* Clean up carp_settings.xml.
* Rewrite CARP syncing code to use XMLRPC.
Diffstat (limited to 'packages/carp_settings.xml')
-rw-r--r--packages/carp_settings.xml70
1 files changed, 6 insertions, 64 deletions
diff --git a/packages/carp_settings.xml b/packages/carp_settings.xml
index 6417aac2..4aa0f590 100644
--- a/packages/carp_settings.xml
+++ b/packages/carp_settings.xml
@@ -107,72 +107,14 @@
<field>
<fielddescr>Synchronize to IP</fielddescr>
<fieldname>synchronizetoip</fieldname>
- <description>Enter the IP address of the firewall you would like to synchornize your rules to.</description>
+ <description>Enter the IP address of the firewall you would like to synchronize your rules to.</description>
<type>input</type>
</field>
<field>
- <fielddescr>Known Hosts</fielddescr>
- <fieldname>knownhosts</fieldname>
- <description>Paste in the /etc/ssh/ssh_host_dsa_key.pub file generated from the destination server.</description>
- <rows>4</rows>
- <cols>50</cols>
- <type>textarea</type>
- </field>
- <field>
- <fielddescr>Authorized Keys</fielddescr>
- <fieldname>authorizedkeys</fieldname>
- <description>Paste in your Authorized Keys file generated from OpenSSH.</description>
- <rows>4</rows>
- <cols>50</cols>
- <type>textarea</type>
- </field>
- <field>
- <fielddescr>Install keys</fielddescr>
- <fieldname>installkeys</fieldname>
- <description>Check this option and enter a password below of the remote box if you would like to automatically install the keys on the remote machine.</description>
- <type>checkbox</type>
- </field>
- <field>
- <fielddescr>Install keys password</fielddescr>
- <fieldname>installkeyspassword</fieldname>
- <description>Enter the password of the remote machine that you would like to copy the keys to.</description>
- <type>password</type>
- </field>
-
+ <fielddescr>Remote System Password</fielddescr>
+ <fieldname>password</fieldname>
+ <description>Enter the webGUI password of the system that you would like to synchronize with.</description>
+ <type>input</type>
+ </field>
</fields>
- <custom_php_command_before_form>
- </custom_php_command_before_form>
- <custom_php_resync_config_command>
- system("/etc/rc.packages >/dev/null 2>&amp;1 &amp;");
- </custom_php_resync_config_command>
- <custom_delete_php_command>
- </custom_delete_php_command>
- <custom_php_install_command>
- system("/bin/mkdir -p /root/.ssh");
- if($_POST['knownhosts'] != "") {
- $fout = fopen("/root/.ssh/known_hosts","w");
- fwrite($fout, $_POST['knownhosts']);
- fclose($fout);
- }
- if($_POST['authorizedkeys'] != "") {
- $fout = fopen("/root/.ssh/authorized_keys","w");
- fwrite($fout, $_POST['authorizedkeys']);
- fclose($fout);
- }
- if($_POST['installkeys'] != "") {
- $httpport = "80";
- $cmd = "/bin/mkdir /root/.ssh";
- /* make sure /root/.ssh exists */
- $vararrays = array("cmd" => "mkdir -p /root/.ssh");
- http_post($synchronizetoip, $httpport, "/exec_raw.php", $vararrays);
- /* populate /root/.ssh/known_hosts */
- $vararrays = array("cmd" => "echo \"{$_POST['knownhosts']}\" > /root/.ssh/known_hosts");
- http_post($synchronizetoip, $httpport, "/exec_raw.php", $vararrays);
- /* populate /root/.ssh/authorized_keys */
- $vararrays = array("cmd" => "echo \"{$_POST['authorizedkeys']}\" > /root/.ssh/authorized_keys");
- http_post($synchronizetoip, $httpport, "/exec_raw.php", $vararrays);
- }
- </custom_php_install_command>
- <custom_php_deinstall_command>
- </custom_php_deinstall_command>
</packagegui>