3 <meta HTTP-EQUIV='Pragma' CONTENT='no-cache'>
4 <link rel="stylesheet" href='stylemain.css' type='text/css'>
5 <link rel="stylesheet" href='colors.css' type='text/css'>
6 <script language="javascript" src="util.js"></script>
7 <script language="javascript">
11 var loc = 'scoutflt.cmd?action=add';
13 with ( document.forms[0] ) {
14 if ( txtfltname.value == '' ) {
15 msg = 'Please enter outgoing IP filtering name.';
20 if ( isValidName(txtfltname.value) == false ) {
21 msg = 'Please enter valid outgoing IP filtering name: No special characters.';
26 if ( srcaddr.value == "" && srcmask.value == "" && srcport.value == "" &&
27 dstaddr.value == "" && dstmask.value == "" && dstport.value == "" &&
28 protocol.selectedIndex == 0 ) {
29 msg = 'At least one condition must be specified.'
34 if ( srcaddr.value != "" && isValidIpAddress(srcaddr.value) == false ) {
35 msg = 'Source address "' + srcaddr.value + '" is invalid IP address.';
40 if ( srcmask.value != "" && isValidSubnetMask(srcmask.value) == false ) {
41 msg = 'Source subnet mask "' + srcmask.value + '" is invalid subnet mask.';
46 if ( srcaddr.value == "" && srcmask.value != "" ) {
47 msg = 'Cannot have source subnet mask without source IP address.';
52 if ( srcport.value != "" && isValidPort(srcport.value) == false ) {
53 msg = 'Source port "' + srcport.value + '" is invalid port number or port range.';
58 if ( dstaddr.value != "" && isValidIpAddress(dstaddr.value) == false ) {
59 msg = 'Destination address "' + dstaddr.value + '" is invalid IP address.';
64 if ( dstmask.value != "" && isValidSubnetMask(dstmask.value) == false ) {
65 msg = 'Destination subnet mask "' + dstmask.value + '" is invalid subnet mask.';
70 if ( dstaddr.value == "" && dstmask.value != "" ) {
71 msg = 'Cannot have destination subnet mask without destination IP address.';
76 if ( dstport.value != "" && isValidPort(dstport.value) == false ) {
77 msg = 'Destination port "' + dstport.value + '" is invalid port number or port range.';
82 if ( (srcport.value != "" || dstport.value != "") &&
83 (protocol.selectedIndex == 0 || protocol.selectedIndex == 4) ) {
84 msg = 'TCP or UDP Protocol must be selected together with port number';
89 // outgoing IP filter name
90 loc += '&fltName=' + encodeUrl(txtfltname.value);
93 idx = protocol.selectedIndex;
94 val = protocol.options[idx].value;
95 loc += '&protocol=' + val;
98 if ( srcaddr.value != "" )
99 loc += '&srcAddr=' + srcaddr.value;
101 // source subnet mask
102 if ( srcmask.value != "" )
103 loc += '&srcMask=' + srcmask.value;
106 if ( srcport.value != "" )
107 loc += '&srcPort=' + srcport.value;
109 // destination address
110 if ( dstaddr.value != "" )
111 loc += '&dstAddr=' + dstaddr.value;
113 // destination subnet mask
114 if ( dstaddr.value != "" )
115 loc += '&dstMask=' + dstmask.value;
118 if ( dstport.value != "" )
119 loc += '&dstPort=' + dstport.value;
122 var code = 'location="' + loc + '"';
132 <b>Add IP Filter -- Outgoing</b><br>
134 The screen allows you to create a filter rule to identify outgoing IP traffic
135 by specifying a new filter name and at least one condition below. All of the
136 specified conditions in this filter rule must be satisfied for the rule to take
137 effect. Click 'Save/Apply' to save and activate the filter.<br>
139 <table border="0" cellpadding="0" cellspacing="0">
141 <td>Filter Name:</td>
142 <td><input type='text' size="22" name="txtfltname"></td>
145 <td colspan="2"> </td>
149 <td><select name='protocol' size="1">
151  
163 <td>Source IP address:</td>
164 <td><input type='text' size="22" name="srcaddr"></td>
167 <td>Source Subnet Mask:</td>
168 <td><input type='text' size="22" name="srcmask"></td>
171 <td>Source Port (port or port:port):</td>
172 <td><input type='text' size="22" name="srcport"></td>
175 <td>Destination IP address:</td>
176 <td><input type='text' size="22" name="dstaddr"></td>
179 <td>Destination Subnet Mask:</td>
180 <td><input type='text' size="22" name="dstmask"></td>
183 <td>Destination Port (port or port:port):</td>
184 <td><input type='text' size="22" name="dstport"></td>
189 <center><input type='button' onClick='btnApply()' value='Save/Apply'></center>