summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorBill Marquette <billm@pfsense.org>2005-07-05 00:28:24 +0000
committerBill Marquette <billm@pfsense.org>2005-07-05 00:28:24 +0000
commit93573134560d4001b866ad1fc7eb5fd0ade887c6 (patch)
tree17126112d833fe37af4412b3c06abae6538ab474 /etc
parenteb91e2cdd9319426928c695272d36b73007d45f6 (diff)
downloadpfsense-93573134560d4001b866ad1fc7eb5fd0ade887c6.zip
pfsense-93573134560d4001b866ad1fc7eb5fd0ade887c6.tar.gz
Ooops, removed a little too much code earlier
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/filter.inc19
1 files changed, 18 insertions, 1 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc
index d00f8aa..ac9d210 100644
--- a/etc/inc/filter.inc
+++ b/etc/inc/filter.inc
@@ -1785,6 +1785,23 @@ EOD;
$line = "";
if (!isset($rule['disabled'])) {
if ($rule['interface'] == "pptp") {
+ if($config['pptp']['n_pptp_units'] <> "")
+ $n_pptp_units = $config['pptp']['n_pptp_units'];
+ else
+ $n_pptp_units = $g['n_pptp_units'];
+ for($xxx=0; $xxx < $n_pptp_units; $xxx++) {
+ /*
+ * now that PPTP server are user rules, detect
+ * that user is setting the pptp server rule
+ * and setup for all netgraph interfaces
+ */
+ $line = generate_user_filter_rule($rule, $xxx);
+ $ackq = get_ack_queue($rule['interface']);
+ if($ackq != "")
+ $line .= " queue ({$queue['name']}, {$ackq}) ";
+ if($line <> "")
+ $ipfrules .= $line . "\n";
+ }
$line = generate_user_filter_rule($rule, $xxx);
if($line <> "") {
if (isset($config['shaper']['enable']) && is_array($config['shaper']['queue'])) {
@@ -2015,4 +2032,4 @@ function carp_sync_client() {
}
}
-?> \ No newline at end of file
+?>
OpenPOWER on IntegriCloud