= tonumber (maxLimitVal)) then statusCode = "Can't add configuration to this table. Maximum limit reached." errorFlag = "ERROR" NextPage = "ip_mac_binding" else inputTable["IPMACBinding.ipVersion"] = "2" errorFlag, statusCode = fwView.ipMacConfig(inputTable, RowId, "add") end end end -- save db if no error if (errorFlag == "OK") then db.save() end statusMessage = db.getAttribute("stringsMap", "stringId", statusCode, LANGUAGE) or statusCode end web.goToPage(NextPage, true, true) elseif (ButtonType and ButtonType == "edit") then configRowId = RowId web.goToPage(NextPage, true, true) elseif (ButtonType and ButtonType == "delete") then local field, splitted, rows = web.cgiSearch(cgi, "IPMACBinding1") -- if any rows to delete if (rows) then errorFlag, statusCode = fwView.deleteIpMac(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) elseif (ButtonType and ButtonType == "config") then local inTable = web.cgiToLuaTable(cgi) local inputTable = {} inputTable["IPMACEmailLogsConfig.IPMACVoilationEmailLogsSet"] = inTable["IPMACEmailLogsConfig.IPMACVoilationEmailLogsSet"] configRow = db.getRow("MACFiltering","_ROWID_", "1") if(configRow== nil) then errorFlag, statusCode = fwView.ipMacConfig(inputTable, "-1", "add") else errorFlag, statusCode = fwView.ipMacConfig(inputTable, "1", "edit") 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 -- for error if (errorFlag ~= "OK") then configRow = web.cgiToLuaTable(cgi) configRow = db.getRow("IPMACEmailLogsConfig","_ROWID_", "1") if(configRow == nil) then local outTable = {} outTable["IPMACEmailLogsConfig.IPMACVoilationEmailLogsSet"] = "0" configRow = outTable end -- for edit else configRow = db.getRow("IPMACEmailLogsConfig","_ROWID_", "1") if(configRow == nil) then local outTable = {} outTable["IPMACEmailLogsConfig.IPMACVoilationEmailLogsSet"] = "0" configRow = outTable end end ?> $|COMPANY_NAME|$ $|PRODUCT_FAMILY|$ - IP/MAC Binding
 
IP/MAC Binding
 
IPv6
IPv4
 
 
$| statusMessage|$
Email IP/MAC Violations
Do you want to enable E-mail Logs for IP/MAC Binding Violation?
Yes
No
* For this option e-mailing of logs must be enabled in Firewall Logs & E-mail page
 
 
IP/MAC Bindings
  Name MAC Address IP Address Log Dropped Packets Action
$| row["IPMACBinding.Name"] |$ $| row["IPMACBinding.SourceMACAddress"] |$ $| row["IPMACBinding.IPAddress"] |$ $| str |$
Add IP/MAC Binding Rule:
Name MAC Address IP Address Log Dropped Packets Add
.
.
.