WAN Mode Page to configure this page." end if(ButtonType and ButtonType == "configIPv6") then local inputTable = web.cgiToLuaTable(cgi) local rowid = '' DBTable = "FirewallRules6" rowid = db.getAttribute(DBTable, "RuleType", "DEFAULT_POLICY", "_ROWID_") errorMsg = "Default IPv6 outbound rule not found for Firewall Rules." if (rowid ~= nil) then errorFlag, statusCode = fwView.defaultPolicyConfig(inputTable, rowid, "edit") statusMessage = db.getAttribute("stringsMap", "stringId", statusCode, LANGUAGE) else errorFlag = "ERROR" statusMessage = errorMsg end -- save db if no error if (errorFlag == "OK") then db.save() end web.goToPage(NextPage, true, true) elseif (ButtonType and ButtonType == "addIPv6") then configRowId = "-1" if(cgi["hdCount"] ~= nil) then local hdCount = cgi["hdCount"] if(tonumber(hdCount) >= 300) then statusMessage = "Can't add configuration to this table. Maximum limit reached." NextPage = "lan_wan_rules_v6" end end web.goToPage(NextPage, true, true) elseif (ButtonType and ButtonType == "addinIPv6") then configRowId = "-1" if(cgi["hdInCount"] ~= nil) then local hdCount = cgi["hdInCount"] if(tonumber(hdCount) >= 300) then statusMessage = "Can't add configuration to this table. Maximum limit reached." NextPage = "lan_wan_rules_v6" end end web.goToPage(NextPage, true, true) elseif (ButtonType and ButtonType == "editIPv6") then configRowId = RowId web.goToPage(NextPage, true, true) elseif (ButtonType and ButtonType == "editinIPv6") then configRowId = RowId web.goToPage(NextPage, true, true) elseif (ButtonType and (ButtonType == "deleteIPv6" or ButtonType == "deleteinIPv6")) then local field, splitted, rows = web.cgiSearch(cgi, "FirewallOBServices_IPv6") if(ButtonType == "deleteIPv6") then field, splitted, rows = web.cgiSearch(cgi, "FirewallOBServices_IPv6") elseif(ButtonType == "deleteinIPv6") then field, splitted, rows = web.cgiSearch(cgi, "FirewallIBServices_IPv6") end -- if any rows to delete if (rows) then errorFlag, statusCode = fwView.modifyRules6 (rows, "delete") 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 == "enableIPv6" or ButtonType == "enableinIPv6")) then local field, splitted, rows = web.cgiSearch(cgi, "FirewallOBServices_IPv6") if(ButtonType == "enableIPv6") then field, splitted, rows = web.cgiSearch(cgi, "FirewallOBServices_IPv6") elseif(ButtonType == "enableinIPv6") then field, splitted, rows = web.cgiSearch(cgi, "FirewallIBServices_IPv6") end -- if any rows to delete if (rows) then errorFlag, statusCode = fwView.modifyRules6 (rows, "enable") end -- save db if no error if (errorFlag == "OK") then db.save() local cacheResetProgram = db.getAttribute("environment", "name", "HW_CACHE_RESET", "value") end statusMessage = db.getAttribute("stringsMap", "stringId", statusCode, LANGUAGE) or statusCode web.goToPage(NextPage, true, true) elseif (ButtonType and (ButtonType == "disableIPv6" or ButtonType == "disableinIPv6")) then local field, splitted, rows = web.cgiSearch(cgi, "FirewallOBServices_IPv6") if(ButtonType == "disableIPv6") then field, splitted, rows = web.cgiSearch(cgi, "FirewallOBServices_IPv6") elseif(ButtonType == "disableinIPv6") then field, splitted, rows = web.cgiSearch(cgi, "FirewallIBServices_IPv6") end -- if any rows to delete if (rows) then errorFlag, statusCode = fwView.modifyRules6 (rows, "disable") end -- save db if no error if (errorFlag == "OK") then db.save() local cacheResetProgram = db.getAttribute("environment", "name", "HW_CACHE_RESET", "value") end statusMessage = db.getAttribute("stringsMap", "stringId", statusCode, LANGUAGE) or statusCode web.goToPage(NextPage, true, true) elseif (ButtonType and (ButtonType == "moveUpIPv6" or ButtonType == "moveUpinIPv6")) then --local inputTable = web.cgiToLuaTable(cgi) local rowId = RowId -- if any rows to delete if (ButtonType == "moveUpIPv6") then errorFlag, statusCode = fwView.moveRules6_NG (rowId, "moveUp", "SECURE_INSECURE") else errorFlag, statusCode = fwView.moveRules6_NG (rowId, "moveUp", "INSECURE_SECURE") 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 == "moveDownIPv6" or ButtonType == "moveDowninIPv6")) then --local inputTable = web.cgiToLuaTable(cgi) local rowId = RowId -- if any rows to delete if (ButtonType == "moveDownIPv6") then errorFlag, statusCode = fwView.moveRules6_NG (rowId, "moveDown", "SECURE_INSECURE") else errorFlag, statusCode = fwView.moveRules6_NG (rowId, "moveDown", "INSECURE_SECURE") 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) else local firewallRules6_Action = db.getAttribute("FirewallRules6", "RuleType", "DEFAULT_POLICY", "Action") or '' ?> $|COMPANY_NAME|$ $|PRODUCT_FAMILY|$ - LAN WAN Rules
 
LAN WAN Rules
 
IPv6
IPv4
 
 
$| statusMessage or ''|$
Default Outbound Policy:
Outbound Services
32) then fwServiceName = row["FirewallRules6.ServiceName"] row["FirewallRules6.ServiceName"] = string.sub(row["FirewallRules6.ServiceName"],1,32) .. "..." end ?>
  ! Service Name Filter LAN Users WAN Users Priority Log Action
$| row["FirewallRules6.ServiceName"] |$ $| action |$ $| lanuser |$ $| wanuser |$ $| servicetype |$ $| log |$
Inbound Services
32) then fwServiceName = row["FirewallRules6.ServiceName"] row["FirewallRules6.ServiceName"] = string.sub(row["FirewallRules6.ServiceName"],1,32) .. "..." end ?>
  ! Service Name Filter LAN Users WAN Users Log Action
$| row["FirewallRules6.ServiceName"] |$ $| action |$ $| lanuser |$ $| wanuser |$ $| log |$