diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-12-29 02:55:33 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-12-29 02:55:33 +0000 |
commit | 3962b07000967cd9e6f27b5d3f61c5e673079caa (patch) | |
tree | 773604b42c0fb1975d809ea637d41075363c7b8e /usr/local/www | |
parent | 85bf774742567bbb580532ceff2ba9fece20c43b (diff) | |
download | pfsense-3962b07000967cd9e6f27b5d3f61c5e673079caa.zip pfsense-3962b07000967cd9e6f27b5d3f61c5e673079caa.tar.gz |
Add filtering bridge toggle switch just like m0n0wall has.
Ticket #756
Diffstat (limited to 'usr/local/www')
-rwxr-xr-x | usr/local/www/system_advanced.php | 16 |
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"); (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"> </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"> </td> <td width="78%"> |