diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2007-01-17 23:00:35 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2007-01-17 23:00:35 +0000 |
commit | c28a2cd9009ec7d63d970cb651b183688ec77fce (patch) | |
tree | 90c53842280dffb42bf99058dc0aa7101743b176 | |
parent | eb0c1742ab67e4d0826d0c080fa3a8fecf12d86e (diff) | |
download | pfsense-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.inc | 4 |
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"; } |