www.usr.com/support/gpl/USR9113_release1.0.tar.gz
[bcm963xx.git] / userapps / broadcom / cfm / html / setup_sec.html
index e03bd8d..2c9a2ce 100755 (executable)
@@ -1,20 +1,35 @@
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
 <!--
-   (c) 2004-2006 U.S. Robotics Corporation.
+       (c) 2005-2006 U.S. Robotics Corporation
 -->
 <html>
 <head>
        <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
        <title>Setup</title>
-       <link href="usr_main.css" rel="stylesheet" type="text/css">
-        <script type="text/javascript" src="util.js"></script>
-       <script src="usr_common.js" type="text/javascript"></script>
+       <link href="usr_layout.css" type="text/css" rel="stylesheet" />
+       <script src="usr_layout.js" type="text/javascript"></script>
+       <link href="usr_device.css" type="text/css" rel="stylesheet" />
+       <script src="usr_device.js" type="text/javascript"></script>
+       <link href="usr_91xx.css" type="text/css" rel="stylesheet" />
+       <script src="usr_91xx.js" type="text/javascript"></script>
+       <script src="usr_resources.js" type="text/javascript"></script>
+       <script src="util.js" type="text/javascript"></script>
 <script type="text/javascript">
+function initializePage()
+{
+       // if VoIP product, no SES available
+       var bSESavailable = ("<%ejGetOther(sysInfo, buildVoip)%>" == "0");
+       setVisibility("idSESoption", bSESavailable);
+       setVisibility("idSESyes", bSESavailable);
+       setVisibility("idSESno", !bSESavailable);
+       setVisibility("idSESnote", bSESavailable);
+
+       updateFields();
+}
+
 <!-- This is similar to the index-wireless.html page -->
 function validatePage()
 {
-       document.idForm.wlKeyBit.value = ((document.idForm.cbWEPkeytype.value == "type128ASCII") || (document.idForm.cbWEPkeytype.value == "type128hex")) ? "0" : "1";
-
        if (document.idForm.cbSecurity.value == "WPA_WPA2")
        {
                if (!minLength("Pass phrase", document.idForm.wlWpaPsk, 8))
@@ -22,14 +37,30 @@ function validatePage()
        }
        else if (document.idForm.cbSecurity.value.substr(0, 3) == "WEP")
        {
+               if (!minLength("WEP key", document.idForm.idKeyValue1, document.idForm.idKeyValue1.maxLength))
+                       return false;
+
                if (!isValidKey(document.idForm.idKeyValue1, document.idForm.idKeyValue1.maxLength))
                {
                        alert("Please enter a valid " + document.idForm.idKeyValue1.maxLength + "-character WEP key.");
                        return false;
                }
+
+               if (document.idForm.cbSecurity.value == "WEPopen")
+                       document.idForm.wlAuthMode.value = "open";
+               else
+                       document.idForm.wlAuthMode.value = "shared";
+
+               if (document.idForm.cbWEPkeytype.value.substr(0, 7) == "type128")
+                       document.idForm.wlKeyBit.value = 0;     // 128-bit
+               else
+                       document.idForm.wlKeyBit.value = 1;     // 64-bit
        }
        else
+       {
+               document.idForm.wlAuthMode.value = "none";
                document.idForm.wlWpaPsk.value = "";
+       }
 
        return true;
 }
@@ -49,15 +80,64 @@ function updateFields()
 </script>
 </head>
 
-<body onload="updateFields();">
+<body onload="initializePage();">
 
 <script type="text/javascript">
-       setPageTitle("<%ejGetWlJS(wlInterface)%>");
+
        writeHeaderSetup(2, 3);
 </script>
 
+<div id="idHelpOpen" style="display: none;" onclick="setVisibility('idHelpOpen', false); setVisibility('idPanelHelp', true);">?</div>
+
+<div id="idPanelHelp">
+   <div id="idHelpClose" onclick="setVisibility('idPanelHelp', false); setVisibility('idHelpOpen', true);">x</div>
+       <h1>Securing Your Router</h1>
+   <p>If the wireless network is not secured, anyone with a wireless
+   client can connect to your network, use your Internet connection,
+   and access your computers.</p>
+   <p>With minimal effort, you can <strong>secure your router</strong> 
+   to prevent unauthorized wireless devices from connecting to your network,
+   using your Internet connection, or modifying your
+   router&rsquo;s configuration.</p>
+   <p id="idSESnote"><strong>SecureEasySetup</strong> configures your wireless 
+   security method to WPA2 and WPA (PSK) with TKIP and AES encryption.</p>
+   <p>For <strong>additional security</strong>, you can allow only specific 
+   devices to connect to the router (MAC filtering).
+   If you won&rsquo;t have any wireless devices connecting to this
+   router, you can disable the wireless features of the router.
+   This will prevent any wireless devices from connecting to your router.
+   These features and more (such as 802.1x) can be accessed on the
+   router&rsquo;s <strong>Security</strong> page after the setup is complete.</p>
+</div>
 
+<p id="idSESoption">
+       <input type="checkbox" name="chkSES" id="chkSES" checked onclick="toggleVisibility('idSESyes'); toggleVisibility('idSESno');"> <label for="chkSES">Set wireless security using SecureEasySetup</label>
+</p>
+
+<div id="idSESyes">
+<form name="idForm1" action="setup_ses.wl" method="post">
+       <input type="hidden" name="wlSesEnbl" value="1">
+       <input type="hidden" name="wlSesEvent" value="3">
+
+<h3>SecureEasySetup</h3>
+
+<p>You can secure your wireless network simply by pressing the 
+<b>SecureEasySetup</b> button below. This will apply wireless security 
+and automatically generate a pass phrase for your wireless network.</p>
+
+<p>Alternatively, you can configure your wireless security options manually
+by clearing the check box above.</p>
+
+<p><input type="image" name="action" src="ses.gif" alt="SecureEasySetup" value="SecureEasySetup" /></p>
+
+</form>
+</div>
+
+<div id="idSESno">
 <form name="idForm" action="setup_login.wl" method="post">
+       <!-- wlAuthMode is deprecated -->
+       <input type="hidden" id="wlAuthMode" value="psk2mix">
+       <input type="hidden" id="wlKeyIndex" name="wlKeyIndex" value="1">
        <input type="hidden" id="wlKeyBit" name="wlKeyBit">
 
 <!-- This code is similar to the code on the index-wireless.html -->
@@ -69,7 +149,7 @@ network name (also known as an SSID) of your router in order to communicate with
 <p id="lblSSID"><label for="wlSsid">Network name:</label>
        <input type="text" size="30" maxlength="30" name="wlSsid" id="wlSsid" class="clsTextfield" value="<%ejGetWlHTML(wlSsid)%>"></p>
 
-<p>U.S.&nbsp;Robotics recommends that you change the <b>network name</b>
+<p>USRobotics recommends that you change the <b>network name</b>
 and treat it like a password. Use a combination of more than eight alphanumeric
 characters that is not easy to guess (such as &ldquo;MyHomeOffice&rdquo;
 or &ldquo;Fish81Tree&rdquo;).</p>
@@ -78,7 +158,7 @@ or &ldquo;Fish81Tree&rdquo;).</p>
 <!-- This code is similar to the code on the wireless.htm page but MUCH simpler -->
 <h3>Security</h3>
 
-<p>U.S.&nbsp;Robotics recommends securing your router from unauthorized
+<p>USRobotics recommends securing your router from unauthorized
 wireless devices by using WPA encryption.
 If you have older wireless devices that don&rsquo;t support WPA,
 you can select WEP.
@@ -131,7 +211,7 @@ router&rsquo;s <b>Security</b> page after the setup is complete.
 </table>
 
 <p id="idEncryptWPA">
-U.S.&nbsp;Robotics recommends that you treat your <b>WPA pass phrase</b> like
+USRobotics recommends that you treat your <b>WPA pass phrase</b> like
 a password and use a combination of alphanumeric characters that is not
 easy to guess (such as &ldquo;5Rock2Fish9Sand&rdquo; or &ldquo;20Dogs933Trot&rdquo;).
 </p>
@@ -155,6 +235,7 @@ and you can write them down or print them.
 <!-- If all entries are valid, Setup-Login is displayed. An error keeps the user here. -->
 
 </form>
+</div>
 
 <script type="text/javascript">
        writeFooter();