diff options
Diffstat (limited to 'packages')
-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"; } |