|
|
第 4 行: |
第 4 行: |
| | | |
| | | |
− | <table class=nicetable cellspacing="0" cellpadding="0" width="100%" border="0">
| + | <table class=nicetable width="100%"><tbody><tr align="center"><td class="table_title">Protocol</td><td class="table_title">伺服器IP位址</td><td class="table_title">Start Port</td><td class="table_title">End Port</td><td class="table_title">Internal Server</td><td class="table_title">Internal Port</td><td class="table_title">Mapping Name</td><td class="table_title">NAT Loopback</td><td class="table_title">啟用</td><td class="table_title">刪除</td></tr><tr align="center"><td align="center">TCP </td><td align="center">192.168.<br>3.1 </td><td align="center">80 </td><td align="center">80 </td><td align="center">192.168.3.<br>11 </td><td align="center">80 ~ <br>80 </td><td align="center">WebServerH<br>TTP </td><td align="center">開啟 </td><td align="center">開啟 </td><td align="center"><input type="checkbox" name="rml" value="0"></td></tr><tr align="center"><td align="center">TCP </td><td align="center">192.168.<br>3.1 </td><td align="center">21 </td><td align="center">25 </td><td align="center">192.168.3.<br>11 </td><td align="center">21 ~ <br>25 </td><td align="center">FTP2SMTP </td><td align="center">開啟 </td><td align="center">開啟 </td><td align="center"><input type="checkbox" name="rml" value="1"></td></tr><tr align="center"><td align="center">TCP </td><td align="center">192.168.<br>3.1 </td><td align="center">5000 </td><td align="center">5003 </td><td align="center">192.168.3.<br>11 </td><td align="center">5000 <br>~ 500<br>3 </td><td align="center">DSM </td><td align="center">開啟 </td><td align="center">開啟 </td><td align="center"><input type="checkbox" name="rml" value="2"></td></tr><tr align="center"><td align="center">TCP </td><td align="center">192.168.<br>3.1 </td><td align="center">3306 </td><td align="center">3306 </td><td align="center">192.168.3.<br>11 </td><td align="center">3306 <br>~ 330<br>6 </td><td align="center">MySQL </td><td align="center">開啟 </td><td align="center">開啟 </td><td align="center"><input type="checkbox" name="rml" value="3"></td></tr><tr align="center"><td align="center">TCP </td><td align="center">192.168.<br>3.1 </td><td align="center">9001 </td><td align="center">9001 </td><td align="center">192.168.3.<br>11 </td><td align="center">9001 <br>~ 900<br>1 </td><td align="center">etherpad </td><td align="center">開啟 </td><td align="center">開啟 </td><td align="center"><input type="checkbox" name="rml" value="4"></td></tr></tbody></table> |
− | <tbody>
| + | |
− | <tr>
| + | |
− | <td width="10"> </td>
| + | |
− | <td>
| + | |
− | <form id="PortMappingForm" name="PortMappingForm" action="/cgi-bin/app-natset.asp" method="post">
| + | |
− | <div id="natpm">
| + | |
− | <input type="hidden" name="csrftoken" id="csrftoken" value="58l7iXHb8vUp8obJ">
| + | |
− | <input type="hidden" id="VirServer_Flag" name="VirServer_Flag" value="0">
| + | |
− | <input type="hidden" id="EnableVirServer_Flag" name="EnableVirServer_Flag" value="Yes">
| + | |
− | <input type="hidden" id="VirServEntryCurIndex" name="VirServEntryCurIndex" value="0">
| + | |
− | <input type="hidden" id="VirServCurIndex" name="VirServCurIndex" value="0">
| + | |
− | <input type="hidden" id="hVirServEntry0" name="hVirServEntry0" value="99">
| + | |
− | <input type="hidden" id="hVirServEntry1" name="hVirServEntry1" value="99">
| + | |
− | <input type="hidden" id="hVirServEntry2" name="hVirServEntry2" value="99">
| + | |
− | <input type="hidden" id="hVirServEntry3" name="hVirServEntry3" value="99">
| + | |
− | <input type="hidden" id="hVirServEntry4" name="hVirServEntry4" value="99">
| + | |
− | <input type="hidden" id="hVirServEntry5" name="hVirServEntry5" value="99">
| + | |
− | <input type="hidden" id="hVirServEntry6" name="hVirServEntry6" value="99">
| + | |
− | <input type="hidden" id="hVirServEntry7" name="hVirServEntry7" value="99">
| + | |
− | <input type="hidden" id="hVirServEntry8" name="hVirServEntry8" value="99">
| + | |
− | <input type="hidden" id="hVirServEntry9" name="hVirServEntry9" value="99">
| + | |
− | <input type="hidden" id="xGtkLBEnable_Flag" name="xGtkLBEnable_Flag">
| + | |
− | <table cellspacing="0" cellpadding="0" border="0">
| + | |
− | <tbody>
| + | |
− | <tr>
| + | |
− | <td width="120">Interface名稱: </td>
| + | |
− | <td width="250"><select onchange="btnSubmit(5)" size="1" id="PortMappingInterface" name="PortMappingInterface">
| + | |
− | <script language="JavaScript" type="text/javascript">
| + | |
− | document.write('<option value="999">' + '' + '</option>');
| + | |
− | for (i = 0; i < nEntryNum; i++)
| + | |
− | {
| + | |
− |
| + | |
− | if((vEntryName[i].indexOf('_TR069_')<0 || vEntryName[i].indexOf('_INTERNET_')>-1) && (vEntryName[i].indexOf('_R_')>-1))
| + | |
− |
| + | |
− | {
| + | |
− | document.write('<option value=' + vEntryValue[i] + ' id=portmp_' + i + '>' + vEntryName[i] + '</option>');
| + | |
− | }
| + | |
− | }
| + | |
− | </script><option value="999"></option><option value="ppp8" id="portmp_1">2_INTERNET_R_VID_4082</option>
| + | |
− | </select> </td></tr>
| + | |
− | <tr><td><input onclick="radioClick()" type="radio" checked="" id="radiosrv" name="radiosrv"> 自行定義 </td><td> </td></tr>
| + | |
− | <tr><td><input onclick="radioClick()" type="radio" id="radiosrv" name="radiosrv"> 選擇應用: </td><td>
| + | |
− | <select disabled="" onchange="appSelect(this.value)" size="1" id="constsrvName" name="constsrvName"> <option value="FIRST_APP" selected="">選擇...</option> <option value="Domain Name Server">Domain Name Server
| + | |
− | </option> <option value="FTP Server">FTP
| + | |
− | Server</option> <option value="IPSEC">IPSEC</option>
| + | |
− | <option value="Mail POP3">Mail POP3</option>
| + | |
− | <option value="Mail SMTP">Mail SMTP</option>
| + | |
− | <option value="PPTP">PPTP</option> <option value="Real Player 8 Plus">Real Player 8 Plus</option>
| + | |
− | <option value="Secure Shell Server">Secure Shell
| + | |
− | Server</option> <option value="Secure Web Server HTTPS">Secure Web Server
| + | |
− | HTTPS</option> <option value="SNMP">SNMP</option>
| + | |
− | <option value="SNMP Trap">SNMP Trap</option> <option value="Telnet Server">Telnet Server</option> <option value="TFTP">TFTP</option> <option value="Web Server HTTP">Web Server
| + | |
− | HTTP</option></select>
| + | |
− | </td></tr>
| + | |
− | <tr style="DISPLAY: none">
| + | |
− | <td width="120">啟用:</td>
| + | |
− | <td><select size="1" id="PortMappingEnabled" name="PortMappingEnabled"> <option value="1" selected="">啟用</option> <option value="0">停用</option></select> </td></tr>
| + | |
− | <tr>
| + | |
− | <td width="120">Protocol: </td>
| + | |
− | <td><select size="1" id="PortMappingProtocol" name="PortMappingProtocol"> <option value="TCP" selected="">TCP</option> <option value="UDP">UDP</option> <option value="TCP/UDP">TCP/UDP</option></select> </td></tr>
| + | |
− | <tr>
| + | |
− | <td width="120">伺服器IP位址 </td>
| + | |
− | <td><input maxlength="15" id="RemoteHost" name="RemoteHost"></td></tr>
| + | |
− | <tr>
| + | |
− | <td width="120">外部port起點 </td>
| + | |
− | <td><input maxlength="5" id="ExternalPort" name="ExternalPort"></td></tr>
| + | |
− | <tr>
| + | |
− | <td width="120">外部port終點 </td>
| + | |
− | <td><input maxlength="5" id="InternalPort" name="InternalPort"></td></tr>
| + | |
− | <tr>
| + | |
− | <td width="120">內部主機 </td>
| + | |
− | <td><input maxlength="32" id="InternalClient" name="InternalClient"></td></tr>
| + | |
− | <tr>
| + | |
− | <td width="120" colspan="2">
| + | |
− | 內部port
| + | |
− | <input type="hidden" id="InternalPortVal" name="InternalPortVal" value="">
| + | |
− | </td></tr>
| + | |
− | <tr>
| + | |
− | <td width="120" colspan="2">
| + | |
− | <input type="radio" name="InternalPortType" id="InternalPortTypeSame" onchange="radioClickInterPortOpt();" checked="">
| + | |
− | 與外部port相同
| + | |
− | </td></tr>
| + | |
− | <tr>
| + | |
− | <td width="120" colspan="2">
| + | |
− | <input type="radio" name="InternalPortType" id="InternalPortTypeAssign" onchange="radioClickInterPortOpt();">
| + | |
− | 指定使用port:
| + | |
− | <input id="InternalAssignPort" name="InternalAssignPort" disabled="">
| + | |
− | </td></tr>
| + | |
− | <tr>
| + | |
− | <td width="120">MappingName: </td>
| + | |
− | <td><input maxlength="31" id="PortMappingDescription" name="PortMappingDescription"></td></tr>
| + | |
− | <tr>
| + | |
− | <td width="120">啟用NAT Loopback </td>
| + | |
− | <td><input type="checkbox" id="NatVirSerLBEnbl" name="NatVirSerLBEnbl"></td></tr>
| + | |
− | </tbody></table></div></form><br><left><input onclick="btnSubmit(3)" type="button" id="btn1" value="添加" name="btn1">
| + | |
− | </left><br><br><br>
| + | |
− | <div id="portMappingInfo"><table border="1" cellpadding="0" cellspacing="0" width="100%"><tbody><tr align="center"><td class="table_title">Protocol</td><td class="table_title">伺服器IP位址</td><td class="table_title">Start Port</td><td class="table_title">End Port</td><td class="table_title">Internal Server</td><td class="table_title">Internal Port</td><td class="table_title">Mapping Name</td><td class="table_title">NAT Loopback</td><td class="table_title">啟用</td><td class="table_title">刪除</td></tr><tr align="center"><td align="center">TCP </td><td align="center">192.168.<br>3.1 </td><td align="center">80 </td><td align="center">80 </td><td align="center">192.168.3.<br>11 </td><td align="center">80 ~ <br>80 </td><td align="center">WebServerH<br>TTP </td><td align="center">開啟 </td><td align="center">開啟 </td><td align="center"><input type="checkbox" name="rml" value="0"></td></tr><tr align="center"><td align="center">TCP </td><td align="center">192.168.<br>3.1 </td><td align="center">21 </td><td align="center">25 </td><td align="center">192.168.3.<br>11 </td><td align="center">21 ~ <br>25 </td><td align="center">FTP2SMTP </td><td align="center">開啟 </td><td align="center">開啟 </td><td align="center"><input type="checkbox" name="rml" value="1"></td></tr><tr align="center"><td align="center">TCP </td><td align="center">192.168.<br>3.1 </td><td align="center">5000 </td><td align="center">5003 </td><td align="center">192.168.3.<br>11 </td><td align="center">5000 <br>~ 500<br>3 </td><td align="center">DSM </td><td align="center">開啟 </td><td align="center">開啟 </td><td align="center"><input type="checkbox" name="rml" value="2"></td></tr><tr align="center"><td align="center">TCP </td><td align="center">192.168.<br>3.1 </td><td align="center">3306 </td><td align="center">3306 </td><td align="center">192.168.3.<br>11 </td><td align="center">3306 <br>~ 330<br>6 </td><td align="center">MySQL </td><td align="center">開啟 </td><td align="center">開啟 </td><td align="center"><input type="checkbox" name="rml" value="3"></td></tr><tr align="center"><td align="center">TCP </td><td align="center">192.168.<br>3.1 </td><td align="center">9001 </td><td align="center">9001 </td><td align="center">192.168.3.<br>11 </td><td align="center">9001 <br>~ 900<br>1 </td><td align="center">etherpad </td><td align="center">開啟 </td><td align="center">開啟 </td><td align="center"><input type="checkbox" name="rml" value="4"></td></tr></tbody></table></div><br><left><input onclick="btnSubmit(4)" id="btnDel" type="button" value="刪除" name="btnDel">
| + | |
− | </left></td>
| + | |
− | <td width="10"> </td></tr>
| + | |
− | <tr>
| + | |
− | <td width="10"> </td>
| + | |
− | <td>
| + | |
− | <hr>
| + | |
− | </td>
| + | |
− | <td width="10"> </td></tr></tbody></table>
| + | |