From f5f6767957f77100796416f44d1a19cabf525c39 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Fri, 18 Feb 2005 23:39:39 +0000 Subject: Update carp package * Add carp status page * Add carp tabs * Add carp rules which dynamically sets up NAT entries for non WAN --- packages/carp.xml | 11 +++++ packages/carp_rules.php | 66 ++++++++++++++++++++++++++++++ packages/carp_status.php | 103 +++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 180 insertions(+) create mode 100644 packages/carp_rules.php create mode 100644 packages/carp_status.php (limited to 'packages') diff --git a/packages/carp.xml b/packages/carp.xml index 73fc4ed3..5e5be0ec 100644 --- a/packages/carp.xml +++ b/packages/carp.xml @@ -8,6 +8,17 @@
Services
carp.xml + + + CARP Settings + /pkg_edit.php?xml=carp.xml + + + + CARP Status + carp_status.php + + ['installedpackages']['carp']['config'] diff --git a/packages/carp_rules.php b/packages/carp_rules.php new file mode 100644 index 00000000..2c03fb83 --- /dev/null +++ b/packages/carp_rules.php @@ -0,0 +1,66 @@ + false && $int <> $wan_interface) { + $ipnet = convert_ip_to_network_format($ip, $carp['netmask']); + $rule = "nat on {$int} inet from {$ipnet} to any -> ({$carp_int}) \n"; + add_rule_to_anchor("natrules", $rule); + } +} + +?> \ No newline at end of file diff --git a/packages/carp_status.php b/packages/carp_status.php new file mode 100644 index 00000000..65230586 --- /dev/null +++ b/packages/carp_status.php @@ -0,0 +1,103 @@ +#!/usr/local/bin/php + + + + + +<?=gentitle_pkg($title);?> + + + + + + +

+
+ + + + + +
+ +
+ + + + + + + +"; + echo ""; + echo ""; + echo ""; + echo ""; +} + +?> + +
Interface
Status
Sync Status
" . $ipaddress . "
" . $status . "
" . $synciface . "
+
+ +
+ + + + -- cgit v1.2.3