diff options
Diffstat (limited to 'usr')
-rw-r--r-- | usr/local/www/system_advanced_firewall.php | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/usr/local/www/system_advanced_firewall.php b/usr/local/www/system_advanced_firewall.php index 06e2ff5..7a3cd93 100644 --- a/usr/local/www/system_advanced_firewall.php +++ b/usr/local/www/system_advanced_firewall.php @@ -121,6 +121,11 @@ if ($_POST) { else unset($config['system']['disablescrub']); + if ($_POST['tftpinterface']) + $config['system']['tftpinterface'] = implode(",", $_POST['tftpinterface']); + else + unset($config['system']['tftpinterface']); + write_config(); /* @@ -306,6 +311,20 @@ function update_description(itemnum) { </td> </tr> <tr> + <td width="22%" valign="top" class="vncell">TFTP Proxy</td> + <td width="78%" class="vtable"> + <select name="tftpinterface[]" multiple="true" class="formselect" size="3"> +<?php + $ifdescs = get_configured_interface_with_descr(); + foreach ($ifdescs as $ifent => $ifdesc): +?> + <option value="<?=$ifent;?>" <?php if (stristr($pconfig['tftpinterface'], $ifent)) echo "selected"; ?>><?=gettext($ifdesc);?></option> +<?php endforeach; ?> + </select> + <strong>Choose the interfaces where you want TFTP proxy help to be enabled.</strong> + </td> + </tr> + <tr> <td colspan="2" class="list" height="12"> </td> </tr> <?php endif; ?> |