WAN Mode Page to configure this page." end if (ButtonType and ButtonType == "config") then local inputTable = web.cgiToLuaTable(cgi) if(inputTable["ConfigPort.LogicalIfName"] == "LAN") then inputTable["dhcpv6s.isEnabled"] = "0" end local dmzConfig = db.getRowWhere ("ifStatic", "LogicalIfName = 'LAN' AND AddressFamily = 10") if (dmzConfig ~= nil and dmzConfig["ifStatic.StaticIp"] == inputTable["ifStatic.StaticIp"]) then errorFlag, statusCode = "ERROR", "IP_CONFLICTING_WITH_LAN_IPADDR" else local where = "LogicalIfName = 'DMZ' AND AddressFamily = 10" local rowid = db.existsRowWhere ("ifStatic", where) errorFlag, statusCode = lan.ipv6LanConfig(inputTable, rowid, "edit") if (errorFlag == "OK") then db.save() errorFlag, statusCode = dhcpv6.dhcpConfigWrap (inputTable, "DMZ") end end -- save db if no error if (errorFlag == "OK") then db.save() end statusMessage = db.getAttribute("stringsMap", "stringId", statusCode, LANGUAGE) or statusCode web.goToPage(NextPage, true, true) elseif (ButtonType and ButtonType == "add") then configRowId= "-1" web.goToPage(NextPage, true, true) elseif (ButtonType and ButtonType == "edit") then -- if not allowed to edit if (ACCESS_LEVEL ~= 0) then NextPage = "dmz_setup_ipv6" statusMessage = db.getAttribute("stringsMap", "stringId", "ADMIN_REQD", LANGUAGE) else configRowId = RowId end web.goToPage(NextPage, true, true) elseif (ButtonType and ButtonType == "delete") then local field, splitted, rows = web.cgiSearch(cgi, "dhcpv6sDMZAddrPoolChk") -- if any rows to delete if (rows) then errorFlag, statusCode = lan.lanPoolsDelete(rows) end -- save db if no error if (errorFlag == "OK") then db.save() end statusMessage = db.getAttribute("stringsMap", "stringId", statusCode, LANGUAGE) web.goToPage(NextPage, true, true) else local where = "LogicalIfName = 'DMZ' AND AddressFamily = 10" local rowid = db.existsRowWhere ("ifStatic", where) local dmzPort = db.getAttribute("ConfigPort","_ROWID_","2","LogicalIfName") local configRow = {} configRow = db.getRow("ifStatic", "_ROWID_", rowid) local dhcpV6ConfigRow = db.getRow ("dhcpv6s", "LogicalIfName", "DMZ") local dhcpv6sDMZAddrPoolConfigRow = db.getRow("dhcpv6sDMZAddrPool", "_ROWID_", "1") if (dhcpV6ConfigRow ~= nil) then configRow ["dhcpv6s.isEnabled"] = dhcpV6ConfigRow["dhcpv6s.isEnabled"] configRow ["dhcpv6s.domainName"] = dhcpV6ConfigRow["dhcpv6s.domainName"] configRow ["dhcpv6s.leaseTime"] = dhcpV6ConfigRow["dhcpv6s.leaseTime"] configRow["dhcpv6s.primaryDNSServer"] = dhcpV6ConfigRow["dhcpv6s.primaryDNSServer"] configRow["dhcpv6s.secondaryDNSServer"] = dhcpV6ConfigRow["dhcpv6s.secondaryDNSServer"] configRow["dhcpv6s.statelessMode"] = dhcpV6ConfigRow["dhcpv6s.statelessMode"] configRow ["dhcpv6s.serverPreference"] = dhcpV6ConfigRow ["dhcpv6s.serverPreference"] configRow ["dhcpv6s.useDNSServersFrom"] = dhcpV6ConfigRow ["dhcpv6s.useDNSServersFrom"] end if(dhcpv6sDMZAddrPoolConfigRow ~= nil) then configRow["dhcpv6sDMZAddrPool.startAddress"] = dhcpv6sDMZAddrPoolConfigRow["dhcpv6sDMZAddrPool.startAddress"] configRow["dhcpv6sDMZAddrPool.endAddress"] = dhcpv6sDMZAddrPoolConfigRow["dhcpv6sDMZAddrPool.endAddress"] configRow["dhcpv6sDMZAddrPool.prefixLength"] = dhcpv6sDMZAddrPoolConfigRow["dhcpv6sDMZAddrPool.prefixLength"] end ?> $|COMPANY_NAME|$ $|PRODUCT_FAMILY|$ - DMZ Setup (IPv6)
 
DMZ Setup
 
IPv6
IPv4
 
 
$| statusMessage |$
DMZ Port Setup
Do you want to enable DMZ Port?
Yes
No
 
 
 
 
 
 
IPv6 Address:
Prefix Length:
 
 
DHCPv6 for DMZ Connected Computers
DHCP Status:
DHCP Mode:
Domain Name:
Server Preference:
DNS Servers:
Primary DNS Server:
Secondary DNS Server:
Lease/Rebind Time: Seconds
 
 
 
List of IPv6 Address Pools
  Start Address End Address Prefix Action
$|row["dhcpv6sDMZAddrPool.startAddress"]|$ $|row["dhcpv6sDMZAddrPool.endAddress"]|$ $|row["dhcpv6sDMZAddrPool.prefixLength"]|$