summaryrefslogtreecommitdiffstats
path: root/usr/local
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-12-29 02:55:33 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-12-29 02:55:33 +0000
commit3962b07000967cd9e6f27b5d3f61c5e673079caa (patch)
tree773604b42c0fb1975d809ea637d41075363c7b8e /usr/local
parent85bf774742567bbb580532ceff2ba9fece20c43b (diff)
downloadpfsense-3962b07000967cd9e6f27b5d3f61c5e673079caa.zip
pfsense-3962b07000967cd9e6f27b5d3f61c5e673079caa.tar.gz
Add filtering bridge toggle switch just like m0n0wall has.
Ticket #756
Diffstat (limited to 'usr/local')
-rwxr-xr-xusr/local/www/system_advanced.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/usr/local/www/system_advanced.php b/usr/local/www/system_advanced.php
index 06cdc5b..5375ecc 100755
--- a/usr/local/www/system_advanced.php
+++ b/usr/local/www/system_advanced.php
@@ -43,6 +43,7 @@ $pconfig['key'] = base64_decode($config['system']['webgui']['private-key']);
$pconfig['disableconsolemenu'] = isset($config['system']['disableconsolemenu']);
$pconfig['harddiskstandby'] = $config['system']['harddiskstandby'];
$pconfig['noantilockout'] = isset($config['system']['webgui']['noantilockout']);
+$pconfig['filteringbridge_enable'] = isset($config['bridge']['filteringbridge']);
$pconfig['tcpidletimeout'] = $config['filter']['tcpidletimeout'];
/* billm: alternate schedulers are currently disable */
/*
@@ -200,6 +201,8 @@ if ($_POST) {
$config['ipsec']['preferoldsa'] = $_POST['preferoldsa_enable'] ? true : false;
+ $config['bridge']['filteringbridge'] = $_POST['filteringbridge_enable'] ? true : false;
+
/* pfSense themes */
$config['theme'] = $_POST['theme'];
@@ -268,6 +271,8 @@ if ($_POST) {
conf_mount_ro();
+ setup_filter_bridge();
+
}
}
@@ -404,6 +409,17 @@ include("head.inc");
&nbsp;(IP address)<span class="vexpl"><br /> Don't forget to add a firewall rule to permit IPv6 packets!</span>
</td>
</tr>
+ <tr>
+ <td width="22%" valign="top" class="vncell">&nbsp;</td>
+ <td width="78%" class="vtable">
+ <input name="filteringbridge_enable" type="checkbox" id="filteringbridge_enable" value="yes" <?php if ($pconfig['filteringbridge_enable']) echo "checked"; ?>>
+ <strong>Enable filtering bridge</strong><span class="vexpl"><br>
+ This will cause bridged packets to pass through the packet
+ filter in the same way as routed packets do (by default bridged
+ packets are always passed). If you enable this option, you'll
+ have to add filter rules to selectively permit traffic from
+ bridged interfaces.</span></td>
+ </tr>
<tr>
<td width="22%" valign="top">&nbsp;</td>
<td width="78%">
OpenPOWER on IntegriCloud