Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
- <meta http-equiv="Pragma" content="no-cache">
- <meta HTTP-equiv="Cache-Control" content="no-cache">
- <meta HTTP-EQUIV="Expires" CONTENT="Mon, 01 Jan 1990 00:00:01 GMT">
- <title>Настройка интерфейса WAN</title>
- <style>
- .on {display:on}
- .off {display:none}
- </style>
- <script type="text/javascript" src="util_gw.js"> </script>
- <SCRIPT>
- var initialDnsMode, pppConnectStatus=0;
- function setPPPConnected()
- {
- pppConnectStatus = 1;
- }
- function resetClicked()
- {
- if(document.tcpip.wanType.selectedIndex != 0){
- if(document.tcpip.dnsMode[0].checked)
- disableDNSinput();
- else
- enableDNSinput();
- }
- document.tcpip.reset;
- location=location;
- }
- function disableDNSinput()
- {
- disableTextField(document.tcpip.dns1);
- disableTextField(document.tcpip.dns2);
- disableTextField(document.tcpip.dns3);
- }
- function enableDNSinput()
- {
- enableTextField(document.tcpip.dns1);
- enableTextField(document.tcpip.dns2);
- enableTextField(document.tcpip.dns3);
- }
- function autoDNSclicked()
- {
- disableDNSinput();
- }
- function manualDNSclicked()
- {
- enableDNSinput();
- }
- function pptpConnectClick(connect)
- {
- if (document.tcpip.pptpConnectType.selectedIndex == 2 && pppConnectStatus==connect) {
- if (document.tcpip.pptpUserName.value=="") {
- alert('Поле "Имя учетной записи PPTP" не должно быть пустым!');
- document.tcpip.pptpUserName.value = document.tcpip.pptpUserName.defaultValue;
- document.tcpip.pptpUserName.focus();
- return false;
- }
- if (document.tcpip.pptpPassword.value=="") {
- alert('Поле "Пароль учетной записи PPTP" не должно быть пустым!');
- document.tcpip.pptpPassword.value = document.tcpip.pptpPassword.defaultValue;
- document.tcpip.pptpPassword.focus();
- return false;
- }
- return true;
- }
- return false;
- }
- function l2tpConnectClick(connect)
- {
- if (document.tcpip.l2tpConnectType.selectedIndex == 2 && pppConnectStatus==connect) {
- if (document.tcpip.l2tpUserName.value=="") {
- alert('Поле "Имя учетной записи L2TP" не должно быть пустым!');
- document.tcpip.l2tpUserName.value = document.tcpip.l2tpUserName.defaultValue;
- document.tcpip.l2tpUserName.focus();
- return false;
- }
- if (document.tcpip.l2tpPassword.value=="") {
- alert('Поле "Пароль учетной записи L2TP" не должно быть пустым!');
- document.tcpip.l2tpPassword.value = document.tcpip.l2tpPassword.defaultValue;
- document.tcpip.l2tpPassword.focus();
- return false;
- }
- return true;
- }
- return false;
- }
- function USB3GConnectClick(connect)
- {
- if (document.tcpip.USB3GConnectType.selectedIndex == 2 && pppConnectStatus==connect) {
- return true;
- }
- return false;
- }
- function pppConnectClick(connect)
- {
- if (document.tcpip.pppConnectType.selectedIndex == 2 && pppConnectStatus==connect) {
- if (document.tcpip.pppUserName.value=="") {
- alert('Поле "Имя учетной записи PPP" не должно быть пустым!');
- document.tcpip.pppUserName.value = document.tcpip.pppUserName.defaultValue;
- document.tcpip.pppUserName.focus();
- return false;
- }
- if (document.tcpip.pppPassword.value=="") {
- alert('Поле "Пароль учетной записи PPP" не должно быть пустым!');
- document.tcpip.pppPassword.value = document.tcpip.pppPassword.defaultValue;
- document.tcpip.pppPassword.focus();
- return false;
- }
- return true;
- }
- return false;
- }
- function pppConnection_Init()
- {
- disableButton(document.tcpip.pppConnect);
- disableButton(document.tcpip.pppDisconnect);
- disableTextField(document.tcpip.pppIdleTime);
- disableButton(document.tcpip.pptpConnect);
- disableButton(document.tcpip.pptpDisconnect);
- disableTextField(document.tcpip.pptpIdleTime);
- disableButton(document.tcpip.l2tpConnect);
- disableButton(document.tcpip.l2tpDisconnect);
- disableTextField(document.tcpip.l2tpIdleTime);
- /* USB3G */
- disableButton(document.tcpip.USB3GConnect);
- disableButton(document.tcpip.USB3GDisconnect);
- disableTextField(document.tcpip.USB3GIdleTime);
- }
- function pppTypeSelection(wan_type)
- {
- if(wan_type == 0){
- if ( document.tcpip.pppConnectType.selectedIndex == 2) {
- if (pppConnectStatus==0) {
- enableButton(document.tcpip.pppConnect);
- disableButton(document.tcpip.pppDisconnect);
- }
- else {
- disableButton(document.tcpip.pppConnect);
- enableButton(document.tcpip.pppDisconnect);
- }
- disableTextField(document.tcpip.pppIdleTime);
- }
- else {
- disableButton(document.tcpip.pppConnect);
- disableButton(document.tcpip.pppDisconnect);
- if (document.tcpip.pppConnectType.selectedIndex == 1)
- enableTextField(document.tcpip.pppIdleTime);
- else
- disableTextField(document.tcpip.pppIdleTime);
- }
- }
- if(wan_type == 1){
- if ( document.tcpip.pptpConnectType.selectedIndex == 2) {
- if (pppConnectStatus==0) {
- enableButton(document.tcpip.pptpConnect);
- disableButton(document.tcpip.pptpDisconnect);
- }
- else {
- disableButton(document.tcpip.pptpConnect);
- enableButton(document.tcpip.pptpDisconnect);
- }
- disableTextField(document.tcpip.pptpIdleTime);
- }
- else {
- disableButton(document.tcpip.pptpConnect);
- disableButton(document.tcpip.pptpDisconnect);
- if (document.tcpip.pptpConnectType.selectedIndex == 1)
- enableTextField(document.tcpip.pptpIdleTime);
- else
- disableTextField(document.tcpip.pptpIdleTime);
- }
- }
- if(wan_type == 2){
- if ( document.tcpip.l2tpConnectType.selectedIndex == 2) {
- if (pppConnectStatus==0) {
- enableButton(document.tcpip.l2tpConnect);
- disableButton(document.tcpip.l2tpDisconnect);
- }
- else {
- disableButton(document.tcpip.l2tpConnect);
- enableButton(document.tcpip.l2tpDisconnect);
- }
- disableTextField(document.tcpip.l2tpIdleTime);
- }
- else {
- disableButton(document.tcpip.l2tpConnect);
- disableButton(document.tcpip.l2tpDisconnect);
- if (document.tcpip.l2tpConnectType.selectedIndex == 1)
- enableTextField(document.tcpip.l2tpIdleTime);
- else
- disableTextField(document.tcpip.l2tpIdleTime);
- }
- }
- /* USB3G connect type */
- if(wan_type == 3){
- if ( document.tcpip.USB3GConnectType.selectedIndex == 2) {
- if (pppConnectStatus==0) {
- enableButton(document.tcpip.USB3GConnect);
- disableButton(document.tcpip.USB3GDisconnect);
- }
- else {
- disableButton(document.tcpip.USB3GConnect);
- enableButton(document.tcpip.USB3GDisconnect);
- }
- disableTextField(document.tcpip.USB3GIdleTime);
- }
- else {
- disableButton(document.tcpip.USB3GConnect);
- disableButton(document.tcpip.USB3GDisconnect);
- if (document.tcpip.USB3GConnectType.selectedIndex == 1)
- enableTextField(document.tcpip.USB3GIdleTime);
- else
- disableTextField(document.tcpip.USB3GIdleTime);
- }
- }
- }
- function wanTypeSelection(field)
- {
- //document.tcpip.submit();
- if(!document.getElementById){
- alert('Ошибка! Ваш браузер должен поддерживать CSS!');
- return;
- }
- /* # keith: add l2tp support. 20080515 */
- if(field.selectedIndex == 0){ //static ip
- wanShowDiv(0 ,1, 0, 0, 1, 0, 0); //pptp, dns, dnsMode, pppoe, static (div), l2tp, USB3G
- enableDNSinput();
- document.tcpip.dnsMode[1].checked = true ; // dns change to manual mode
- }
- else if(field.selectedIndex == 1){ //Dhcp
- wanShowDiv(0 ,1, 1, 0, 0, 0, 0);
- if(document.tcpip.dnsMode[0].checked)
- disableDNSinput();
- }else if(field.selectedIndex == 2){ //pppoe
- wanShowDiv(0 ,1, 1, 1, 0, 0, 0);
- if(document.tcpip.dnsMode[0].checked)
- disableDNSinput();
- }else if(field.selectedIndex == 3){ //pptp
- wanShowDiv(1, 1, 1, 0, 0, 0, 0);
- if(document.tcpip.dnsMode[0].checked)
- disableDNSinput();
- }else if(field.selectedIndex == 4){ //l2tp
- wanShowDiv(0, 1, 1, 0, 0, 1, 0);
- if(document.tcpip.dnsMode[0].checked)
- disableDNSinput();
- }else if(field.selectedIndex == 5){ //USB3G
- wanShowDiv(0, 1, 1, 0, 0, 0, 1);
- if(document.tcpip.dnsMode[0].checked)
- disableDNSinput();
- }
- var wan_connection_type=document.tcpip.wanType.selectedIndex;
- if(wan_connection_type == 2)
- pppTypeSelection(0);
- else if(wan_connection_type == 3)
- pppTypeSelection(1);
- else if(wan_connection_type == 4)
- pppTypeSelection(2);
- else if(wan_connection_type == 5) //USB3G
- pppTypeSelection(3);
- else
- pppConnection_Init();
- }
- function Load_Setting()
- {
- var wanDhcp_ = 1;
- var wanDhcp_selidx = 0;
- if ( wanDhcp_ == 0 )
- wanDhcp_selidx = 0;
- else if ( wanDhcp_ == 1 )
- wanDhcp_selidx = 1;
- else if ( wanDhcp_ == 3 )
- wanDhcp_selidx = 2;
- else if ( wanDhcp_ == 4 )
- wanDhcp_selidx = 3;
- else if ( wanDhcp_ == 6 )
- wanDhcp_selidx = 4;
- /*
- else if ( wanDhcp_ == 16 )
- wanDhcp_selidx = 5;
- */
- document.tcpip.wanType.selectedIndex = wanDhcp_selidx;
- wanTypeSelection(document.tcpip.wanType);
- if ( 0 == 0) {
- document.tcpip.elements["dnsMode"][0].checked = true;
- autoDNSclicked();
- }
- if ( 0 == 1) {
- document.tcpip.elements["dnsMode"][1].checked = true;
- manualDNSclicked();
- }
- if ( 1 )
- document.tcpip.upnpEnabled.checked = true;
- if ( 0 == 0 )
- document.tcpip.igmpproxyEnabled.checked = true;
- if ( 1 )
- document.tcpip.pingWanAccess.checked = true;
- if ( 1 )
- document.tcpip.webWanAccess.checked = true;
- if ( 1 )
- document.tcpip.WANPassThru1.checked = true;
- if ( 1 )
- document.tcpip.WANPassThru2.checked = true;
- if ( 1 )
- document.tcpip.WANPassThru3.checked = true;
- if ( 0 )
- document.tcpip.ipv6_passthru_enabled.checked = true;
- }
- </SCRIPT>
- </head>
- <body onload="Load_Setting();">
- <blockquote>
- <h2><font color="#767676">Настройка интерфейса WAN</font></h2>
- <form action=/boafrm/formWanTcpipSetup method=POST name="tcpip">
- <table border=0 width="550" cellspacing=0 cellpadding=0>
- <tr><font size=2>
- На данной странице задаются параметры подключения к Интернету. Выберите тип подключения из выпадающего списка: статический IP-адрес или DHCP-клиент (динамический IP-адрес). Тип подключения вы можете уточнить у Интернет-провайдера.
- </tr>
- <tr><hr size=1 noshade align=top></tr>
- <tr>
- </table>
- <input type="hidden" value="pptp" name="ipMode">
- <table border="0" width=550>
- <tr>
- <td width="30%" height=40><font size=2><b>Тип подключения к Интернету:</b></td>
- <td width="70%"><font size=2><select size="1" name="wanType" onChange="wanTypeSelection(this)">
- <option value="fixedIp">Статический IP-адрес</option>
- <option value="autoIp">DHCP-клиент</option>
- <!-- <option value="ppp">PPPoE</option> -->
- <!-- <option value="pptp">PPTP</option> -->
- <!-- <option value="l2tp">L2TP</option> -->
- <!--
- <option value="USB3G">USB3G</option>
- -->
- </select></td>
- <tr>
- </table>
- <span id = "static_div" class = "off" >
- <table border="0" width=550>
- <tr>
- <td width="30%"><font size=2><b>IP-адрес:</b></td>
- <td width="70%"><font size=2>
- <input type="text" name="wan_ip" size="18" maxlength="15" value="172.1.1.1">
- </td>
- </tr>
- <tr>
- <td width="30%"><font size=2><b>Маска подсети:</b></td>
- <td width="70%"><font size=2><input type="text" name="wan_mask" size="18" maxlength="15" value="255.255.255.0"></td>
- </tr>
- <tr>
- <td width="30%"><font size=2><b>Основной шлюз:</b></td>
- <td width="70%"><font size=2><input type="text" name="wan_gateway" size="18" maxlength="15" value="172.1.1.254"></td>
- </tr>
- <tr>
- <td width="30%"><font size=2><b>MTU:</b></td>
- <td width="70%"><font size=2><input type="text" name="fixedIpMtuSize" size="10" maxlength="10" value="1500"> (1400-1500 байт)</td>
- </tr>
- </table>
- </span>
- <span id = "dhcp_div" class = "off" >
- <table border="0" width=550>
- <tr>
- <td width="30%"><font size=2><b>Имя хоста:</b></td>
- <td width="70%"><font size=2><input type="text" name="hostName" size="18" maxlength="30" value=""></td>
- </tr>
- <tr>
- <td width="30%"><font size=2><b>MTU:</b></td>
- <td width="70%"><font size=2><input type="text" name="dhcpMtuSize" size="10" maxlength="10" value="1500"> (1400-1500 байта)</td>
- </tr>
- </table>
- </span>
- <span id = "pppoe_div" class = "off" >
- <table border="0" width=550>
- <tr>
- <td width="30%"><font size=2><b>Имя пользователя:</b></td>
- <td width="70%"><font size=2><input type="text" name="pppUserName" size="18" maxlength="128" value=""></td>
- </tr>
- <tr>
- <td width="30%"><font size=2><b>Пароль:</b></td>
- <td width="70%"><font size=2><input type="password" name="pppPassword" size="18" maxlength="128" value=""></td>
- </tr>
- <tr>
- <td width="30%"><font size=2><b>Имя сервиса:</b></td>
- <td width="70%"><font size=2><input type="text" name="pppServiceName" size="18" maxlength="40" value=""></td>
- </tr>
- <tr>
- <td width="30%"><font size=2><b>Тип подключения:</b></td>
- <td width="70%"><font size=2><select size="1" name="pppConnectType" onChange="pppTypeSelection(0)">
- <script type="text/javascript">
- var type = 0;
- if ( type == 0 ) {
- document.write( "<option selected value=\"0\">Continuous</option>" );
- document.write( "<option value=\"1\">Connect on Demand</option>" );
- document.write( "<option value=\"2\">Manual</option>" );
- }
- if ( type == 1 ) {
- document.write( "<option value=\"0\">Continuous</option>" );
- document.write( "<option selected value=\"1\">Connect on Demand</option>" );
- document.write( "<option value=\"2\">Manual</option>" );
- }
- if ( type == 2 ) {
- document.write( "<option value=\"0\">Continuous</option>" );
- document.write( "<option value=\"1\">Connect on Demand</option>" );
- document.write( "<option selected value=\"2\">Manual</option>" );
- }
- </script>
- </select>
- <input type="submit" value="Подключить" name="pppConnect" onClick="return pppConnectClick(0)">
- <input type="submit" value="Отключить" name="pppDisconnect" onClick="return pppConnectClick(1)">
- <script type="text/javascript">
- if ( 0 )
- setPPPConnected();
- </script>
- </td>
- </tr>
- <tr>
- <td width="30%"><font size=2><b>Допустимое время простоя соединения:</b></td>
- <td width="70%"><font size=2><input type="text" name="pppIdleTime" size="10" maxlength="10" value="5"> (1-1000 minutes)</td>
- </tr>
- <tr>
- <td width="30%"><font size=2><b>MTU:</b></td>
- <td width="70%"><font size=2><input type="text" name="pppMtuSize" size="10" maxlength="10" value="1452"> (1360-1492 байта)</td>
- </tr>
- </table>
- </span>
- <span id = "pptp_div" class = "off" >
- <table border="0" width=550>
- <td width="30%"><font size=2><b>IP-адрес:</b></td>
- <td width="70%"><font size=2><input type="text" name="pptpIpAddr" size="18" maxlength="30" value="172.1.1.2"></td>
- </tr>
- <tr>
- <td width="30%"><font size=2><b>Маска подсети:</b></td>
- <td width="70%"><font size=2><input type="text" name="pptpSubnetMask" size="18" maxlength="30" value="255.255.255.0"></td>
- </tr>
- <tr>
- <td width="30%"><font size=2><b>IP-адрес сервера:</b></td>
- <td width="70%"><font size=2><input type="text" name="pptpServerIpAddr" size="18" maxlength="30" value="172.1.1.1"></td>
- </tr>
- <tr>
- <td width="30%"><font size=2><b>Имя пользователя:</b></td>
- <td width="70%"><font size=2><input type="text" name="pptpUserName" size="18" maxlength="128" value=""></td>
- </tr>
- <tr>
- <td width="30%"><font size=2><b>Пароль:</b></td>
- <td width="70%"><font size=2><input type="password" name="pptpPassword" size="18" maxlength="128" value=""></td>
- </tr>
- <tr>
- <td width="30%"><font size=2><b>Тип подключения:</b></td>
- <td width="70%"><font size=2><select size="1" name="pptpConnectType" onChange="pppTypeSelection(1)">
- <script type="text/javascript">
- var type = 0;
- if ( type == 0 ) {
- document.write("<option selected value=\"0\">Continuous</option>" );
- document.write("<option value=\"1\">Connect on Demand</option>" );
- document.write("<option value=\"2\">Manual</option>" );
- }
- if ( type == 1 ) {
- document.write("<option value=\"0\">Continuous</option>");
- document.write("<option selected value=\"1\">Connect on Demand</option>");
- document.write("<option value=\"2\">Manual</option>");
- }
- if ( type == 2 ) {
- document.write("<option value=\"0\">Continuous</option>");
- document.write("<option value=\"1\">Connect on Demand</option>");
- document.write("<option selected value=\"2\">Manual</option>");
- }
- </script>
- </select>
- <input type="submit" value="Подключить" name="pptpConnect" onClick="return pptpConnectClick(0)">
- <input type="submit" value="Отключить" name="pptpDisconnect" onClick="return pptpConnectClick(1)">
- <script type="text/javascript">
- if ( 0 )
- setPPPConnected();
- </script>
- </td>
- </tr>
- <tr>
- <td width="30%"><font size=2><b>Допустимое время простоя соединения:</b></td>
- <td width="70%"><font size=2><input type="text" name="pptpIdleTime" size="10" maxlength="10" value="5"> (1-1000 minutes)</td>
- </tr>
- <tr>
- <td width="30%"><font size=2><b>MTU:</b></td>
- <td width="70%"><font size=2><input type="text" name="pptpMtuSize" size="10" maxlength="10" value="1460"> (1400-1460 байт)</td>
- </tr>
- <tr>
- <td width="100%" colspan="2"><font size=2>
- <script type="text/javascript">
- if (0)
- document.tcpip.pptpSecurity.checked = true;
- if (0)
- document.tcpip.pptpCompress.checked = true;
- </script>
- <b><input type="checkbox" name="pptpSecurity" value="ON"> Запросить шифрование MPPE
- <input type="checkbox" name="pptpCompress" value="ON"> Запросить сжатие MPPC</b></td>
- </tr>
- <tr></tr><tr></tr><tr></tr>
- </table>
- </span>
- <!-- keith: add l2tp support. 20080515 -->
- <span id = "l2tp_div" class = "off" >
- <table border="0" width=550>
- <td width="30%"><font size=2><b>IP-адрес:</b></td>
- <td width="70%"><font size=2><input type="text" name="l2tpIpAddr" size="18" maxlength="30" value="172.1.1.2"></td>
- </tr>
- <tr>
- <td width="30%"><font size=2><b>Маска подсети:</b></td>
- <td width="70%"><font size=2><input type="text" name="l2tpSubnetMask" size="18" maxlength="30" value="255.255.255.0"></td>
- </tr>
- <tr>
- <td width="30%"><font size=2><b>IP-адрес сервера:</b></td>
- <td width="70%"><font size=2><input type="text" name="l2tpServerIpAddr" size="18" maxlength="30" value="172.1.1.1"></td>
- </tr>
- <tr>
- <td width="30%"><font size=2><b>Имя пользователя:</b></td>
- <td width="70%"><font size=2><input type="text" name="l2tpUserName" size="18" maxlength="128" value=""></td>
- </tr>
- <tr>
- <td width="30%"><font size=2><b>Пароль:</b></td>
- <td width="70%"><font size=2><input type="password" name="l2tpPassword" size="18" maxlength="128" value=""></td>
- </tr>
- <tr>
- <td width="30%"><font size=2><b>Тип подключения:</b></td>
- <td width="70%"><font size=2><select size="1" name="l2tpConnectType" onChange="pppTypeSelection(2)">
- <script type="text/javascript">
- var type = 0;
- if ( type == 0 ) {
- document.write( "<option selected value=\"0\">Continuous</option>" );
- document.write( "<option value=\"1\">Connect on Demand</option>" );
- document.write( "<option value=\"2\">Manual</option>" );
- }
- if ( type == 1 ) {
- document.write( "<option value=\"0\">Continuous</option>" );
- document.write( "<option selected value=\"1\">Connect on Demand</option>" );
- document.write( "<option value=\"2\">Manual</option>" );
- }
- if ( type == 2 ) {
- document.write( "<option value=\"0\">Continuous</option>" );
- document.write( "<option value=\"1\">Connect on Demand</option>" );
- document.write( "<option selected value=\"2\">Manual</option>" );
- }
- </script>
- </select>
- <input type="submit" value="Подключить" name="l2tpConnect" onClick="return l2tpConnectClick(0)">
- <input type="submit" value="Отключить" name="l2tpDisconnect" onClick="return l2tpConnectClick(1)">
- <script type="text/javascript">
- if ( 0 )
- setPPPConnected();
- </script>
- </td>
- </tr>
- <tr>
- <td width="30%"><font size=2><b>Допустимое время простоя соединения:</b></td>
- <td width="70%"><font size=2><input type="text" name="l2tpIdleTime" size="10" maxlength="10" value="5"> (1-1000 минут)</td>
- </tr>
- <tr>
- <td width="30%"><font size=2><b>MTU:</b></td>
- <td width="70%"><font size=2><input type="text" name="l2tpMtuSize" size="10" maxlength="10" value="1460"> (1400-1460 байт)</td>
- </tr>
- <tr></tr><tr></tr><tr></tr>
- </table>
- </span>
- <!-- start USB3G -->
- <span id = "USB3G_div" class = "off" >
- <table border="0" width=550>
- <td width="30%"><font size=2><b>Имя пользователя:</b></td>
- <td width="70%"><font size=2><input type="text" name="USB3G_USER" size="18" maxlength="30" value=""></td>
- </tr>
- <tr>
- <td width="30%"><font size=2><b>Пароль:</b></td>
- <td width="70%"><font size=2><input type="password" name="USB3G_PASS" size="18" maxlength="30" value=""></td>
- </tr>
- <tr>
- <td width="30%"><font size=2><b>PIN:</b></td>
- <td width="70%"><font size=2><input type="password" name="USB3G_PIN" size="18" maxlength="30" value=""></td>
- </tr>
- <tr>
- <td width="30%"><font size=2><b>APN:</b></td>
- <td width="70%"><font size=2><input type="text" name="USB3G_APN" size="18" maxlength="128" value=""></td>
- </tr>
- <tr>
- <td width="30%"><font size=2><b>Номер модемного пула:</b></td>
- <td width="70%"><font size=2><input type="text" name="USB3G_DIALNUM" size="18" maxlength="128" value=""></td>
- </tr>
- <tr>
- <td width="30%"><font size=2><b>Тип подключения:</b></td>
- <td width="70%"><font size=2><select size="1" name="USB3GConnectType" onChange="pppTypeSelection(3)">
- <!--
- <script type="text/javascript">
- var type = ;
- if ( type == 0 ) {
- document.write( "<option selected value=\"0\">Continuous</option>" );
- document.write( "<option value=\"1\">Connect on Demand</option>" );
- document.write( "<option value=\"2\">Manual</option>" );
- }
- if ( type == 1 ) {
- document.write( "<option value=\"0\">Continuous</option>" );
- document.write( "<option selected value=\"1\">Connect on Demand</option>" );
- document.write( "<option value=\"2\">Manual</option>" );
- }
- if ( type == 2 ) {
- document.write( "<option value=\"0\">Continuous</option>" );
- document.write( "<option value=\"1\">Connect on Demand</option>" );
- document.write( "<option selected value=\"2\">Manual</option>" );
- }
- </script>
- -->
- </select>
- <input type="submit" value="Подключить" name="USB3GConnect" onClick="return USB3GConnectClick(0)">
- <input type="submit" value="Отключить" name="USB3GDisconnect" onClick="return USB3GConnectClick(1)">
- <script type="text/javascript">
- if ( 0 )
- setPPPConnected();
- </script>
- </td>
- </tr>
- <tr>
- <td width="30%"><font size=2><b>Допустимое время простоя соединения:</b></td>
- <td width="70%"><font size=2><input type="text" name="USB3GIdleTime" size="10" maxlength="10" value=""> (1-1000 минут)</td>
- </tr>
- <tr>
- <td width="30%"><font size=2><b>MTU:</b></td>
- <td width="70%"><font size=2><input type="text" name="USB3GMtuSize" size="10" maxlength="10" value=""> (1420-1490 байт)</td>
- </tr>
- <tr></tr><tr></tr><tr></tr>
- </table>
- </span>
- <!-- end USB3G -->
- <span id = "dnsMode_div" class = "off" >
- <table border="0" width=550>
- <!--
- <tr height="35" valign="bottom">
- -->
- <tr>
- <td width="100%" colspan="2"><font size=2>
- <b><input type="radio" value="dnsAuto" name="dnsMode" onClick="autoDNSclicked()">Получить адрес DNS-сервера автоматически</b>
- </td>
- </tr>
- <tr>
- <td width="100%" colspan="2"><font size=2>
- <b><input type="radio" value="dnsManual" name="dnsMode" onClick="manualDNSclicked()">Задать адрес DNS-сервера вручную</b>
- </td>
- </tr>
- <tr>
- </table>
- </span>
- <span id = "dns_div" class = "off" >
- <table border="0" width=550>
- <td width="30%"><font size=2><b> DNS 1:</b></td>
- <td width="70%"><font size=2><input type="text" name="dns1" size="18" maxlength="15" value=></td>
- </tr>
- <tr>
- <td width="30%"><font size=2><b> DNS 2:</b></td>
- <td width="70%"><font size=2><input type="text" name="dns2" size="18" maxlength="15" value=></td>
- </tr>
- <tr>
- <td width="30%"><font size=2><b> DNS 3:</b></td>
- <td width="70%"><font size=2><input type="text" name="dns3" size="18" maxlength="15" value=></td>
- </tr>
- </table>
- </span>
- <table border="0" width=550>
- <tr>
- <td width="30%"><font size=2><b>Клонировать MAC-адрес:</b></td>
- <td width="70%"><font size=2><input type="text" name="wan_macAddr" size="18" maxlength="12" value=000000000000></td>
- </tr>
- <tr>
- <td width="100%" colspan="2"><font size=2>
- <b><input type="checkbox" name="upnpEnabled" value="ON"> Включить uPNP</b></td>
- </script>
- </tr>
- <tr>
- <td width="100%" colspan="2"><font size=2>
- <b><input type="checkbox" name="igmpproxyEnabled" value="ON"> Включить IGMP Proxy</b></td>
- </tr>
- <tr style="display:none">
- <td width="100%" colspan="2"><font size=2>
- <b><input type="checkbox" name="pingWanAccess" value="ON"> Разрешить Ping-опрос интерфейса WAN</b></td>
- </tr>
- <tr style="display:none">
- <td width="100%" colspan="2"><font size=2>
- <b><input type="checkbox" name="webWanAccess" value="ON"> Разрешить доступ к Web-серверу через интерфейс WAN</b></td>
- </tr>
- <tr style="display:none">
- <td width="100%" colspan="2"><font size=2>
- <b><input type="checkbox" name="WANPassThru1" value="ON"> Разрешить IPsec через VPN</b></td>
- </tr>
- <tr style="display:none">
- <td width="100%" colspan="2"><font size=2>
- <b><input type="checkbox" name="WANPassThru2" value="ON"> Разрешить PPTP через VPN</b></td>
- </tr>
- <tr style="display:none">
- <td width="100%" colspan="2"><font size=2>
- <b><input type="checkbox" name="WANPassThru3" value="ON"> Разрешить L2TP через VPN</b></td>
- </tr>
- <!-- disable ipv6 pass throuth for release jungle sdk v2.2, add "<" before %if (getIndex... enable it-->
- <tr>
- <td width="100%" colspan="2"><font size=2>
- <b><input type="checkbox" name="ipv6_passthru_enabled" value="ON"> Разрешить IPv6 через VPN</b></td>
- </tr>
- </table>
- <SCRIPT>
- /*
- if(document.tcpip.wanType.selectedIndex != 0){ // static ip
- group = document.tcpip.dnsMode;
- for (var r = 0; r < group.length; r++)
- if (group[r].checked)
- break;
- initialDnsMode = r;
- if (initialDnsMode == 0)
- disableDNSinput();
- }
- */
- var wan_connection_type=document.tcpip.wanType.selectedIndex;
- wanTypeSelection(document.tcpip.wanType);
- if(wan_connection_type == 2)
- pppTypeSelection(0);
- else if(wan_connection_type == 3)
- pppTypeSelection(1);
- else if(wan_connection_type == 4)
- pppTypeSelection(2);
- else if(wan_connection_type == 5)
- pppTypeSelection(3);
- else
- pppConnection_Init();
- </SCRIPT>
- <BR>
- <input type="hidden" value="/tcpipwan.htm" name="submit-url">
- <p><input type="submit" value="Применить изменения" name="save" onClick="return saveChanges_wan(document.tcpip)">
- <input type="reset" value="Сброс" name="reset" onClick="resetClicked()">
- </p>
- </form>
- </blockquote>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement