= 125) then statusMessage = "Can't add configuration to this table. Maximum limit reached." NextPage = "vpn_policies" end end web.goToPage(NextPage, true, true) elseif (ButtonType and ButtonType == "edit") then configRowId = RowId web.goToPage(NextPage, true, true) elseif (ButtonType and ButtonType == "enable") then local field, splitted, rows = web.cgiSearch(cgi, "IpsecVPNPolicy") -- if any rows to enable if (rows) then for k,v in pairs (rows) do errorFlag, statusCode = vipSecure.ipsecVPNPolicyEnable({v}, true) 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 == "disable") then local field, splitted, rows = web.cgiSearch(cgi, "IpsecVPNPolicy") -- if any rows to disable if (rows) then errorFlag, statusCode = vipSecure.ipsecVPNPolicyEnable(rows, false) 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 == "delete") then local field, splitted, rows = web.cgiSearch(cgi, "IpsecVPNPolicy") -- if any rows to delete if (rows) then errorFlag, statusCode = vipSecure.ipsecVPNPolicyDelete(rows) 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|$ - VPN Policies
 
VPN Policies
 
IPv6
IPv4
 
 
$| statusMessage |$
List of VPN Policies
  ! Name Type Local Remote Auth Encr Action
' else status = '' end ?> $| status |$ $| row["IpsecVPNPolicy.VPNPolicyName"] .. web.getArgsFromIndex(row["IpsecVPNPolicy.AutoPolicyType"], "", "*") |$ $|PolicyType|$ $|Localtype|$ $|Remotetype|$ $|AuthType|$ $|EncrType or ''|$
* Client Policy