From 685dae9584812bd897e1da45959b7218e4a61848 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Thu, 10 Mar 2005 19:48:10 +0000 Subject: Don't hard code the carp interface --- packages/carp_rules.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'packages') diff --git a/packages/carp_rules.php b/packages/carp_rules.php index 272b1150..1d288ac5 100644 --- a/packages/carp_rules.php +++ b/packages/carp_rules.php @@ -40,8 +40,8 @@ foreach($config['installedpackages']['carp']['config'] as $carp) { $carp_int = find_carp_interface($ip); add_rule_to_anchor("carp", "pass out quick on {$carp_int} keep state", $carp_int . "1"); if($carp['synciface']) { - add_rule_to_anchor("carp", "pass quick on xl0 proto carp from {$carp['synciface']}:network to 224.0.0.18 keep state \(no-sync\)", $carp['synciface'] . "2"); - add_rule_to_anchor("carp", "pass quick on xl0 proto pfsync keep state", $carp['synciface'] . "3"); + add_rule_to_anchor("carp", "pass quick on {$carp['synciface']} proto carp from {$carp['synciface']}:network to 224.0.0.18 keep state \(no-sync\)", $carp['synciface'] . "2"); + add_rule_to_anchor("carp", "pass quick on {$carp['synciface']} proto pfsync keep state", $carp['synciface'] . "3"); } if($int <> false and $int <> $wan_interface) { $ipnet = convert_ip_to_network_format($ip, $carp['netmask']); -- cgit v1.2.3