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_rules.php | 66 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 packages/carp_rules.php (limited to 'packages/carp_rules.php') 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 -- cgit v1.2.3