235 lines
7.4 KiB
HTML
235 lines
7.4 KiB
HTML
|
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 4.0//EN">
|
||
|
<html>
|
||
|
<head>
|
||
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||
|
<title>Inbound applications</title>
|
||
|
<meta name="Copyright" content="Copyright (c) 2004 by IBM Corporation">
|
||
|
<!-- All rights reserved. Licensed Materials Property of IBM -->
|
||
|
<!-- US Government Users Restricted Rights -->
|
||
|
<!-- Use, duplication or disclosure restricted by -->
|
||
|
<!-- GSA ADP Schedule Contract with IBM Corp. -->
|
||
|
<!--
|
||
|
----------------------------------------------------------------------------
|
||
|
START_DESCRIPTION
|
||
|
Page Function: Select ports or apps for inbound policy
|
||
|
|
||
|
Stored Values:
|
||
|
parent.hidden.inboundapps[clientNum][pos][0] = appname //stores app name
|
||
|
parent.hidden.inboundapps[clientNum][pos][1]= port //stores port num
|
||
|
parent.hidden.inboundClientInfo[clientNum][0] = pos //stores ending point for
|
||
|
known apps
|
||
|
|
||
|
Next and Back:
|
||
|
[Next]:rzalladvqos5.htm if hasInboundCustom = "true"
|
||
|
Next]:rzalladvqos14.htm if hasInboundCustom = "false"
|
||
|
[Back]: rzalladvqos3.htm
|
||
|
END_DESCRIPTION
|
||
|
----------------------------------------------------------------------------
|
||
|
-->
|
||
|
<LINK rel="stylesheet" type="text/css" href="../rzahg/ic.css">
|
||
|
<script language = "Javascript" src = "../rzahg/iccommon.js"></script>
|
||
|
<script language="Javascript" type="text/javascript">
|
||
|
|
||
|
error1 = "You must check at least one application or define your own."
|
||
|
clientNum = parent.hidden.retClientNumber()
|
||
|
customStart = parent.hidden.inboundClientInfo[clientNum][0];
|
||
|
|
||
|
|
||
|
//START NON-TRANSLATABLE
|
||
|
var nocheck = false;
|
||
|
|
||
|
function restoreValues() {
|
||
|
|
||
|
|
||
|
}
|
||
|
|
||
|
|
||
|
function onBack() {
|
||
|
window.location="rzalladvqos3.htm"
|
||
|
/*policyType = parent.hidden.clientInfo[clientNum][12];
|
||
|
if ( policyType == "ipaddress" ) {window.location = "rzalladvqos12.htm";}
|
||
|
else {window.location = "rzalladvqos4.htm";}
|
||
|
*/
|
||
|
}
|
||
|
|
||
|
|
||
|
function onNext(form) {
|
||
|
|
||
|
if ( !blank() ) {
|
||
|
alert(error1);
|
||
|
}
|
||
|
else {
|
||
|
var pos = 0
|
||
|
|
||
|
num_apps = document.applications.apps.length
|
||
|
for ( var i=0; i<num_apps; i++ ) {
|
||
|
myval = ''
|
||
|
if (document.applications.apps[i].checked == true){
|
||
|
nocheck = true;
|
||
|
myval = document.applications.apps[i].value
|
||
|
start = myval.indexOf('*')
|
||
|
end = myval.lastIndexOf('*')
|
||
|
appname = myval.substring(0,start)
|
||
|
port = myval.substring(end+1)
|
||
|
parent.hidden.inboundapps[clientNum][pos][0] = appname //stores app name
|
||
|
parent.hidden.inboundapps[clientNum][pos][1]= port //stores port num
|
||
|
//parent.hidden.inboundapps[clientNum][pos][2] = 'N';
|
||
|
|
||
|
pos = pos +1
|
||
|
if ( document.applications.other.checked ) {
|
||
|
parent.hidden.inboundClientInfo[clientNum][0] = pos // stores the ending point for already known apps
|
||
|
|
||
|
}
|
||
|
|
||
|
|
||
|
}
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
if ( document.applications.other.checked == true ) {
|
||
|
//gotta define apps
|
||
|
if ( !nocheck ) { // if nothing is checked but the custom app checkbox
|
||
|
parent.hidden.inboundClientInfo[clientNum][0] = 0;
|
||
|
|
||
|
}
|
||
|
parent.hidden.hasInboundCustom = true;
|
||
|
window.location = "rzalladvqos5.htm";
|
||
|
//added coding for IE
|
||
|
|
||
|
}
|
||
|
else {
|
||
|
parent.hidden.inboundClientInfo[clientNum][0] = null;
|
||
|
parent.hidden.hasInboundCustom = false;
|
||
|
window.location = "rzalladvqos14.htm";
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
function blank() {
|
||
|
var answer
|
||
|
answer= true;
|
||
|
for ( var i=0; i<document.applications.apps.length; i++ ) {
|
||
|
if ( document.applications.apps[i].checked == false && document.applications.other.checked == false ) {
|
||
|
answer = false;
|
||
|
}
|
||
|
else {
|
||
|
answer = true;
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
return answer;
|
||
|
}
|
||
|
|
||
|
function checkit() {
|
||
|
|
||
|
/* if ( customStart != "" && customStart != null) {
|
||
|
alert("gotcha");
|
||
|
document.applications.other.checked = true;
|
||
|
} */
|
||
|
|
||
|
if ( parent.hidden.hasInboundCustom ) {
|
||
|
document.applications.other.checked = true;
|
||
|
}
|
||
|
|
||
|
|
||
|
}
|
||
|
|
||
|
function inClearApps() {
|
||
|
|
||
|
parent.hidden.inClearApps(clientNum)
|
||
|
|
||
|
}
|
||
|
|
||
|
//Obtain name of HTML file in parent frame.
|
||
|
var parentDir = parent.window.location.href.substring(0,location.href.lastIndexOf('/')+1);
|
||
|
var parentUrl = parent.window.location.href.substring(parentDir.length,parent.window.location.href.length+1);
|
||
|
if (parentUrl.indexOf("#") >= 0) { parentUrl = parentUrl.substring(0,parentUrl.indexOf("#"));}
|
||
|
|
||
|
function fillIn() {
|
||
|
//Is the hidden frame already loaded with the correct html?
|
||
|
if (parentUrl != "rzalladvqoswelcome.htm") {
|
||
|
window.location = "rzalladvqoswelcome.htm"; //load advisor frameset
|
||
|
return;
|
||
|
} else {
|
||
|
//Obtain name of HTML file in hidden frame.
|
||
|
var hiddenDir = parent.hidden.window.location.href.substring(0,location.href.lastIndexOf('/')+1);
|
||
|
var hiddenUrl = parent.hidden.window.location.href.substring(hiddenDir.length,parent.hidden.window.location.href.length+1);
|
||
|
if (hiddenUrl.indexOf("#") >= 0) { hiddenUrl = hiddenUrl.substring(0,hiddenUrl.indexOf("#"));}
|
||
|
if (hiddenUrl != "rzalladvqoshidden.htm") {
|
||
|
//Correct HTML not loaded, load it
|
||
|
parent.hidden.window.location = "rzalladvqoshidden.htm";
|
||
|
} else { //already loaded
|
||
|
fillIn2();
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
function fillIn2() {
|
||
|
|
||
|
pos = parent.hidden.inEndApp(clientNum);
|
||
|
|
||
|
//scan app array
|
||
|
for ( var i=0; i<pos; i++ ) {
|
||
|
appname = parent.hidden.inboundapps[clientNum][i][0].toString();
|
||
|
|
||
|
for ( var j=0; j<document.applications.apps.length; j++ ) {
|
||
|
myval = document.applications.apps[j].value
|
||
|
start = myval.indexOf('*')
|
||
|
end = myval.lastIndexOf('*')
|
||
|
myappname = myval.substring(0,start).toString();
|
||
|
appname = "" + appname
|
||
|
myappname = "" + myappname
|
||
|
|
||
|
if ( appname == myappname ) {
|
||
|
document.applications.apps[j].checked = true;
|
||
|
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
}
|
||
|
}
|
||
|
|
||
|
//END NON-TRANSLATABLE
|
||
|
|
||
|
|
||
|
</script>
|
||
|
|
||
|
</head>
|
||
|
<BODY onload = "fillIn();checkit();inClearApps();">
|
||
|
<h2>QoS planning advisor: Inbound applications</h2>
|
||
|
<P>The applications below currently reside on your server. You need to define what application or port the incoming traffic is trying to access. You can use an inbound policy to restrict packets from clients on designated applications. If you do not see the application you need in the list below, you can define your own application. In the wizards, you can also define an application strictly by port. <p><strong>Note:</strong> When creating inbound policies, you can only define one port or port range per policy. </P>
|
||
|
<p>Select the application(s) that you want to apply to this policy, or define your own.</p>
|
||
|
<p>
|
||
|
<form name="applications">
|
||
|
<INPUT TYPE="checkbox" NAME="apps" id="apps1" VALUE="DNS**53"><label for="apps1">DNS</label><br>
|
||
|
<INPUT TYPE="checkbox" NAME="apps" ID="apps2" VALUE="FTP**20-21"><label for="apps2">FTP</label><br>
|
||
|
<INPUT TYPE="checkbox" NAME="apps" ID="apps3" VALUE="HTTP**80"><label for="apps3">HTTP</label><br>
|
||
|
<INPUT TYPE="checkbox" NAME="apps" ID="apps6" VALUE="POP**109-110"><label for="apps6">POP</label><br>
|
||
|
<INPUT TYPE="checkbox" NAME="apps" ID="apps7" VALUE="SMTP**225"><label for="apps7">SMTP</label><br>
|
||
|
<INPUT TYPE="checkbox" NAME="apps" ID="apps8" VALUE="SNMP**161-162"><label for="apps8">SNMP</label><br>
|
||
|
<INPUT TYPE="checkbox" NAME="apps" ID="apps4" VALUE="Telnet**23"><label for="apps4">Telnet</label><br>
|
||
|
<INPUT TYPE="checkbox" NAME="apps" ID="apps5" VALUE="TFTP**69"><label for="apps5">TFTP</label>
|
||
|
<p>
|
||
|
</P>
|
||
|
<p>
|
||
|
<INPUT TYPE="checkbox" NAME="other" id="other1" VALUE="Other"><label for="other1">I want to define my own applications and ports.</label><p>
|
||
|
</P>
|
||
|
<center><input name=submit type="button" value="<< Back " onClick="onBack()">
|
||
|
<input name=submit type="button" value=" Next >>" onClick="onNext(this.form)">
|
||
|
</center>
|
||
|
</form>
|
||
|
|
||
|
</BODY>
|
||
|
|
||
|
</html>
|
||
|
|