www.usr.com/support/gpl/USR9107_release.1.4.tar.gz
[bcm963xx.git] / userapps / broadcom / cfm / html / setup_sec.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2 <!--
3    (c) 2004-2006 U.S. Robotics Corporation.
4 -->
5 <html>
6 <head>
7         <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
8         <title>Setup</title>
9         <link href="usr_main.css" rel="stylesheet" type="text/css">
10         <script type="text/javascript" src="util.js"></script>
11         <script src="usr_common.js" type="text/javascript"></script>
12 <script type="text/javascript">
13 <!-- This is similar to the index-wireless.html page -->
14 function validatePage()
15 {
16         document.idForm.wlKeyBit.value = ((document.idForm.cbWEPkeytype.value == "type128ASCII") || (document.idForm.cbWEPkeytype.value == "type128hex")) ? "0" : "1";
17
18         if (document.idForm.cbSecurity.value == "WPA_WPA2")
19         {
20                 if (!minLength("Pass phrase", document.idForm.wlWpaPsk, 8))
21                         return false;
22         }
23         else if (document.idForm.cbSecurity.value.substr(0, 3) == "WEP")
24         {
25                 if (!isValidKey(document.idForm.idKeyValue1, document.idForm.idKeyValue1.maxLength))
26                 {
27                         alert("Please enter a valid " + document.idForm.idKeyValue1.maxLength + "-character WEP key.");
28                         return false;
29                 }
30         }
31         else
32                 document.idForm.wlWpaPsk.value = "";
33
34         return true;
35 }
36
37 function updateFields()
38 {
39         setVisibility("idEncryptNo", (document.idForm.cbSecurity.value == "none"));
40
41         setVisibility("idWPA", (document.idForm.cbSecurity.value == "WPA_WPA2"));
42         setVisibility("idEncryptWPA", (document.idForm.cbSecurity.value == "WPA_WPA2"));
43
44         setVisibility("idWEPkeytype", (document.idForm.cbSecurity.value.substr(0, 3) == "WEP"));
45         setVisibility("idKey1", (document.idForm.cbSecurity.value.substr(0, 3) == "WEP"));
46
47         setMaxLength(false, document.idForm.cbWEPkeytype.value, document.idForm.wlKey1);
48 }
49 </script>
50 </head>
51
52 <body onload="updateFields();">
53
54 <script type="text/javascript">
55         setPageTitle("<%ejGetWlJS(wlInterface)%>");
56         writeHeaderSetup(2, 3);
57 </script>
58
59
60 <form name="idForm" action="setup_login.wl" method="post">
61         <input type="hidden" id="wlKeyBit" name="wlKeyBit">
62
63 <!-- This code is similar to the code on the index-wireless.html -->
64 <h3>Network Name (SSID)</h3>
65
66 <p>This is the name of your wireless network. Wireless devices will need to know the
67 network name (also known as an SSID) of your router in order to communicate with it.</p>
68
69 <p id="lblSSID"><label for="wlSsid">Network name:</label>
70         <input type="text" size="30" maxlength="30" name="wlSsid" id="wlSsid" class="clsTextfield" value="<%ejGetWlHTML(wlSsid)%>"></p>
71
72 <p>U.S.&nbsp;Robotics recommends that you change the <b>network name</b>
73 and treat it like a password. Use a combination of more than eight alphanumeric
74 characters that is not easy to guess (such as &ldquo;MyHomeOffice&rdquo;
75 or &ldquo;Fish81Tree&rdquo;).</p>
76
77
78 <!-- This code is similar to the code on the wireless.htm page but MUCH simpler -->
79 <h3>Security</h3>
80
81 <p>U.S.&nbsp;Robotics recommends securing your router from unauthorized
82 wireless devices by using WPA encryption.
83 If you have older wireless devices that don&rsquo;t support WPA,
84 you can select WEP.
85 If you want to use a different method later, you can change it on the
86 router&rsquo;s <b>Security</b> page after the setup is complete.
87 </p>
88
89 <table border="0">
90         <tr>
91                 <td id="lblMethod" valign="top"><label>Method:</label></td>
92                 <td>
93                         <select id="cbSecurity" name="cbSecurity" onchange="updateFields();">
94                                 <option value="WPA_WPA2" selected>WPA2 and WPA (PSK) (recommended)</option>
95                                 <option value="WEPopen">WEP open</option>
96                                 <option value="WEPshared">WEP shared</option>
97                                 <option value="none">None</option>
98                         </select>
99                 </td>
100         </tr>
101
102         <!-- WPA -->
103         <tr id="idWPA">
104                 <td valign="top"><label for="wlWpaPsk">Pass&nbsp;phrase:</label></td>
105                 <!-- either 32 hex digits or ASCII that WPA hashes to a 256-bit key -->
106                 <td><input type="text" size="40" maxlength="63" name="wlWpaPsk" id="wlWpaPsk" class="clsTextfield" value="<%ejGetWlHTML(wlWpaPsk)%>"><br/>
107                         <span class="clsNote">(The pass phrase must be between eight and sixty-three characters long.)</span>
108                         </td>
109         </tr>
110
111         <!-- WEP -->
112         <tr id="idWEPkeytype">
113                 <td><label>Key type:</label></td>
114                 <td>
115                         <!-- No name property so the value's not posted -->
116                         <select id="cbWEPkeytype" onchange="setMaxLength(true, this.value, wlKey1);">
117                                 <option value="type128ASCII" selected>128-bit ASCII</option>
118                                 <option value="type128hex">128-bit hex</option>
119                                 <option value="type64ASCII">64-bit ASCII</option>
120                                 <option value="type64hex">64-bit hex</option>
121                         </select>
122                 </td>
123         </tr>
124
125         <tr id="idKey1" valign="top">
126                 <td><label for="idKeyValue1">Key:</label></td>
127                 <td><input type="text" size="40" maxlength="58" name="wlKey1" id="idKeyValue1" class="clsTextfield"><br/>
128                         <span class="clsNote">(The key must be <span id="idKeyNumChars"></span>&nbsp;characters long.)</span>
129                 </td>
130         </tr>
131 </table>
132
133 <p id="idEncryptWPA">
134 U.S.&nbsp;Robotics recommends that you treat your <b>WPA pass phrase</b> like
135 a password and use a combination of alphanumeric characters that is not
136 easy to guess (such as &ldquo;5Rock2Fish9Sand&rdquo; or &ldquo;20Dogs933Trot&rdquo;).
137 </p>
138 <div id="idEncryptNo" style="display: none;" class="clsNotice">
139         <p>Please note that you have disabled encryption on the router and your
140         wireless network will be insecure. Unauthorized wireless devices may be
141         able to connect to your network, use your Internet connection, and access
142         your computers.
143         You can enable encryption later on the router&rsquo;s <b>Security</b> page.</p>
144 </div>
145
146
147 <p class="clsSave">You will need to enter these values when you configure a wireless client.
148 After setup is complete, these values will be displayed on the
149 router&rsquo;s <b>Status</b> page,
150 and you can write them down or print them.
151 </p>
152
153 <p>When you&rsquo;re finished and ready to go to the next step, press <b>Next</b>.</p>
154 <p><input type="submit" class="clsBtnSave" name="btnSubmit" value="Next -->" onclick="if (!validatePage()) return false;"></p>
155 <!-- If all entries are valid, Setup-Login is displayed. An error keeps the user here. -->
156
157 </form>
158
159 <script type="text/javascript">
160         writeFooter();
161 </script>
162
163 </body>
164 </html>