From c98e7fb75aaff33dbb1ef20eb1556ac605e28828 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sun, 3 Jul 2005 23:21:25 +0000 Subject: Allow filtering of interfaces_selection box --- usr/local/pkg/sasyncd.xml | 50 ++++++++++++++++++++++++++++++++++++++++++++++ usr/local/www/pkg_edit.php | 18 +++++++++++++---- 2 files changed, 64 insertions(+), 4 deletions(-) create mode 100644 usr/local/pkg/sasyncd.xml (limited to 'usr') diff --git a/usr/local/pkg/sasyncd.xml b/usr/local/pkg/sasyncd.xml new file mode 100644 index 0000000..65e0a7b --- /dev/null +++ b/usr/local/pkg/sasyncd.xml @@ -0,0 +1,50 @@ + + + sasyncd + 0.1.0 + Services: SASYNCD (VPN failover) + + ['installedpackages']['sasyncd']['config'] + pkg_edit.php?xml=sassyncd.xml&id=0 + + + SASYNCD (VPN failover) + The sasyncd daemon synchronizes IPSec SA and SPD information between a number of failover IPsec gateways. The most typical scenario is to run sasyncd on hosts also running isakmpd and sharing a common IP-address using carp. +
Services
+ sasyncd.xml +
+ + + Interface + interface + + + Peer IP + peerip + + + + + + Interface + interface + Select the carp interface to use + carp + interfaces_selection + + + Peer IP + peerip + Enter the peers ip address + input + + + Shared Key + sharedkey + The shared AES key used to encrypt messages between sasyncd(8) hosts. This configuration setting is required and must be either 16, 24 or 32 bytes long (corresponding to AES using a 128, 192 or 256 bit key). + input + + +
diff --git a/usr/local/www/pkg_edit.php b/usr/local/www/pkg_edit.php index a61c506..5529dd2 100755 --- a/usr/local/www/pkg_edit.php +++ b/usr/local/www/pkg_edit.php @@ -396,11 +396,21 @@ if ($pkg['tabs'] <> "") { $ifname = $iface['descr']; $SELECTED = ""; if($value == $ifdescr) $SELECTED = " SELECTED"; - echo "\n"; - echo ""; + $to_echo = "\n"; + $to_echo .= ""; + $canecho = 0; + if($pkga['interface_filter'] <> "") { + if(stristr($value, $pkga['interface_filter']) == true) + $canecho = 1; + } else { + $canecho = 1; + } + } + if($canecho == 1) { + echo $to_echo; + echo "\n"; + echo "
" . fixup_string($pkga['description']) . "\n"; } - echo "\n"; - echo "
" . fixup_string($pkga['description']) . "\n"; } else if($pkga['type'] == "radio") { echo ""; } else if($pkga['type'] == "rowhelper") { -- cgit v1.1