aboutsummaryrefslogtreecommitdiffstats
path: root/packages/carp_rules.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-03-02 21:45:41 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-03-02 21:45:41 +0000
commitcb022d511ac2971a8fec4037e715d0f8f2b4d56c (patch)
tree861bb3268178f047947932d08dac7ee597596aba /packages/carp_rules.php
parent9c0894526d6049654d9b34726a66dcdfdd5b8ef6 (diff)
downloadpfsense-packages-cb022d511ac2971a8fec4037e715d0f8f2b4d56c.tar.gz
pfsense-packages-cb022d511ac2971a8fec4037e715d0f8f2b4d56c.tar.bz2
pfsense-packages-cb022d511ac2971a8fec4037e715d0f8f2b4d56c.zip
Prevent unexpected ( error during eval
Diffstat (limited to 'packages/carp_rules.php')
-rw-r--r--packages/carp_rules.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/packages/carp_rules.php b/packages/carp_rules.php
index c79304cb..37c184b2 100644
--- a/packages/carp_rules.php
+++ b/packages/carp_rules.php
@@ -39,9 +39,10 @@ foreach($config['installedpackages']['carp']['config'] as $carp) {
$int = find_ip_interface($ip);
$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 on xl0 proto carp from {$carp['synciface']}:network to 224.0.0.18 keep state (no-sync) label \"carp\"", $carp['synciface'] . "2");
- if($int <> false && $int <> $wan_interface) {
+ if($carp['synciface']) {
+ add_rule_to_anchor("carp", "pass on xl0 proto carp from {$carp['synciface']}:network to 224.0.0.18 keep state \(no-sync\)", $carp['synciface'] . "2");
+ }
+ if($int <> false and $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, $ip);