aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-01-17 23:00:35 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-01-17 23:00:35 +0000
commitc28a2cd9009ec7d63d970cb651b183688ec77fce (patch)
tree90c53842280dffb42bf99058dc0aa7101743b176
parenteb0c1742ab67e4d0826d0c080fa3a8fecf12d86e (diff)
downloadpfsense-packages-c28a2cd9009ec7d63d970cb651b183688ec77fce.tar.gz
pfsense-packages-c28a2cd9009ec7d63d970cb651b183688ec77fce.tar.bz2
pfsense-packages-c28a2cd9009ec7d63d970cb651b183688ec77fce.zip
Do not install rules unless we can obtain the interface correctly
-rw-r--r--packages/frickin/frickin.inc4
1 files changed, 4 insertions, 0 deletions
diff --git a/packages/frickin/frickin.inc b/packages/frickin/frickin.inc
index 08843621..701a1e90 100644
--- a/packages/frickin/frickin.inc
+++ b/packages/frickin/frickin.inc
@@ -101,6 +101,10 @@ function frickin_generate_rules($type) {
switch($type) {
case 'nat':
foreach ($ifaces as $iface) {
+ if(!$iface) {
+ log_error("Not installing frickin pptp proxy rule. Please set it up");
+ continue;
+ }
$rules .= "rdr on $iface proto tcp from any to !($iface) port 1723 -> 127.0.0.1\n";
$rules .= "rdr on $iface proto gre from any to !($iface) -> 127.0.0.1\n";
}