summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-03-03 16:51:41 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-03-03 16:51:41 +0000
commit2711dca00f05bbb10d8a97c1e0e8fe5bbce6a356 (patch)
treec82f0e5e92fb3bf61e6bdf22a8a6994b2cb4c998
parent2cb454db2023b4193a593bee61ca9776b9403fb9 (diff)
downloadpfsense-2711dca00f05bbb10d8a97c1e0e8fe5bbce6a356.zip
pfsense-2711dca00f05bbb10d8a97c1e0e8fe5bbce6a356.tar.gz
If no ip is assigned, wrap the second interface with ()
-rw-r--r--etc/inc/filter.inc3
1 files changed, 3 insertions, 0 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc
index 06d9c73..4124926 100644
--- a/etc/inc/filter.inc
+++ b/etc/inc/filter.inc
@@ -1632,7 +1632,10 @@ function create_firewall_outgoing_rules_to_itself() {
/* XXX - billm: temp fix for pppoe, needs better fix */
if($config['interfaces'][$ifname]['ipaddr'] != "")
$rule .="pass out quick on {$int} inet from {$int} to any keep state\n";
+ else
+ $rule .="pass out quick on {$int} inet from ({$int}) to any keep state\n";
}
+
}
return $rule;
}
OpenPOWER on IntegriCloud