&1 >/dev/null\n"; $start .= "/sbin/pfctl -aminiupnpd -Fn 2>&1 >/dev/null\n"; $start .= "killall miniupnpd; sleep 3; /usr/local/sbin/miniupnpd -p 2869{$ifaces_final}"; /* override wan ip address, common for carp, etc */ if($overridewanip) $start .= " -o {$overridewanip}"; $stop .= "/usr/bin/killall miniupnpd \n"; $stop .= "# Clear existing rules and rdr entries \n"; $stop .= "/sbin/pfctl -aminiupnpd -Fr 2>&1 >/dev/null\n"; $stop .= "/sbin/pfctl -aminiupnpd -Fn 2>&1 >/dev/null\n"; write_rcfile(array( "file" => "miniupnpd.sh", "start" => $start, "stop" => $stop ) ); } start_service("miniupnpd"); config_unlock(); conf_mount_ro(); } ?>