aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-03-25 03:05:50 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-03-25 03:05:50 +0000
commit04c486b2ae6519a4b19ce3d19e4300ec7ce72a90 (patch)
treebc4fde3b73fe0c980099a018a91ebc5fd5f04e44 /packages
parent42bc17dc7adab6bb3053237d027ad403a45a432f (diff)
downloadpfsense-packages-04c486b2ae6519a4b19ce3d19e4300ec7ce72a90.tar.gz
pfsense-packages-04c486b2ae6519a4b19ce3d19e4300ec7ce72a90.tar.bz2
pfsense-packages-04c486b2ae6519a4b19ce3d19e4300ec7ce72a90.zip
Bump pipe #'s above 100 so we do not conflict with anything else
Diffstat (limited to 'packages')
-rw-r--r--packages/per-user-bandwidth-distribution.xml13
1 files changed, 6 insertions, 7 deletions
diff --git a/packages/per-user-bandwidth-distribution.xml b/packages/per-user-bandwidth-distribution.xml
index 1e3623bd..07578c60 100644
--- a/packages/per-user-bandwidth-distribution.xml
+++ b/packages/per-user-bandwidth-distribution.xml
@@ -1,6 +1,6 @@
<packagegui>
- <name>per-user-bandwidth-distribution</name>
- <version>1.0.1</version>
+ <name>peruserbw</name>
+ <version>1.0.2</version>
<title>Services: Per User Bandwidth</title>
<aftersaveredirect>pkg_edit.php?xml=per-user-bandwidth-distribution.xml&amp;id=0</aftersaveredirect>
<menu>
@@ -13,7 +13,6 @@
<name>PerUserBW</name>
<rcfile>per_user_bandwidth_distribution.sh</rcfile>
</service>
- <configpath>installedpackages->package->$packagename->configuration->settings</configpath>
<fields>
<field>
<fielddescr>Incoming Bandwidth</fielddescr>
@@ -74,10 +73,10 @@
fwrite($fd, "/sbin/kldload ipfw\n");
fwrite($fd, "/sbin/kldload dummynet\n");
fwrite($fd, "/sbin/ipfw delete 10\n");
- fwrite($fd, "/sbin/ipfw pipe 1 config mask src-ip 0x000000ff bw {$_POST['incoming_bandwidth']}{$_POST['incoming_bandwidthtype']}\n");
- fwrite($fd, "/sbin/ipfw pipe 2 config mask dst-ip 0x000000ff bw {$_POST['outgoing_bandwidth']}{$_POST['outgoing_bandwidthtype']}\n");
- fwrite($fd, "/sbin/ipfw add 10 pipe 2 ip from any to any out via {$wanif}\n");
- fwrite($fd, "/sbin/ipfw add 10 pipe 1 ip from any to any in via {$wanif}\n");
+ fwrite($fd, "/sbin/ipfw pipe 101 config mask src-ip 0x000000ff bw {$_POST['incoming_bandwidth']}{$_POST['incoming_bandwidthtype']}\n");
+ fwrite($fd, "/sbin/ipfw pipe 102 config mask dst-ip 0x000000ff bw {$_POST['outgoing_bandwidth']}{$_POST['outgoing_bandwidthtype']}\n");
+ fwrite($fd, "/sbin/ipfw add 10 pipe 102 ip from any to any out via {$wanif}\n");
+ fwrite($fd, "/sbin/ipfw add 10 pipe 101 ip from any to any in via {$wanif}\n");
fwrite($fd, "/sbin/ipfw add 10 allow all from any to any\n");
fclose($fd);
mwexec("chmod a+rx /usr/local/etc/rc.d/per_user_bandwidth_distribution.sh");