aboutsummaryrefslogtreecommitdiffstats
path: root/packages/carp_rules.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-03-10 19:48:10 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-03-10 19:48:10 +0000
commit685dae9584812bd897e1da45959b7218e4a61848 (patch)
tree7afe328ada5aacc70894f3e01ddb320371634433 /packages/carp_rules.php
parent2bc7f1478bd2e7294ec8d5a130487d249baafc51 (diff)
downloadpfsense-packages-685dae9584812bd897e1da45959b7218e4a61848.tar.gz
pfsense-packages-685dae9584812bd897e1da45959b7218e4a61848.tar.bz2
pfsense-packages-685dae9584812bd897e1da45959b7218e4a61848.zip
Don't hard code the carp interface
Diffstat (limited to 'packages/carp_rules.php')
-rw-r--r--packages/carp_rules.php4
1 files changed, 2 insertions, 2 deletions
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']);