diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-06-11 02:58:24 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-06-11 02:58:24 +0000 |
commit | 82628210f6b568958199e0edcc56e582426f520d (patch) | |
tree | 18dde61f16e33c08264a8e5fc3823f545857f8c3 /usr/local/www/firewall_rules_edit.php | |
parent | 910f5ff7fc1ea12d5b04c24a0b1221ab90c156e4 (diff) | |
download | pfsense-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-x | usr/local/www/firewall_rules_edit.php | 28 |
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"> </td> <td width="78%"> |