summaryrefslogtreecommitdiffstats
path: root/usr/local/www/system_routes.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2004-11-21 18:41:42 +0000
committerScott Ullrich <sullrich@pfsense.org>2004-11-21 18:41:42 +0000
commit0f282d7a169148d11584cdbe072b983bc884eab0 (patch)
tree7c4dcf688a70bc023a4c78b0ba9822b9fd9eb5cf /usr/local/www/system_routes.php
parentb39fb87c3ea3960b7f19cbf929bd52cba812c45c (diff)
downloadpfsense-0f282d7a169148d11584cdbe072b983bc884eab0.zip
pfsense-0f282d7a169148d11584cdbe072b983bc884eab0.tar.gz
Enable fast forwarding (fast routing).
A description of fastforwarding: Fastforwarding caches the results of a route lookup for destination addresses that are not on the local machine, and uses the cached route to short-circuit the normal (relatively slow) route lookup process. The packet flows directly from one layer2 input routine directly to the opposing layer2 output routine without traversing the IP layer.
Diffstat (limited to 'usr/local/www/system_routes.php')
-rwxr-xr-xusr/local/www/system_routes.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/usr/local/www/system_routes.php b/usr/local/www/system_routes.php
index d773533..6021362 100755
--- a/usr/local/www/system_routes.php
+++ b/usr/local/www/system_routes.php
@@ -56,6 +56,12 @@ if ($_POST) {
}
}
}
+
+ if ($_POST['enablefastrouting']) {
+ $config['staticroutes']['enablefastrouting'] = "enabled";
+ write_config();
+ }
+
}
if ($_GET['act'] == "del") {
@@ -85,6 +91,12 @@ if ($_GET['act'] == "del") {
<?php print_info_box_np("The static route configuration has been changed.<br>You must apply the changes in order for them to take effect.");?><br>
<input name="apply" type="submit" class="formbtn" id="apply" value="Apply changes"></p>
<?php endif; ?>
+
+ <table width="100%" border="0" cellpadding="0" cellspacing="0">
+ <tr><td width="2%"><input type="checkbox" name="enablefastrouting" id="enablefastrouting" <?php if(isset($config['staticroutes']['enablefastrouting'])) echo " checked"; ?>></td><td><b>Enable fast routing</td></tr>
+ <tr><td colspan=2><hr><input type="submit" value="Save"></td></tr>
+ </table><br>
+
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="15%" class="listhdrr">Interface</td>
OpenPOWER on IntegriCloud