aboutsummaryrefslogtreecommitdiffstats
path: root/packages/miniupnpd/miniupnpd.inc
diff options
context:
space:
mode:
authorSeth Mos <seth.mos@xs4all.nl>2006-08-20 18:11:18 +0000
committerSeth Mos <seth.mos@xs4all.nl>2006-08-20 18:11:18 +0000
commitfaa8753e83239e757c2290fb07b7d49d7310f317 (patch)
tree6d176386a7cc609e7170b342f302027d1fad58ae /packages/miniupnpd/miniupnpd.inc
parent7b4a52a1a2b7bbc2160c97e06593b9cb664e339b (diff)
downloadpfsense-packages-faa8753e83239e757c2290fb07b7d49d7310f317.tar.gz
pfsense-packages-faa8753e83239e757c2290fb07b7d49d7310f317.tar.bz2
pfsense-packages-faa8753e83239e757c2290fb07b7d49d7310f317.zip
Update the miniupnpd package and include a binary.
Stop and restart now empties table after and before. Status page needs fixing still.
Diffstat (limited to 'packages/miniupnpd/miniupnpd.inc')
-rw-r--r--packages/miniupnpd/miniupnpd.inc16
1 files changed, 12 insertions, 4 deletions
diff --git a/packages/miniupnpd/miniupnpd.inc b/packages/miniupnpd/miniupnpd.inc
index 06b1d8ea..e4d02402 100644
--- a/packages/miniupnpd/miniupnpd.inc
+++ b/packages/miniupnpd/miniupnpd.inc
@@ -20,14 +20,22 @@
$ifaces_final .= " -i {$wanif} -a {$addr}";
$first = 1;
} else {
- log_error("Could not resolve real interfaec {$iface}");
+ log_error("Could not resolve real interface {$iface}");
}
}
- $start = "/usr/local/sbin/miniupnpd -p 2869{$ifaces_final}";
+ $start = "# Clear existing rules and rdr entries \n";
+ $start .= "/sbin/pfctl -aminiupnpd -Fr 2>&1 >/dev/null\n";
+ $start .= "/sbin/pfctl -aminiupnpd -Fn 2>&1 >/dev/null\n";
+ $start .= "/usr/local/sbin/miniupnpd -p 2869{$ifaces_final}";
+
+ $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" => "/usr/bin/killall miniupnpd"
+ "stop" => $stop
)
);
}
@@ -36,4 +44,4 @@
config_unlock();
conf_mount_ro();
}
-?> \ No newline at end of file
+?>