Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpnSense
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
OpnSense
Commits
9f39b41b
Commit
9f39b41b
authored
Feb 21, 2015
by
Ad Schellevis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
prevent ipfw modules for CP from getting loaded when not enabled
parent
227a53ba
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
captiveportal.inc
src/etc/inc/captiveportal.inc
+7
-7
No files found.
src/etc/inc/captiveportal.inc
View file @
9f39b41b
...
...
@@ -237,15 +237,14 @@ function captiveportal_get_last_activity($ip, $mac = NULL) {
/* reinit will disconnect all users, be careful! */
function
captiveportal_init_rules
(
$reinit
=
false
)
{
// load modules
captiveportal_load_modules
();
//
// if ( $reinit ) {
$cpc
=
new
OPNsense\CaptivePortal\CPClient
();
if
(
$cpc
->
isEnabled
())
{
// load modules ( only if CP is enabled )
captiveportal_load_modules
();
}
$cpc
->
reconfigure
();
unset
(
$cpc
);
// }
}
...
...
@@ -395,8 +394,9 @@ function captiveportal_load_modules() {
/* Always load dummynet now that even allowed ip and mac passthrough use it. */
if
(
!
is_module_loaded
(
"dummynet.ko"
))
{
mwexec
(
"/sbin/kldload dummynet"
);
set_sysctl
(
array
(
"net.inet.ip.dummynet.io_fast"
=>
"1"
,
"net.inet.ip.dummynet.hash_size"
=>
"256"
));
// TODO : enable dummynet when kernel issues are solved, dummynet currently disabled in the gui
//mwexec("/sbin/kldload dummynet");
//set_sysctl(array("net.inet.ip.dummynet.io_fast" => "1", "net.inet.ip.dummynet.hash_size" => "256"));
}
unmute_kernel_msgs
();
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment