-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
-<!--
- (c) 2005 U.S. Robotics Corporation
--->
<html>
-<head>
- <title>Add Incoming IP Filter</title>
-
- <link href="usr_layout.css" type="text/css" rel="stylesheet" /><script src="usr_layout.js" type="text/javascript"></script>
- <link href="usr_menus_dropdown.css" rel="stylesheet" type="text/css"><script src="usr_menus_dropdown.js" type="text/javascript"></script><script src="usr_menus_build.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>
-
- <meta HTTP-EQUIV='Pragma' CONTENT='no-cache'>
-
- <script type="text/javascript" src="util.js"></script>
- <script type="text/javascript">
+ <head>
+ <meta HTTP-EQUIV='Pragma' CONTENT='no-cache'>
+ <link rel="stylesheet" href='stylemain.css' type='text/css'>
+ <link rel="stylesheet" href='colors.css' type='text/css'>
+ <script language="javascript" src="util.js"></script>
+ <script language="javascript">
<!-- hide
-
-
var ifCount = 0;
function btnApply() {
}
if ( isValidName(txtfltname.value) == false ) {
- msg = "The filter name is invalid. Only alphanumeric characters are allowed.";
+ msg = 'Please enter valid incoming IP filtering name: No special characters.';
alert(msg);
return;
}
if ( srcaddr.value == "" && srcmask.value == "" && srcport.value == "" &&
dstaddr.value == "" && dstmask.value == "" && dstport.value == "" &&
- protocol.selectedIndex < 0 ) {
+ protocol.selectedIndex == 0 ) {
msg = 'At least one condition must be specified.'
alert(msg);
return;
alert(msg);
return;
}
-
- if ( (srcport.value != "" || dstport.value != "") &&
- (protocol.selectedIndex < 0 || protocol.selectedIndex == 3) ) {
+
+ if ( (srcport.value != "" || dstport.value != "") &&
+ (protocol.selectedIndex == 0 || protocol.selectedIndex == 4) ) {
msg = 'TCP or UDP Protocol must be selected together with port number';
alert(msg);
return;
loc += '&dstPort=' + dstport.value;
}
- var code = 'location = "' + loc + '"';
+ var code = 'location="' + loc + '"';
eval(code);
}
// done hiding -->
</script>
</head>
- <body onload="initMenu();">
-
-<script type="text/javascript">
- writeHeader("Add Incoming IP Filter");
-</script>
-
-<form>
-
- <p>Create a filter to identify the incoming IP traffic by specifying at least one
- condition below. If multiple conditions are specified, all of them take effect.
- Press <b>Apply</b> to save and activate the filter.</p>
-
+ <body>
+ <blockquote>
+ <form>
+ <b>Add IP Filter -- Incoming</b><br>
+ <br>
+ The screen allows you to create a filter rule to identify incoming IP traffic
+ by specifying a new filter name and at least one condition below. All of the
+ specified conditions in this filter rule must be satisfied for the rule to take
+ effect. Click 'Save/Apply' to save and activate the filter.<br>
+ <br>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
- <td><label for="txtfltname">Filter name:</label></td>
- <td><input type='text' maxlength="15" size="22" name="txtfltname" id="txtfltname"></td>
+ <td>Filter Name:</td>
+ <td><input type='text' size="22" name="txtfltname"></td>
</tr>
<tr>
- <td><label for="">Protocol:</label></td>
- <td><select name='protocol' id='protocol'>
- <option value="0">TCP/UDP</option>
- <option value="1">TCP</option>
- <option value="2">UDP</option>
- <option value="3">ICMP</option>
+ <td colspan="2"> </td>
+ </tr>
+ <tr>
+ <td>Protocol:</td>
+ <td><select name='protocol' size="1">
+ <option value="4">
+  
+ <option value="0">
+ TCP/UDP
+ <option value="1">
+ TCP
+ <option value="2">
+ UDP
+ <option value="3">
+ ICMP
</select></td>
</tr>
<tr>
- <td><label for="srcaddr">Source IP address:</label></td>
- <td><input type='text' size="22" name="srcaddr" id="srcaddr"></td>
+ <td>Source IP address:</td>
+ <td><input type='text' size="22" name="srcaddr"></td>
</tr>
<tr>
- <td><label for="srcmask">Source subnet mask:</label></td>
- <td><input type='text' size="22" name="srcmask" id="srcmask"></td>
+ <td>Source Subnet Mask:</td>
+ <td><input type='text' size="22" name="srcmask"></td>
</tr>
<tr>
- <td><label for="srcport">Source port:</label></td>
- <td><input type='text' size="22" name="srcport" id="srcport"> (port or port:port)</td>
+ <td>Source Port (port or port:port):</td>
+ <td><input type='text' size="22" name="srcport"></td>
</tr>
<tr>
- <td><label for="dstaddr">Destination IP address:</label></td>
- <td><input type='text' size="22" name="dstaddr" id="dstaddr"></td>
+ <td>Destination IP address:</td>
+ <td><input type='text' size="22" name="dstaddr"></td>
</tr>
<tr>
- <td><label for="dstmask">Destination subnet mask:</label></td>
- <td><input type='text' size="22" name="dstmask" id="dstmask"></td>
+ <td>Destination Subnet Mask:</td>
+ <td><input type='text' size="22" name="dstmask"></td>
</tr>
<tr>
- <td><label for="dstport">Destination port:</label></td>
- <td><input type='text' size="22" name="dstport" id="dstport"> (port or port:port)</td>
+ <td>Destination Port (port or port:port):</td>
+ <td><input type='text' size="22" name="dstport"></td>
</tr>
</table>
-
- <p><b>WAN Interfaces:</b> (Configured in Routing mode and Firewall enabled only)</p>
- <p><input type='checkbox' name='chkAll' id='chkAll' checked onclick='toggleIfs(this)'> <label for="chkAll">Select all</label></p>
-
+ <br>
+ <b>WAN Interfaces (Configured in Routing mode and with firewall enabled
+ only)</b>
+ <br>
+ Select at least one or multiple WAN interfaces displayed below to apply this
+ rule.
+ <br>
+ <br>
<table>
<tr>
- <script type="text/javascript">
-<!-- hide
+ <input type='checkbox' name='chkAll' checked onclick='toggleIfs(this)'> Select All</tr>
+ <tr>
+ <script language="javascript">
+<!-- hide
{
var i = 0;
var interfaceInfo = '<%ejGetOther(wanInterfaceInfo, firewall)%>';
}
// done hiding -->
</script>
- </tr>
- </table>
- <p><input type='button' onClick='btnApply()' value='Apply'></p>
-</form>
-
-<script type="text/javascript">
- writeFooter();
-</script>
-
-</body>
+ </tr>
+ </table>
+ <br><br>
+ <center><input type='button' onClick='btnApply()' value='Save/Apply'></center>
+ </form>
+ </blockquote>
+ </body>
</html>