From 59c55a355129fa1bd426d4443c042f9cae942cbf Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sat, 19 Aug 2006 23:47:05 +0000 Subject: Add experimental upnp package --- packages/miniupnpd/miniupnpd.inc | 36 ++++++++++++++++ packages/miniupnpd/miniupnpd.xml | 70 ++++++++++++++++++++++++++++++ packages/miniupnpd/status_upnp.php | 88 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 194 insertions(+) create mode 100644 packages/miniupnpd/miniupnpd.inc create mode 100644 packages/miniupnpd/miniupnpd.xml create mode 100644 packages/miniupnpd/status_upnp.php (limited to 'packages/miniupnpd') diff --git a/packages/miniupnpd/miniupnpd.inc b/packages/miniupnpd/miniupnpd.inc new file mode 100644 index 00000000..11d556ff --- /dev/null +++ b/packages/miniupnpd/miniupnpd.inc @@ -0,0 +1,36 @@ + "miniupnpd.sh", + "start" => $start, + "stop" => "/usr/bin/killall miniupnpd" + ) + ); + start_service("miniupnpd"); + restart_service("miniupnpd"); + config_unlock(); + conf_mount_ro(); + } +?> \ No newline at end of file diff --git a/packages/miniupnpd/miniupnpd.xml b/packages/miniupnpd/miniupnpd.xml new file mode 100644 index 00000000..d4c500fc --- /dev/null +++ b/packages/miniupnpd/miniupnpd.xml @@ -0,0 +1,70 @@ + + + Services: Miniupnpd + miniupnpd + 0.9 + Change + pkg_edit.php?xml=miniupnpd.xml&id=0 + + Miniupnpd + Set miniupnpd settings such as interfaces to listen on. +
Diagnostics
+ /pkg_edit.php?xml=miniupnpd.xml&id=0 +
+ + http://www.pfsense.org/packages/All/miniupnpd.inc + /usr/local/sbin/ + 0777 + + + http://www.pfsense.org/packages/config/miniupnpd/miniupnpd.inc + /usr/local/pkg/ + 0777 + + + http://www.pfsense.org/packages/config/miniupnpd/status_upnp.php + /usr/local/www/ + 0777 + + + miniupnpd + miniupnpd.sh + miniupnpd + + + + UPNP Status + status_upnp.php + + + miniupnpd Settings + /pkg_edit.php?xml=miniupnpd.xml&id=0 + + + + + + Interface + interface_array + lan + true + 3 + interfaces_selection + + + + sync_package_miniupnpd(); + + + sync_package_miniupnpd(); + + + sync_package_miniupnpd(); + + + sync_package_miniupnpd(); + + + exec("rm /usr/local/etc/rc.d/miniupnpd*"); + +
\ No newline at end of file diff --git a/packages/miniupnpd/status_upnp.php b/packages/miniupnpd/status_upnp.php new file mode 100644 index 00000000..dae86878 --- /dev/null +++ b/packages/miniupnpd/status_upnp.php @@ -0,0 +1,88 @@ +. + All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are met: + + 1. Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + + 2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, + INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY + AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, + OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + POSSIBILITY OF SUCH DAMAGE. +*/ + +require("guiconfig.inc"); + +$rdr_entries = array(); +exec("/sbin/pfctl -aminiupnpd -sn", $rdr_entries, $pf_ret); + +$now = time(); +$year = date("Y"); + +$pgtitle = array(gettext("Status"),gettext("UPnP Status")); +include("head.inc"); +/* put your custom HTML head content here */ +/* using some of the $pfSenseHead function calls */ +$pfSenseHead->addMeta(""); +echo $pfSenseHead->getHTML(); + +?> + + + + +
+
+ + + + + + + + + + + + + + + +
+ + + + + + + +
+
+
+ + + + -- cgit v1.2.3