= tonumber (maxLimitOutVal)) then statusMessage = "Can't add configuration to this table. Maximum limit reached." NextPage = "lan_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 = "lan_wan_rules" end end web.goToPage(NextPage, true, true) elseif (ButtonType and ButtonType == "edit") then util.appendDebugOut("

VALUE OF ACTION IS="..RowId) configRowId = RowId web.goToPage(NextPage, true, true) elseif (ButtonType and ButtonType == "editin") then util.appendDebugOut("

VALUE OF ACTION IS="..RowId) 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 = 'SECURE_INSECURE' tableName = 'FirewallOBServices' position = inputTable["FirewallRules.position"] or '1' if (ButtonType == "moveRuleIn") then ruleType = 'INSECURE_SECURE' 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 configRow["FirewallRules.Action"] = db.getAttribute("FirewallRules", "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["FirewallRules.ServiceName"] row["FirewallRules.ServiceName"] = string.sub(row["FirewallRules.ServiceName"],1,32) .. "..." end ?>
  ! Index Service Name Filter LAN Users WAN Users QoS Profile Bandwidth Profile Log Action
$| i or '0' |$ $| row["FirewallRules.ServiceName"] |$ $| action |$ $| lanuser |$ $| wanuser |$ $| servicetype or '' |$ $| row["FirewallRules.BandwidthProfileName"] or 'NONE' |$ $| log |$
Inbound Services
32) then fwServiceName = row["FirewallRules.ServiceName"] row["FirewallRules.ServiceName"] = string.sub(row["FirewallRules.ServiceName"],1,32) .. "..." end ?>
  ! Index Service Name Filter LAN Server IP Address LAN Users WAN Users QOS Profile Destination Bandwidth Profile Log Action
$| i or '0' |$ $| row["FirewallRules.ServiceName"] |$ $| action |$ $| dnatAddress or '' |$ $| lanuser |$ $| wanuser |$ $| qosProfile or ''|$ $|destination|$ $| row["FirewallRules.BandwidthProfileName"] or 'NONE' |$ $| log |$