From 007be4f3aa7e349e9fb536fc4ec3df09af246933 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Fri, 18 Mar 2005 18:45:41 +0000 Subject: * Remove return gateway from the rules section * Add a gateway option to the optional interfaces * Use new gateway in filter.inc when creating the rules if its defined --- usr/local/www/firewall_rules_edit.php | 9 --------- usr/local/www/interfaces_opt.php | 15 ++++++++++++--- 2 files changed, 12 insertions(+), 12 deletions(-) (limited to 'usr') diff --git a/usr/local/www/firewall_rules_edit.php b/usr/local/www/firewall_rules_edit.php index 116390b..3cf431c 100755 --- a/usr/local/www/firewall_rules_edit.php +++ b/usr/local/www/firewall_rules_edit.php @@ -833,15 +833,6 @@ Hint: the difference between block and reject is that with reject, a packet (TCP - - Return gateway - - -

Leave blank for default. Enter the next-hop gateway for the return path. - - - -   diff --git a/usr/local/www/interfaces_opt.php b/usr/local/www/interfaces_opt.php index 4626051..f323f4b 100755 --- a/usr/local/www/interfaces_opt.php +++ b/usr/local/www/interfaces_opt.php @@ -45,6 +45,7 @@ $pconfig['descr'] = $optcfg['descr']; $pconfig['bridge'] = $optcfg['bridge']; $pconfig['ipaddr'] = $optcfg['ipaddr']; $pconfig['subnet'] = $optcfg['subnet']; +$pconfig['gateway'] = $optcfg['gateway']; $pconfig['bandwidth'] = $optcfg['bandwidth']; $pconfig['bandwidthtype'] = $optcfg['bandwidthtype']; @@ -128,7 +129,8 @@ if ($_POST) { $optcfg['enable'] = $_POST['enable'] ? true : false; $optcfg['bandwidth'] = $_POST['bandwidth']; $optcfg['bandwidthtype'] = $_POST['bandwidthtype']; - + $optcfg['gateway'] = $_POST['gateway']; + write_config(); $retval = 0; @@ -184,7 +186,7 @@ function ipaddr_change() {   - onClick="enable_change(false)"> + onClick="enable_change(false)"> Enable Optional interface @@ -203,7 +205,7 @@ function ipaddr_change() { Bridge with - "LAN", 'wan' => "WAN"); for ($i = 1; isset($config['interfaces']['opt' . $i]); $i++) { @@ -239,6 +241,13 @@ function ipaddr_change() { if (isset($optcfg['wireless'])) wireless_config_print(); ?> + + Gateway + + + + + -- cgit v1.1