= tonumber (maxLimitOutVal)) then statusMessage = "Can't add configuration to this table. Maximum limit reached." NextPage = "dmz_wan_rules" end end web.goToPage(NextPage, true, true) elseif (ButtonType and ButtonType == "addin") then configRowId = "-1" if(cgi["hdInCount"] ~= nil) then local hdCount = cgi["hdInCount"] if(tonumber(hdCount) >= tonumber (maxLimitInVal)) then statusMessage = "Can't add configuration to this table. Maximum limit reached." NextPage = "dmz_wan_rules" end end web.goToPage(NextPage, true, true) elseif (ButtonType and ButtonType == "edit") then configRowId = RowId web.goToPage(NextPage, true, true) elseif (ButtonType and ButtonType == "editin") then configRowId = RowId web.goToPage(NextPage, true, true) elseif (ButtonType and ButtonType == "delete") then local inputTable = web.cgiToLuaTable(cgi) local field, splitted, rows = web.cgiSearch(cgi, "FirewallOBServices") -- if any rows to delete if (rows) then errorFlag, statusCode = fwView.modifyRules (rows, "delete") 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) elseif (ButtonType and ButtonType == "deletein") then local inputTable = web.cgiToLuaTable(cgi) local field, splitted, rows = web.cgiSearch(cgi, "FirewallIBServices") -- if any rows to delete if (rows) then errorFlag, statusCode = fwView.modifyRules (rows, "delete") 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) elseif (ButtonType and ButtonType == "enable") then local inputTable = web.cgiToLuaTable(cgi) local field, splitted, rows = web.cgiSearch(cgi, "FirewallOBServices") -- if any rows to delete if (rows) then errorFlag, statusCode = fwView.modifyRules (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) web.goToPage(NextPage, true, true) elseif (ButtonType and ButtonType == "enablein") then local inputTable = web.cgiToLuaTable(cgi) local field, splitted, rows = web.cgiSearch(cgi, "FirewallIBServices") -- if any rows to delete if (rows) then errorFlag, statusCode = fwView.modifyRules (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) web.goToPage(NextPage, true, true) elseif (ButtonType and ButtonType == "disable") then local inputTable = web.cgiToLuaTable(cgi) local field, splitted, rows = web.cgiSearch(cgi, "FirewallOBServices") -- if any rows to delete if (rows) then errorFlag, statusCode = fwView.modifyRules (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) web.goToPage(NextPage, true, true) elseif (ButtonType and ButtonType == "disablein") then local inputTable = web.cgiToLuaTable(cgi) local field, splitted, rows = web.cgiSearch(cgi, "FirewallIBServices") -- if any rows to delete if (rows) then errorFlag, statusCode = fwView.modifyRules (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) web.goToPage(NextPage, true, true) elseif (ButtonType and (ButtonType == "moveRule" or ButtonType == "moveRuleIn")) then local inputTable = web.cgiToLuaTable (cgi) ruleType = 'PUBLIC_INSECURE' tableName = 'FirewallOBServices' position = inputTable["FirewallRules.position"] or '1' if (ButtonType == "moveRuleIn") then ruleType = 'INSECURE_PUBLIC' tableName = 'FirewallIBServices' position = inputTable["FirewallRules.positionIn"] or '1' end local field, splitted, rows = web.cgiSearch (cgi, tableName) if (rows and rows["1"]) then rowId = rows["1"] -- if any rows to move errorFlag, statusCode = fwView.moveRules_NG (rowId, "move", ruleType, position) 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 ?> $|COMPANY_NAME|$ $|PRODUCT_FAMILY|$ - DMZ WAN Rules
 
DMZ WAN Rules
 
IPv6
IPv4
 
 
$| statusMessage|$
Outbound Services
32) then fwServiceName = row["FirewallRules.ServiceName"] row["FirewallRules.ServiceName"] = string.sub(row["FirewallRules.ServiceName"],1,32) .. "..." end ?>
  ! Index Service Name Filter DMZ Users WAN Users QOS Profile Log Action
$| i or '0' |$ $| row["FirewallRules.ServiceName"] |$ $| action |$ $| dmzuser |$ $| wanuser |$ $| servicetype or ''|$ $| log or ''|$
Inbound Services
32) then fwServiceName = row["FirewallRules.ServiceName"] row["FirewallRules.ServiceName"] = string.sub(row["FirewallRules.ServiceName"],1,32) .. "..." end ?>
  ! Index Service Name Filter DMZ Server IP Address DMZ Users WAN Users Destination QOS Profile Log Action
$| i or '0' |$ $| row["FirewallRules.ServiceName"] |$ $| action |$ $| row["FirewallRules.DNATAddress"] or '' |$ $| dmzuser |$ $| wanuser |$ $| destination or '' |$ $| qosProfile|$ $| log |$
Note: Inbound rules configured in the LAN WAN Rules page will take precedence over the Inbound rules configured in the DMZ WAN Rules page. As a result if an inbound packet matches an Inbound rule in the LAN WAN Rules page, then it will not be matched against the Inbound rules in the DMZ WAN Rules page.