diff options
author | Jeremy Chadwick <koitsu@FreeBSD.org> | 2007-04-02 20:55:58 +0000 |
---|---|---|
committer | Jeremy Chadwick <koitsu@FreeBSD.org> | 2007-04-02 20:55:58 +0000 |
commit | 1908d3a661dd9bb68867a1ebb2c5dd2679e2c9d7 (patch) | |
tree | 6872e37189c90430d33d781d134269922be17c6e /net/miniupnpd/files | |
parent | 18dfb9aa85344f1453990b56dd9550dcf85cdb0e (diff) | |
download | ports-1908d3a661dd9bb68867a1ebb2c5dd2679e2c9d7.tar.gz ports-1908d3a661dd9bb68867a1ebb2c5dd2679e2c9d7.zip |
Notes
Diffstat (limited to 'net/miniupnpd/files')
-rw-r--r-- | net/miniupnpd/files/miniupnpd.conf.sample.in | 41 | ||||
-rw-r--r-- | net/miniupnpd/files/miniupnpd.sh.in | 26 |
2 files changed, 67 insertions, 0 deletions
diff --git a/net/miniupnpd/files/miniupnpd.conf.sample.in b/net/miniupnpd/files/miniupnpd.conf.sample.in new file mode 100644 index 000000000000..e54a73ef2d2c --- /dev/null +++ b/net/miniupnpd/files/miniupnpd.conf.sample.in @@ -0,0 +1,41 @@ +# WAN network interface +ext_ifname=ed0 +# if the WAN interface has several IP addresses, you +# can specify the one to use below +#ext_ip= + +# there can be multiple listening ips for receiving SSDP traffic. +# the 1st IP is also used for UPnP Soap traffic. +#listening_ip= 192.168.0.61 +listening_ip=10.0.2.1 +port=5555 + +# bitrates reported by daemon in bits per second +bitrate_up=131072 +bitrate_down=524288 + +# default presentation url is http address on port 80 +#presentation_url= + +# report system uptime instead of daemon uptime +system_uptime=yes + +# notify interval in seconds default is 30 seconds. +#notify_interval=240 + +# log packets in pf +#packet_log=no + +# uuid : generated by the install a new one can be created with +# uuidgen +uuid=%%UUID%% + +# UPnP permission rules +# (allow|deny) (external port range) ip/mask (internal port range) +# A port range is <min port>-<max port> or <port> if there is only +# one port in the range. +# ip/mask format must be nn.nn.nn.nn/nn +allow 1024-65535 10.0.2.0/24 1024-65535 +allow 1024-65535 10.0.2.0/24 1024-65535 +deny 0-65535 0.0.0.0/0 0-65535 + diff --git a/net/miniupnpd/files/miniupnpd.sh.in b/net/miniupnpd/files/miniupnpd.sh.in new file mode 100644 index 000000000000..8d5905528523 --- /dev/null +++ b/net/miniupnpd/files/miniupnpd.sh.in @@ -0,0 +1,26 @@ +#!/bin/sh +# +# $FreeBSD$ +# + +# PROVIDE: miniupnpd +# REQUIRE: NETWORKING SERVERS DAEMON ldconfig resolv + +. %%RC_SUBR%% + +miniupnpd_enable=${miniupnpd_enable:-"NO"} +miniupnpd_config=${miniupnpd_config:-"%%PREFIX%%/etc/miniupnpd.conf"} +miniupnpd_flags=${miniupnpd_flags} + +name=miniupnpd +rcvar=`set_rcvar` +load_rc_config $name + +command="%%PREFIX%%/sbin/miniupnpd" +pidfile="/var/run/${name}.pid" +command_args="-f $miniupnpd_config" + +required_files=$miniupnpd_config + +run_rc_command "$1" + |