summaryrefslogtreecommitdiffstats
path: root/usr/local/www/firewall_rules_edit.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-06-11 02:58:24 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-06-11 02:58:24 +0000
commit82628210f6b568958199e0edcc56e582426f520d (patch)
tree18dde61f16e33c08264a8e5fc3823f545857f8c3 /usr/local/www/firewall_rules_edit.php
parent910f5ff7fc1ea12d5b04c24a0b1221ab90c156e4 (diff)
downloadpfsense-82628210f6b568958199e0edcc56e582426f520d.zip
pfsense-82628210f6b568958199e0edcc56e582426f520d.tar.gz
Add support for roue-to inside each rule which allows traffic direction for multiple wan environments
Diffstat (limited to 'usr/local/www/firewall_rules_edit.php')
-rwxr-xr-xusr/local/www/firewall_rules_edit.php28
1 files changed, 28 insertions, 0 deletions
diff --git a/usr/local/www/firewall_rules_edit.php b/usr/local/www/firewall_rules_edit.php
index c916519..491eaab 100755
--- a/usr/local/www/firewall_rules_edit.php
+++ b/usr/local/www/firewall_rules_edit.php
@@ -771,6 +771,34 @@ Hint: the difference between block and reject is that with reject, a packet (TCP
</td>
</tr>
+ <?php
+ /* build a list of gateways */
+ $gateways = array();
+ foreach($config['interfaces'] as $int) {
+ if($int['gateway'] <> "")
+ $gateways[]=$int['gateway'];
+ }
+ ?>
+ <tr>
+ <td width="22%" valign="top" class="vncell">Gateway</td>
+ <td width="78%" class="vtable">
+ <select name='gateway'>
+ <?php
+ foreach($gateways as $gw) {
+ if($gw == $pconfig['gateway')
+ $selected = " SELECTED";
+ else
+ $selected = "";
+ if($gw <> "")
+ echo "<option value=\"{$gw}\" {$selected}>{$gw}</option>\n";
+ }
+ ?>
+ </select>
+ <input name="statetimeout" value="<?php echo $pconfig['frags'] ?>">
+ <p><strong>Leave blank for default.
+ </strong>
+ </td>
+ </tr>
<tr>
<td width="22%" valign="top">&nbsp;</td>
<td width="78%">
OpenPOWER on IntegriCloud