diff options
author | Namezero <namezero@afim.info> | 2012-01-02 22:31:09 +0100 |
---|---|---|
committer | Namezero <namezero@afim.info> | 2012-01-02 22:31:09 +0100 |
commit | 32764288a8907b61e0218424ee504c82243edb84 (patch) | |
tree | ed7f3549bfd8b3fbb02c0b006cae636852af382e /usr/local/www | |
parent | ec9bb09fe24120e0c644ace439bf1ed0136cd681 (diff) | |
download | pfsense-32764288a8907b61e0218424ee504c82243edb84.zip pfsense-32764288a8907b61e0218424ee504c82243edb84.tar.gz |
Added support for failover radius server on wireless interface
Diffstat (limited to 'usr/local/www')
-rwxr-xr-x | usr/local/www/interfaces.php | 36 |
1 files changed, 35 insertions, 1 deletions
diff --git a/usr/local/www/interfaces.php b/usr/local/www/interfaces.php index e917625..2ac5c28 100755 --- a/usr/local/www/interfaces.php +++ b/usr/local/www/interfaces.php @@ -4,7 +4,7 @@ interfaces.php Copyright (C) 2004-2008 Scott Ullrich Copyright (C) 2006 Daniel S. Haischt. - Copyright (C) 2008-2010 Ermal Luçi + Copyright (C) 2008-2010 Ermal Lu?i All rights reserved. originally part of m0n0wall (http://m0n0.ch/wall) @@ -289,6 +289,9 @@ if (isset($wancfg['wireless'])) { $pconfig['auth_server_addr'] = $wancfg['wireless']['auth_server_addr']; $pconfig['auth_server_port'] = $wancfg['wireless']['auth_server_port']; $pconfig['auth_server_shared_secret'] = $wancfg['wireless']['auth_server_shared_secret']; + $pconfig['auth_server_addr2'] = $wancfg['wireless']['auth_server_addr2']; + $pconfig['auth_server_port2'] = $wancfg['wireless']['auth_server_port2']; + $pconfig['auth_server_shared_secret2'] = $wancfg['wireless']['auth_server_shared_secret2']; if (is_array($wancfg['wireless']['wpa'])) { $pconfig['debug_mode'] = $wancfg['wireless']['wpa']['debug_mode']; $pconfig['macaddr_acl'] = $wancfg['wireless']['wpa']['macaddr_acl']; @@ -341,6 +344,7 @@ if ($_POST['apply']) { } interface_reconfigure($ifapply, true); } else { + interface_bring_down($ifapply); } } @@ -630,6 +634,7 @@ if ($_POST['apply']) { if (isset($wancfg['pppoe']['pppoe-reset-type'])) unset($wancfg['pppoe']['pppoe-reset-type']); unset($wancfg['local']); + unset($wancfg['remote']); unset($a_ppps[$pppid]['apn']); unset($a_ppps[$pppid]['phone']); @@ -885,6 +890,10 @@ function handle_wireless_post() { $wancfg['wireless']['auth_server_addr'] = $_POST['auth_server_addr']; $wancfg['wireless']['auth_server_port'] = $_POST['auth_server_port']; $wancfg['wireless']['auth_server_shared_secret'] = $_POST['auth_server_shared_secret']; + $wancfg['wireless']['auth_server_addr2'] = $_POST['auth_server_addr2']; + $wancfg['wireless']['auth_server_port2'] = $_POST['auth_server_port2']; + $wancfg['wireless']['auth_server_shared_secret2'] = $_POST['auth_server_shared_secret2']; + if ($_POST['persistcommonwireless'] == "yes") { if (!is_array($config['wireless']['interfaces'][$wlanbaseif])) $config['wireless']['interfaces'][$wlanbaseif] = array(); @@ -1085,12 +1094,14 @@ $types6 = array("none" => gettext("None"), "staticv6" => gettext("Static IPv6"), } case "dhcp6": { jQuery('#none, #staticv6').hide(); + break; } } if (t != "l2tp" && t != "pptp") jQuery('#'+t).show(); } + function show_allcfg(obj) { if (obj.checked) jQuery('#allcfg').show(); @@ -1439,6 +1450,7 @@ $types6 = array("none" => gettext("None"), "staticv6" => gettext("Static IPv6"), <td> <center> <div id='savebuttondiv'> + <input id="gwsave" type="Button" value="<?=gettext("Save Gateway"); ?>" onClick='hide_add_gatewaysave();'> <input id="gwcancel" type="Button" value="<?=gettext("Cancel"); ?>" onClick='hide_add_gateway();'> </div> @@ -2390,6 +2402,27 @@ $types6 = array("none" => gettext("None"), "staticv6" => gettext("Static IPv6"), </td> </tr> <tr> + <td valign="top" class="vncell"><?=gettext("Secondary 802.1X Authentication Server IP Address"); ?></td> + <td class="vtable"> + <input name="auth_server_addr2" id="auth_server_addr2" type="text" class="formfld unknown" size="66" value="<?=htmlspecialchars($pconfig['auth_server_addr2']);?>"> + <br/><?=gettext("Enter the IP address of the 802.1X Authentication Server. This is commonly a Radius server (FreeRadius, Internet Authentication Services, etc.)"); ?> + </td> + </tr> + <tr> + <td valign="top" class="vncell"><?=gettext("Secondary 802.1X Authentication Server Port"); ?></td> + <td class="vtable"> + <input name="auth_server_port2" id="auth_server_port2" type="text" class="formfld unknown" size="66" value="<?=htmlspecialchars($pconfig['auth_server_port2']);?>"> + <br/><?=gettext("Leave blank for the default 1812 port."); ?> + </td> + </tr> + <tr> + <td valign="top" class="vncell"><?=gettext("Secondary 802.1X Authentication Server Shared Secret"); ?></td> + <td class="vtable"> + <input name="auth_server_shared_secret2" id="auth_server_shared_secret2" type="text" class="formfld unknown" size="66" value="<?=htmlspecialchars($pconfig['auth_server_shared_secret2']);?>"> + <br/> + </td> + </tr> + <tr> <td valign="top" class="vncell">802.1X <?=gettext("Authentication Roaming Preauth"); ?></td> <td class="vtable"> <input name="rsn_preauth" id="rsn_preauth" type="checkbox" class="formfld unknown" size="66" value="yes" <? if ($pconfig['rsn_preauth']) echo "checked"; ?>> @@ -2506,6 +2539,7 @@ $types6 = array("none" => gettext("None"), "staticv6" => gettext("Static IPv6"), name = jQuery('#name').val(); var descr = jQuery('#gatewaydescr').val(); gatewayip = jQuery('#gatewayip').val(); + var defaultgw = jQuery('#defaultgw').val(); var url = "system_gateways_edit.php"; var pars = 'isAjax=true&defaultgw=' + escape(defaultgw) + '&interface=' + escape(iface) + '&name=' + escape(name) + '&descr=' + escape(descr) + '&gateway=' + escape(gatewayip); |