Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- elif items.find('RESTRICT_SYSLOG') > -1 and items.find('=') > -1 and (items[0] != '#'):
- restrictSYSLOG = items[items.find('"'):]
- currentSettings['restrictSYSLOG'] = restrictSYSLOG.strip('"')
- elif items.find('RESTRICT_SYSLOG_GROUP') > -1 and items.find('=') > -1 and (items[0] != '#'):
- restrictGROUP = items[items.find('"'):]
- currentSettings['restrictGROUP'] = restrictGROUP.strip('"')
- elif items.find('RESTRICT_UI') > -1 and items.find('=') > -1 and (items[0] != '#'):
- restrictUI = items[items.find('"'):]
- currentSettings['restrictUI'] = restrictUI.strip('"')
- elif items.find('AUTO_UPDATES') > -1 and items.find('=') > -1 and (items[0] != '#'):
- autoUPDATES = items[items.find('"'):]
- currentSettings['autoUPDATES'] = autoUPDATES.strip('"')
- elif items.find('LF_SPI') > -1 and items.find('=') > -1 and (items[0] != '#'):
- lfSPI = items[items.find('"'):]
- currentSettings['lfSPI'] = lfSPI.strip('"')
- elif items.find('ICMP_IN') > -1 and items.find('=') > -1 and (items[0] != '#'):
- icmpIN = items[items.find('"'):]
- currentSettings['icmpIN'] = icmpIN.strip('"')
- elif items.find('ICMP_IN_RATE') > -1 and items.find('=') > -1 and (items[0] != '#'):
- icmpRATE = items[items.find('"'):]
- currentSettings['icmpRATE'] = icmpRATE.strip('"')
- elif items.find('ICMP_OUT') > -1 and items.find('=') > -1 and (items[0] != '#'):
- icmpOUT = items[items.find('"'):]
- currentSettings['icmpOUT'] = icmpOUT.strip('"')
- elif items.find('ICMP_OUT_RATE') > -1 and items.find('=') > -1 and (items[0] != '#'):
- icmpRATE = items[items.find('"'):]
- currentSettings['icmpRATE'] = icmpRATE.strip('"')
- elif items.find('ICMP_TIMESTAMPDROP') > -1 and items.find('=') > -1 and (items[0] != '#'):
- icmpTIMESTAMPDROP = items[items.find('"'):]
- currentSettings['icmpTIMESTAMPDROP'] = icmpTIMESTAMPDROP.strip('"')
- elif items.find('IPV6') > -1 and items.find('=') > -1 and (items[0] != '#'):
- ipv6IPV6 = items[items.find('"'):]
- currentSettings['ipv6IPV6'] = ipv6IPV6.strip('"')
- elif items.find('IPV6_ICMP_STRICT') > -1 and items.find('=') > -1 and (items[0] != '#'):
- ipv6STRICT = items[items.find('"'):]
- currentSettings['ipv6STRICT'] = ipv6STRICT.strip('"')
- elif items.find('IPV6_SPI') > -1 and items.find('=') > -1 and (items[0] != '#'):
- ipv6SPI = items[items.find('"'):]
- currentSettings['ipv6SPI'] = ipv6SPI.strip('"')
- elif items.find('TCP6_IN') > -1 and items.find('=') > -1 and (items[0] != '#'):
- tcp6IN = items[items.find('"'):]
- currentSettings['tcp6IN'] = tcp6IN.strip('"')
- elif items.find('TCP6_OUT') > -1 and items.find('=') > -1 and (items[0] != '#'):
- tcp6OUT = items[items.find('"'):]
- currentSettings['tcp6OUT'] = tcp6OUT.strip('"')
- elif items.find('UDP6_IN') > -1 and items.find('=') > -1 and (items[0] != '#'):
- udp6IN = items[items.find('"'):]
- currentSettings['udp6IN'] = udp6IN.strip('"')
- elif items.find('UDP6_OUT') > -1 and items.find('=') > -1 and (items[0] != '#'):
- udp6OUT = items[items.find('"'):]
- currentSettings['udp6OUT'] = udp6OUT.strip('"')
- elif items.find('ETH_DEVICE') > -1 and items.find('=') > -1 and (items[0] != '#'):
- ethDEVICE = items[items.find('"'):]
- currentSettings['ethDEVICE'] = ethDEVICE.strip('"')
- elif items.find('ETH6_DEVICE') > -1 and items.find('=') > -1 and (items[0] != '#'):
- eth6DEVICE = items[items.find('"'):]
- currentSettings['eth6DEVICE'] = eth6DEVICE.strip('"')
- elif items.find('ETH_DEVICE_SKIP') > -1 and items.find('=') > -1 and (items[0] != '#'):
- ethSKIP = items[items.find('"'):]
- currentSettings['ethSKIP'] = ethSKIP.strip('"')
- elif items.find('USE_CONNTRACK') > -1 and items.find('=') > -1 and (items[0] != '#'):
- useCONNTRACK = items[items.find('"'):]
- currentSettings['useCONNTRACK'] = useCONNTRACK.strip('"')
- elif items.find('USE_FTPHELPER') > -1 and items.find('=') > -1 and (items[0] != '#'):
- useFTPHELPER = items[items.find('"'):]
- currentSettings['useFTPHELPER'] = useFTPHELPER.strip('"')
- elif items.find('SYSLOG_CHECK') > -1 and items.find('=') > -1 and (items[0] != '#'):
- syslogCHECK = items[items.find('"'):]
- currentSettings['syslogCHECK'] = syslogCHECK.strip('"')
- elif items.find('IGNORE_ALLOW') > -1 and items.find('=') > -1 and (items[0] != '#'):
- ignoreALLOW = items[items.find('"'):]
- currentSettings['ignoreALLOW'] = ignoreALLOW.strip('"')
- elif items.find('DNS_STRICT') > -1 and items.find('=') > -1 and (items[0] != '#'):
- dnsSTRICT = items[items.find('"'):]
- currentSettings['dnsSTRICT'] = dnsSTRICT.strip('"')
- elif items.find('DNS_STRICT_NS') > -1 and items.find('=') > -1 and (items[0] != '#'):
- dnsNS = items[items.find('"'):]
- currentSettings['dnsNS'] = dnsNS.strip('"')
- elif items.find('DENY_IP_LIMIT') > -1 and items.find('=') > -1 and (items[0] != '#'):
- denyLIMIT = items[items.find('"'):]
- currentSettings['denyLIMIT'] = denyLIMIT.strip('"')
- elif items.find('DENY_TEMP_IP_LIMIT') > -1 and items.find('=') > -1 and (items[0] != '#'):
- denyIP_LIMIT = items[items.find('"'):]
- currentSettings['denyIP_LIMIT'] = denyIP_LIMIT.strip('"')
- elif items.find('LF_DAEMON') > -1 and items.find('=') > -1 and (items[0] != '#'):
- lfDAEMON = items[items.find('"'):]
- currentSettings['lfDAEMON'] = lfDAEMON.strip('"')
- elif items.find('LF_CSF') > -1 and items.find('=') > -1 and (items[0] != '#'):
- lfCSF = items[items.find('"'):]
- currentSettings['lfCSF'] = lfCSF.strip('"')
- elif items.find('FASTSTART') > -1 and items.find('=') > -1 and (items[0] != '#'):
- faststartFASTSTART = items[items.find('"'):]
- currentSettings['faststartFASTSTART'] = faststartFASTSTART.strip('"')
- elif items.find('LF_IPSET') > -1 and items.find('=') > -1 and (items[0] != '#'):
- lfIPSET = items[items.find('"'):]
- currentSettings['lfIPSET'] = lfIPSET.strip('"')
- elif items.find('WAITLOCK') > -1 and items.find('=') > -1 and (items[0] != '#'):
- waitlockWAITLOCK = items[items.find('"'):]
- currentSettings['waitlockWAITLOCK'] = waitlockWAITLOCK.strip('"')
- elif items.find('WAITLOCK_TIMEOUT') > -1 and items.find('=') > -1 and (items[0] != '#'):
- waitlockTIMEOUT = items[items.find('"'):]
- currentSettings['waitlockTIMEOUT'] = waitlockTIMEOUT.strip('"')
- elif items.find('LF_IPSET_HASHSIZE') > -1 and items.find('=') > -1 and (items[0] != '#'):
- lfHASHSIZE = items[items.find('"'):]
- currentSettings['lfHASHSIZE'] = lfHASHSIZE.strip('"')
- elif items.find('LF_IPSET_MAXELEM') > -1 and items.find('=') > -1 and (items[0] != '#'):
- lfMAXELEM = items[items.find('"'):]
- currentSettings['lfMAXELEM'] = lfMAXELEM.strip('"')
- elif items.find('LFDSTART') > -1 and items.find('=') > -1 and (items[0] != '#'):
- lfdstartLFDSTART = items[items.find('"'):]
- currentSettings['lfdstartLFDSTART'] = lfdstartLFDSTART.strip('"')
- elif items.find('VERBOSE') > -1 and items.find('=') > -1 and (items[0] != '#'):
- verboseVERBOSE = items[items.find('"'):]
- currentSettings['verboseVERBOSE'] = verboseVERBOSE.strip('"')
- elif items.find('PACKET_FILTER') > -1 and items.find('=') > -1 and (items[0] != '#'):
- packetFILTER = items[items.find('"'):]
- currentSettings['packetFILTER'] = packetFILTER.strip('"')
- elif items.find('LF_LOOKUPS') > -1 and items.find('=') > -1 and (items[0] != '#'):
- lfLOOKUPS = items[items.find('"'):]
- currentSettings['lfLOOKUPS'] = lfLOOKUPS.strip('"')
- elif items.find('STYLE_CUSTOM') > -1 and items.find('=') > -1 and (items[0] != '#'):
- styleCUSTOM = items[items.find('"'):]
- currentSettings['styleCUSTOM'] = styleCUSTOM.strip('"')
- elif items.find('STYLE_MOBILE') > -1 and items.find('=') > -1 and (items[0] != '#'):
- styleMOBILE = items[items.find('"'):]
- currentSettings['styleMOBILE'] = styleMOBILE.strip('"')
- elif items.find('SMTP_BLOCK') > -1 and items.find('=') > -1 and (items[0] != '#'):
- smtpBLOCK = items[items.find('"'):]
- currentSettings['smtpBLOCK'] = smtpBLOCK.strip('"')
- elif items.find('SMTP_ALLOWLOCAL') > -1 and items.find('=') > -1 and (items[0] != '#'):
- smtpALLOWLOCAL = items[items.find('"'):]
- currentSettings['smtpALLOWLOCAL'] = smtpALLOWLOCAL.strip('"')
- elif items.find('SMTP_REDIRECT') > -1 and items.find('=') > -1 and (items[0] != '#'):
- smtpREDIRECT = items[items.find('"'):]
- currentSettings['smtpREDIRECT'] = smtpREDIRECT.strip('"')
- elif items.find('SMTP_PORTS') > -1 and items.find('=') > -1 and (items[0] != '#'):
- smtpPORTS = items[items.find('"'):]
- currentSettings['smtpPORTS'] = smtpPORTS.strip('"')
- elif items.find('SMTP_ALLOWUSER') > -1 and items.find('=') > -1 and (items[0] != '#'):
- smtpALLOWUSER = items[items.find('"'):]
- currentSettings['smtpALLOWUSER'] = smtpALLOWUSER.strip('"')
- elif items.find('SMTP_ALLOWGROUP') > -1 and items.find('=') > -1 and (items[0] != '#'):
- smtpALLOWGROUP = items[items.find('"'):]
- currentSettings['smtpALLOWGROUP'] = smtpALLOWGROUP.strip('"')
- elif items.find('SMTPAUTH_RESTRICT') > -1 and items.find('=') > -1 and (items[0] != '#'):
- smtpauthRESTRICT = items[items.find('"'):]
- currentSettings['smtpauthRESTRICT'] = smtpauthRESTRICT.strip('"')
- elif items.find('SYNFLOOD') > -1 and items.find('=') > -1 and (items[0] != '#'):
- synfloodSYNFLOOD = items[items.find('"'):]
- currentSettings['synfloodSYNFLOOD'] = synfloodSYNFLOOD.strip('"')
- elif items.find('SYNFLOOD_RATE') > -1 and items.find('=') > -1 and (items[0] != '#'):
- synfloodRATE = items[items.find('"'):]
- currentSettings['synfloodRATE'] = synfloodRATE.strip('"')
- elif items.find('SYNFLOOD_BURST') > -1 and items.find('=') > -1 and (items[0] != '#'):
- synfloodBURST = items[items.find('"'):]
- currentSettings['synfloodBURST'] = synfloodBURST.strip('"')
- elif items.find('CONNLIMIT') > -1 and items.find('=') > -1 and (items[0] != '#'):
- connlimitCONNLIMIT = items[items.find('"'):]
- currentSettings['connlimitCONNLIMIT'] = connlimitCONNLIMIT.strip('"')
- elif items.find('PORTFLOOD') > -1 and items.find('=') > -1 and (items[0] != '#'):
- portfloodPORTFLOOD = items[items.find('"'):]
- currentSettings['portfloodPORTFLOOD'] = portfloodPORTFLOOD.strip('"')
- elif items.find('UDPFLOOD') > -1 and items.find('=') > -1 and (items[0] != '#'):
- udpfloodUDPFLOOD = items[items.find('"'):]
- currentSettings['udpfloodUDPFLOOD'] = udpfloodUDPFLOOD.strip('"')
- elif items.find('UDPFLOOD_LIMIT') > -1 and items.find('=') > -1 and (items[0] != '#'):
- udpfloodLIMIT = items[items.find('"'):]
- currentSettings['udpfloodLIMIT'] = udpfloodLIMIT.strip('"')
- elif items.find('UDPFLOOD_BURST') > -1 and items.find('=') > -1 and (items[0] != '#'):
- udpfloodBURST = items[items.find('"'):]
- currentSettings['udpfloodBURST'] = udpfloodBURST.strip('"')
- elif items.find('UDPFLOOD_ALLOWUSER') > -1 and items.find('=') > -1 and (items[0] != '#'):
- udpfloodALLOWUSER = items[items.find('"'):]
- currentSettings['udpfloodALLOWUSER'] = udpfloodALLOWUSER.strip('"')
- elif items.find('SYSLOG') > -1 and items.find('=') > -1 and (items[0] != '#'):
- syslogSYSLOG = items[items.find('"'):]
- currentSettings['syslogSYSLOG'] = syslogSYSLOG.strip('"')
- elif items.find('DROP') > -1 and items.find('=') > -1 and (items[0] != '#'):
- dropDROP = items[items.find('"'):]
- currentSettings['dropDROP'] = dropDROP.strip('"')
- elif items.find('DROP_OUT') > -1 and items.find('=') > -1 and (items[0] != '#'):
- dropOUT = items[items.find('"'):]
- currentSettings['dropOUT'] = dropOUT.strip('"')
- elif items.find('DROP_LOGGING') > -1 and items.find('=') > -1 and (items[0] != '#'):
- dropLOGGING = items[items.find('"'):]
- currentSettings['dropLOGGING'] = dropLOGGING.strip('"')
- elif items.find('DROP_IP_LOGGING') > -1 and items.find('=') > -1 and (items[0] != '#'):
- dropLOGGING = items[items.find('"'):]
- currentSettings['dropLOGGING'] = dropLOGGING.strip('"')
- elif items.find('DROP_OUT_LOGGING') > -1 and items.find('=') > -1 and (items[0] != '#'):
- dropLOGGING = items[items.find('"'):]
- currentSettings['dropLOGGING'] = dropLOGGING.strip('"')
- elif items.find('DROP_UID_LOGGING') > -1 and items.find('=') > -1 and (items[0] != '#'):
- dropLOGGING = items[items.find('"'):]
- currentSettings['dropLOGGING'] = dropLOGGING.strip('"')
- elif items.find('DROP_ONLYRES') > -1 and items.find('=') > -1 and (items[0] != '#'):
- dropONLYRES = items[items.find('"'):]
- currentSettings['dropONLYRES'] = dropONLYRES.strip('"')
- elif items.find('DROP_NOLOG') > -1 and items.find('=') > -1 and (items[0] != '#'):
- dropNOLOG = items[items.find('"'):]
- currentSettings['dropNOLOG'] = dropNOLOG.strip('"')
- elif items.find('DROP_PF_LOGGING') > -1 and items.find('=') > -1 and (items[0] != '#'):
- dropLOGGING = items[items.find('"'):]
- currentSettings['dropLOGGING'] = dropLOGGING.strip('"')
- elif items.find('CONNLIMIT_LOGGING') > -1 and items.find('=') > -1 and (items[0] != '#'):
- connlimitLOGGING = items[items.find('"'):]
- currentSettings['connlimitLOGGING'] = connlimitLOGGING.strip('"')
- elif items.find('UDPFLOOD_LOGGING') > -1 and items.find('=') > -1 and (items[0] != '#'):
- udpfloodLOGGING = items[items.find('"'):]
- currentSettings['udpfloodLOGGING'] = udpfloodLOGGING.strip('"')
- elif items.find('LOGFLOOD_ALERT') > -1 and items.find('=') > -1 and (items[0] != '#'):
- logfloodALERT = items[items.find('"'):]
- currentSettings['logfloodALERT'] = logfloodALERT.strip('"')
- elif items.find('LF_ALERT_TO') > -1 and items.find('=') > -1 and (items[0] != '#'):
- lfTO = items[items.find('"'):]
- currentSettings['lfTO'] = lfTO.strip('"')
- elif items.find('LF_ALERT_FROM') > -1 and items.find('=') > -1 and (items[0] != '#'):
- lfFROM = items[items.find('"'):]
- currentSettings['lfFROM'] = lfFROM.strip('"')
- elif items.find('LF_ALERT_SMTP') > -1 and items.find('=') > -1 and (items[0] != '#'):
- lfSMTP = items[items.find('"'):]
- currentSettings['lfSMTP'] = lfSMTP.strip('"')
- elif items.find('BLOCK_REPORT') > -1 and items.find('=') > -1 and (items[0] != '#'):
- blockREPORT = items[items.find('"'):]
- currentSettings['blockREPORT'] = blockREPORT.strip('"')
- elif items.find('UNBLOCK_REPORT') > -1 and items.find('=') > -1 and (items[0] != '#'):
- unblockREPORT = items[items.find('"'):]
- currentSettings['unblockREPORT'] = unblockREPORT.strip('"')
- elif items.find('X_ARF') > -1 and items.find('=') > -1 and (items[0] != '#'):
- xARF = items[items.find('"'):]
- currentSettings['xARF'] = xARF.strip('"')
- elif items.find('X_ARF_FROM') > -1 and items.find('=') > -1 and (items[0] != '#'):
- xFROM = items[items.find('"'):]
- currentSettings['xFROM'] = xFROM.strip('"')
- elif items.find('X_ARF_TO') > -1 and items.find('=') > -1 and (items[0] != '#'):
- xTO = items[items.find('"'):]
- currentSettings['xTO'] = xTO.strip('"')
- elif items.find('X_ARF_ABUSE') > -1 and items.find('=') > -1 and (items[0] != '#'):
- xABUSE = items[items.find('"'):]
- currentSettings['xABUSE'] = xABUSE.strip('"')
- elif items.find('LF_PERMBLOCK') > -1 and items.find('=') > -1 and (items[0] != '#'):
- lfPERMBLOCK = items[items.find('"'):]
- currentSettings['lfPERMBLOCK'] = lfPERMBLOCK.strip('"')
- elif items.find('LF_PERMBLOCK_INTERVAL') > -1 and items.find('=') > -1 and (items[0] != '#'):
- lfINTERVAL = items[items.find('"'):]
- currentSettings['lfINTERVAL'] = lfINTERVAL.strip('"')
- elif items.find('LF_PERMBLOCK_COUNT') > -1 and items.find('=') > -1 and (items[0] != '#'):
- lfCOUNT = items[items.find('"'):]
- currentSettings['lfCOUNT'] = lfCOUNT.strip('"')
- elif items.find('LF_PERMBLOCK_ALERT') > -1 and items.find('=') > -1 and (items[0] != '#'):
- lfALERT = items[items.find('"'):]
- currentSettings['lfALERT'] = lfALERT.strip('"')
- elif items.find('LF_NETBLOCK') > -1 and items.find('=') > -1 and (items[0] != '#'):
- lfNETBLOCK = items[items.find('"'):]
- currentSettings['lfNETBLOCK'] = lfNETBLOCK.strip('"')
- elif items.find('LF_NETBLOCK_INTERVAL') > -1 and items.find('=') > -1 and (items[0] != '#'):
- lfINTERVAL = items[items.find('"'):]
- currentSettings['lfINTERVAL'] = lfINTERVAL.strip('"')
- elif items.find('LF_NETBLOCK_COUNT') > -1 and items.find('=') > -1 and (items[0] != '#'):
- lfCOUNT = items[items.find('"'):]
- currentSettings['lfCOUNT'] = lfCOUNT.strip('"')
- elif items.find('LF_NETBLOCK_CLASS') > -1 and items.find('=') > -1 and (items[0] != '#'):
- lfCLASS = items[items.find('"'):]
- currentSettings['lfCLASS'] = lfCLASS.strip('"')
- elif items.find('LF_NETBLOCK_ALERT') > -1 and items.find('=') > -1 and (items[0] != '#'):
- lfALERT = items[items.find('"'):]
- currentSettings['lfALERT'] = lfALERT.strip('"')
- elif items.find('LF_NETBLOCK_IPV6') > -1 and items.find('=') > -1 and (items[0] != '#'):
- lfIPV6 = items[items.find('"'):]
- currentSettings['lfIPV6'] = lfIPV6.strip('"')
- elif items.find('SAFECHAINUPDATE') > -1 and items.find('=') > -1 and (items[0] != '#'):
- safechainupdateSAFECHAINUPDATE = items[items.find('"'):]
- currentSettings['safechainupdateSAFECHAINUPDATE'] = safechainupdateSAFECHAINUPDATE.strip('"')
- elif items.find('DYNDNS') > -1 and items.find('=') > -1 and (items[0] != '#'):
- dyndnsDYNDNS = items[items.find('"'):]
- currentSettings['dyndnsDYNDNS'] = dyndnsDYNDNS.strip('"')
- elif items.find('DYNDNS_IGNORE') > -1 and items.find('=') > -1 and (items[0] != '#'):
- dyndnsIGNORE = items[items.find('"'):]
- currentSettings['dyndnsIGNORE'] = dyndnsIGNORE.strip('"')
- elif items.find('LF_GLOBAL') > -1 and items.find('=') > -1 and (items[0] != '#'):
- lfGLOBAL = items[items.find('"'):]
- currentSettings['lfGLOBAL'] = lfGLOBAL.strip('"')
- elif items.find('GLOBAL_ALLOW') > -1 and items.find('=') > -1 and (items[0] != '#'):
- globalALLOW = items[items.find('"'):]
- currentSettings['globalALLOW'] = globalALLOW.strip('"')
- elif items.find('GLOBAL_DENY') > -1 and items.find('=') > -1 and (items[0] != '#'):
- globalDENY = items[items.find('"'):]
- currentSettings['globalDENY'] = globalDENY.strip('"')
- elif items.find('GLOBAL_IGNORE') > -1 and items.find('=') > -1 and (items[0] != '#'):
- globalIGNORE = items[items.find('"'):]
- currentSettings['globalIGNORE'] = globalIGNORE.strip('"')
- elif items.find('GLOBAL_DYNDNS') > -1 and items.find('=') > -1 and (items[0] != '#'):
- globalDYNDNS = items[items.find('"'):]
- currentSettings['globalDYNDNS'] = globalDYNDNS.strip('"')
- elif items.find('GLOBAL_DYNDNS_INTERVAL') > -1 and items.find('=') > -1 and (items[0] != '#'):
- globalINTERVAL = items[items.find('"'):]
- currentSettings['globalINTERVAL'] = globalINTERVAL.strip('"')
- elif items.find('GLOBAL_DYNDNS_IGNORE') > -1 and items.find('=') > -1 and (items[0] != '#'):
- globalIGNORE = items[items.find('"'):]
- currentSettings['globalIGNORE'] = globalIGNORE.strip('"')
- elif items.find('LF_BOGON_SKIP') > -1 and items.find('=') > -1 and (items[0] != '#'):
- lfSKIP = items[items.find('"'):]
- currentSettings['lfSKIP'] = lfSKIP.strip('"')
- elif items.find('URLGET') > -1 and items.find('=') > -1 and (items[0] != '#'):
- urlgetURLGET = items[items.find('"'):]
- currentSettings['urlgetURLGET'] = urlgetURLGET.strip('"')
- elif items.find('URLPROXY') > -1 and items.find('=') > -1 and (items[0] != '#'):
- urlproxyURLPROXY = items[items.find('"'):]
- currentSettings['urlproxyURLPROXY'] = urlproxyURLPROXY.strip('"')
- elif items.find('CC_DENY') > -1 and items.find('=') > -1 and (items[0] != '#'):
- ccDENY = items[items.find('"'):]
- currentSettings['ccDENY'] = ccDENY.strip('"')
- elif items.find('CC_ALLOW') > -1 and items.find('=') > -1 and (items[0] != '#'):
- ccALLOW = items[items.find('"'):]
- currentSettings['ccALLOW'] = ccALLOW.strip('"')
- elif items.find('CC_ALLOW_FILTER') > -1 and items.find('=') > -1 and (items[0] != '#'):
- ccFILTER = items[items.find('"'):]
- currentSettings['ccFILTER'] = ccFILTER.strip('"')
- elif items.find('CC_ALLOW_PORTS') > -1 and items.find('=') > -1 and (items[0] != '#'):
- ccPORTS = items[items.find('"'):]
- currentSettings['ccPORTS'] = ccPORTS.strip('"')
- elif items.find('CC_ALLOW_PORTS_TCP') > -1 and items.find('=') > -1 and (items[0] != '#'):
- ccPORTS_TCP = items[items.find('"'):]
- currentSettings['ccPORTS_TCP'] = ccPORTS_TCP.strip('"')
- elif items.find('CC_ALLOW_PORTS_UDP') > -1 and items.find('=') > -1 and (items[0] != '#'):
- ccPORTS_UDP = items[items.find('"'):]
- currentSettings['ccPORTS_UDP'] = ccPORTS_UDP.strip('"')
- elif items.find('CC_DENY_PORTS') > -1 and items.find('=') > -1 and (items[0] != '#'):
- ccPORTS = items[items.find('"'):]
- currentSettings['ccPORTS'] = ccPORTS.strip('"')
- elif items.find('CC_DENY_PORTS_TCP') > -1 and items.find('=') > -1 and (items[0] != '#'):
- ccPORTS_TCP = items[items.find('"'):]
- currentSettings['ccPORTS_TCP'] = ccPORTS_TCP.strip('"')
- elif items.find('CC_DENY_PORTS_UDP') > -1 and items.find('=') > -1 and (items[0] != '#'):
- ccPORTS_UDP = items[items.find('"'):]
- currentSettings['ccPORTS_UDP'] = ccPORTS_UDP.strip('"')
- elif items.find('CC_IGNORE') > -1 and items.find('=') > -1 and (items[0] != '#'):
- ccIGNORE = items[items.find('"'):]
- currentSettings['ccIGNORE'] = ccIGNORE.strip('"')
- elif items.find('CC_ALLOW_SMTPAUTH') > -1 and items.find('=') > -1 and (items[0] != '#'):
- ccSMTPAUTH = items[items.find('"'):]
- currentSettings['ccSMTPAUTH'] = ccSMTPAUTH.strip('"')
- elif items.find('CC_DROP_CIDR') > -1 and items.find('=') > -1 and (items[0] != '#'):
- ccCIDR = items[items.find('"'):]
- currentSettings['ccCIDR'] = ccCIDR.strip('"')
- elif items.find('CC_LOOKUPS') > -1 and items.find('=') > -1 and (items[0] != '#'):
- ccLOOKUPS = items[items.find('"'):]
- currentSettings['ccLOOKUPS'] = ccLOOKUPS.strip('"')
- elif items.find('CC6_LOOKUPS') > -1 and items.find('=') > -1 and (items[0] != '#'):
- cc6LOOKUPS = items[items.find('"'):]
- currentSettings['cc6LOOKUPS'] = cc6LOOKUPS.strip('"')
- elif items.find('CC_INTERVAL') > -1 and items.find('=') > -1 and (items[0] != '#'):
- ccINTERVAL = items[items.find('"'):]
- currentSettings['ccINTERVAL'] = ccINTERVAL.strip('"')
- elif items.find('LF_TRIGGER') > -1 and items.find('=') > -1 and (items[0] != '#'):
- lfTRIGGER = items[items.find('"'):]
- currentSettings['lfTRIGGER'] = lfTRIGGER.strip('"')
- elif items.find('LF_TRIGGER_PERM') > -1 and items.find('=') > -1 and (items[0] != '#'):
- lfPERM = items[items.find('"'):]
- currentSettings['lfPERM'] = lfPERM.strip('"')
- elif items.find('LF_SELECT') > -1 and items.find('=') > -1 and (items[0] != '#'):
- lfSELECT = items[items.find('"'):]
- currentSettings['lfSELECT'] = lfSELECT.strip('"')
- elif items.find('LF_EMAIL_ALERT') > -1 and items.find('=') > -1 and (items[0] != '#'):
- lfALERT = items[items.find('"'):]
- currentSettings['lfALERT'] = lfALERT.strip('"')
- elif items.find('LF_SSHD') > -1 and items.find('=') > -1 and (items[0] != '#'):
- lfSSHD = items[items.find('"'):]
- currentSettings['lfSSHD'] = lfSSHD.strip('"')
- elif items.find('LF_SSHD_PERM') > -1 and items.find('=') > -1 and (items[0] != '#'):
- lfPERM = items[items.find('"'):]
- currentSettings['lfPERM'] = lfPERM.strip('"')
- elif items.find('LF_FTPD') > -1 and items.find('=') > -1 and (items[0] != '#'):
- lfFTPD = items[items.find('"'):]
- currentSettings['lfFTPD'] = lfFTPD.strip('"')
- elif items.find('LF_FTPD_PERM') > -1 and items.find('=') > -1 and (items[0] != '#'):
- lfPERM = items[items.find('"'):]
- currentSettings['lfPERM'] = lfPERM.strip('"')
- elif items.find('LF_SMTPAUTH') > -1 and items.find('=') > -1 and (items[0] != '#'):
- lfSMTPAUTH = items[items.find('"'):]
- currentSettings['lfSMTPAUTH'] = lfSMTPAUTH.strip('"')
- elif items.find('LF_SMTPAUTH_PERM') > -1 and items.find('=') > -1 and (items[0] != '#'):
- lfPERM = items[items.find('"'):]
- currentSettings['lfPERM'] = lfPERM.strip('"')
- elif items.find('LF_EXIMSYNTAX') > -1 and items.find('=') > -1 and (items[0] != '#'):
- lfEXIMSYNTAX = items[items.find('"'):]
- currentSettings['lfEXIMSYNTAX'] = lfEXIMSYNTAX.strip('"')
- elif items.find('LF_EXIMSYNTAX_PERM') > -1 and items.find('=') > -1 and (items[0] != '#'):
- lfPERM = items[items.find('"'):]
- currentSettings['lfPERM'] = lfPERM.strip('"')
- elif items.find('LF_POP3D') > -1 and items.find('=') > -1 and (items[0] != '#'):
- lfPOP3D = items[items.find('"'):]
- currentSettings['lfPOP3D'] = lfPOP3D.strip('"')
- elif items.find('LF_POP3D_PERM') > -1 and items.find('=') > -1 and (items[0] != '#'):
- lfPERM = items[items.find('"'):]
- currentSettings['lfPERM'] = lfPERM.strip('"')
- elif items.find('LF_IMAPD') > -1 and items.find('=') > -1 and (items[0] != '#'):
- lfIMAPD = items[items.find('"'):]
- currentSettings['lfIMAPD'] = lfIMAPD.strip('"')
- elif items.find('LF_IMAPD_PERM') > -1 and items.find('=') > -1 and (items[0] != '#'):
- lfPERM = items[items.find('"'):]
- currentSettings['lfPERM'] = lfPERM.strip('"')
- elif items.find('LF_HTACCESS') > -1 and items.find('=') > -1 and (items[0] != '#'):
- lfHTACCESS = items[items.find('"'):]
- currentSettings['lfHTACCESS'] = lfHTACCESS.strip('"')
- elif items.find('LF_HTACCESS_PERM') > -1 and items.find('=') > -1 and (items[0] != '#'):
- lfPERM = items[items.find('"'):]
- currentSettings['lfPERM'] = lfPERM.strip('"')
- elif items.find('LF_MODSEC') > -1 and items.find('=') > -1 and (items[0] != '#'):
- lfMODSEC = items[items.find('"'):]
- currentSettings['lfMODSEC'] = lfMODSEC.strip('"')
- elif items.find('LF_MODSEC_PERM') > -1 and items.find('=') > -1 and (items[0] != '#'):
- lfPERM = items[items.find('"'):]
- currentSettings['lfPERM'] = lfPERM.strip('"')
- elif items.find('LF_BIND') > -1 and items.find('=') > -1 and (items[0] != '#'):
- lfBIND = items[items.find('"'):]
- currentSettings['lfBIND'] = lfBIND.strip('"')
- elif items.find('LF_BIND_PERM') > -1 and items.find('=') > -1 and (items[0] != '#'):
- lfPERM = items[items.find('"'):]
- currentSettings['lfPERM'] = lfPERM.strip('"')
- elif items.find('LF_SUHOSIN') > -1 and items.find('=') > -1 and (items[0] != '#'):
- lfSUHOSIN = items[items.find('"'):]
- currentSettings['lfSUHOSIN'] = lfSUHOSIN.strip('"')
- elif items.find('LF_SUHOSIN_PERM') > -1 and items.find('=') > -1 and (items[0] != '#'):
- lfPERM = items[items.find('"'):]
- currentSettings['lfPERM'] = lfPERM.strip('"')
- elif items.find('LF_CXS') > -1 and items.find('=') > -1 and (items[0] != '#'):
- lfCXS = items[items.find('"'):]
- currentSettings['lfCXS'] = lfCXS.strip('"')
- elif items.find('LF_CXS_PERM') > -1 and items.find('=') > -1 and (items[0] != '#'):
- lfPERM = items[items.find('"'):]
- currentSettings['lfPERM'] = lfPERM.strip('"')
- elif items.find('LF_QOS') > -1 and items.find('=') > -1 and (items[0] != '#'):
- lfQOS = items[items.find('"'):]
- currentSettings['lfQOS'] = lfQOS.strip('"')
- elif items.find('LF_QOS_PERM') > -1 and items.find('=') > -1 and (items[0] != '#'):
- lfPERM = items[items.find('"'):]
- currentSettings['lfPERM'] = lfPERM.strip('"')
- elif items.find('LF_SYMLINK') > -1 and items.find('=') > -1 and (items[0] != '#'):
- lfSYMLINK = items[items.find('"'):]
- currentSettings['lfSYMLINK'] = lfSYMLINK.strip('"')
- elif items.find('LF_SYMLINK_PERM') > -1 and items.find('=') > -1 and (items[0] != '#'):
- lfPERM = items[items.find('"'):]
- currentSettings['lfPERM'] = lfPERM.strip('"')
- elif items.find('LF_SSH_EMAIL_ALERT') > -1 and items.find('=') > -1 and (items[0] != '#'):
- lfEMAIL_ALERT = items[items.find('"'):]
- currentSettings['lfEMAIL_ALERT'] = lfEMAIL_ALERT.strip('"')
- elif items.find('LF_SU_EMAIL_ALERT') > -1 and items.find('=') > -1 and (items[0] != '#'):
- lfEMAIL_ALERT = items[items.find('"'):]
- currentSettings['lfEMAIL_ALERT'] = lfEMAIL_ALERT.strip('"')
- elif items.find('LF_WEBMIN_EMAIL_ALERT') > -1 and items.find('=') > -1 and (items[0] != '#'):
- lfEMAIL_ALERT = items[items.find('"'):]
- currentSettings['lfEMAIL_ALERT'] = lfEMAIL_ALERT.strip('"')
- elif items.find('LF_CONSOLE_EMAIL_ALERT') > -1 and items.find('=') > -1 and (items[0] != '#'):
- lfEMAIL_ALERT = items[items.find('"'):]
- currentSettings['lfEMAIL_ALERT'] = lfEMAIL_ALERT.strip('"')
- elif items.find('LF_APACHE_404') > -1 and items.find('=') > -1 and (items[0] != '#'):
- lf404 = items[items.find('"'):]
- currentSettings['lf404'] = lf404.strip('"')
- elif items.find('LF_APACHE_404_PERM') > -1 and items.find('=') > -1 and (items[0] != '#'):
- lf404_PERM = items[items.find('"'):]
- currentSettings['lf404_PERM'] = lf404_PERM.strip('"')
- elif items.find('LF_APACHE_403') > -1 and items.find('=') > -1 and (items[0] != '#'):
- lf403 = items[items.find('"'):]
- currentSettings['lf403'] = lf403.strip('"')
- elif items.find('LF_APACHE_403_PERM') > -1 and items.find('=') > -1 and (items[0] != '#'):
- lf403_PERM = items[items.find('"'):]
- currentSettings['lf403_PERM'] = lf403_PERM.strip('"')
- elif items.find('LF_APACHE_401') > -1 and items.find('=') > -1 and (items[0] != '#'):
- lf401 = items[items.find('"'):]
- currentSettings['lf401'] = lf401.strip('"')
- elif items.find('LF_APACHE_ERRPORT') > -1 and items.find('=') > -1 and (items[0] != '#'):
- lfERRPORT = items[items.find('"'):]
- currentSettings['lfERRPORT'] = lfERRPORT.strip('"')
- elif items.find('LF_APACHE_401_PERM') > -1 and items.find('=') > -1 and (items[0] != '#'):
- lf401_PERM = items[items.find('"'):]
- currentSettings['lf401_PERM'] = lf401_PERM.strip('"')
- elif items.find('LF_MODSECIPDB_ALERT') > -1 and items.find('=') > -1 and (items[0] != '#'):
- lfALERT = items[items.find('"'):]
- currentSettings['lfALERT'] = lfALERT.strip('"')
- elif items.find('LF_MODSECIPDB_FILE') > -1 and items.find('=') > -1 and (items[0] != '#'):
- lfFILE = items[items.find('"'):]
- currentSettings['lfFILE'] = lfFILE.strip('"')
- elif items.find('LF_EXPLOIT') > -1 and items.find('=') > -1 and (items[0] != '#'):
- lfEXPLOIT = items[items.find('"'):]
- currentSettings['lfEXPLOIT'] = lfEXPLOIT.strip('"')
- elif items.find('LF_EXPLOIT_IGNORE') > -1 and items.find('=') > -1 and (items[0] != '#'):
- lfIGNORE = items[items.find('"'):]
- currentSettings['lfIGNORE'] = lfIGNORE.strip('"')
- elif items.find('LF_INTERVAL') > -1 and items.find('=') > -1 and (items[0] != '#'):
- lfINTERVAL = items[items.find('"'):]
- currentSettings['lfINTERVAL'] = lfINTERVAL.strip('"')
- elif items.find('LF_PARSE') > -1 and items.find('=') > -1 and (items[0] != '#'):
- lfPARSE = items[items.find('"'):]
- currentSettings['lfPARSE'] = lfPARSE.strip('"')
- elif items.find('LF_FLUSH') > -1 and items.find('=') > -1 and (items[0] != '#'):
- lfFLUSH = items[items.find('"'):]
- currentSettings['lfFLUSH'] = lfFLUSH.strip('"')
- elif items.find('LF_REPEATBLOCK') > -1 and items.find('=') > -1 and (items[0] != '#'):
- lfREPEATBLOCK = items[items.find('"'):]
- currentSettings['lfREPEATBLOCK'] = lfREPEATBLOCK.strip('"')
- elif items.find('LF_BLOCKINONLY') > -1 and items.find('=') > -1 and (items[0] != '#'):
- lfBLOCKINONLY = items[items.find('"'):]
- currentSettings['lfBLOCKINONLY'] = lfBLOCKINONLY.strip('"')
- elif items.find('CF_ENABLE') > -1 and items.find('=') > -1 and (items[0] != '#'):
- cfENABLE = items[items.find('"'):]
- currentSettings['cfENABLE'] = cfENABLE.strip('"')
- elif items.find('CF_BLOCK') > -1 and items.find('=') > -1 and (items[0] != '#'):
- cfBLOCK = items[items.find('"'):]
- currentSettings['cfBLOCK'] = cfBLOCK.strip('"')
- elif items.find('CF_TEMP') > -1 and items.find('=') > -1 and (items[0] != '#'):
- cfTEMP = items[items.find('"'):]
- currentSettings['cfTEMP'] = cfTEMP.strip('"')
- elif items.find('LF_DIRWATCH') > -1 and items.find('=') > -1 and (items[0] != '#'):
- lfDIRWATCH = items[items.find('"'):]
- currentSettings['lfDIRWATCH'] = lfDIRWATCH.strip('"')
- elif items.find('LF_DIRWATCH_DISABLE') > -1 and items.find('=') > -1 and (items[0] != '#'):
- lfDISABLE = items[items.find('"'):]
- currentSettings['lfDISABLE'] = lfDISABLE.strip('"')
- elif items.find('LF_DIRWATCH_FILE') > -1 and items.find('=') > -1 and (items[0] != '#'):
- lfFILE = items[items.find('"'):]
- currentSettings['lfFILE'] = lfFILE.strip('"')
- elif items.find('LF_INTEGRITY') > -1 and items.find('=') > -1 and (items[0] != '#'):
- lfINTEGRITY = items[items.find('"'):]
- currentSettings['lfINTEGRITY'] = lfINTEGRITY.strip('"')
- elif items.find('LF_DISTATTACK') > -1 and items.find('=') > -1 and (items[0] != '#'):
- lfDISTATTACK = items[items.find('"'):]
- currentSettings['lfDISTATTACK'] = lfDISTATTACK.strip('"')
- elif items.find('LF_DISTATTACK_UNIQ') > -1 and items.find('=') > -1 and (items[0] != '#'):
- lfUNIQ = items[items.find('"'):]
- currentSettings['lfUNIQ'] = lfUNIQ.strip('"')
- elif items.find('LF_DISTFTP') > -1 and items.find('=') > -1 and (items[0] != '#'):
- lfDISTFTP = items[items.find('"'):]
- currentSettings['lfDISTFTP'] = lfDISTFTP.strip('"')
- elif items.find('LF_DISTFTP_UNIQ') > -1 and items.find('=') > -1 and (items[0] != '#'):
- lfUNIQ = items[items.find('"'):]
- currentSettings['lfUNIQ'] = lfUNIQ.strip('"')
- elif items.find('LF_DISTFTP_PERM') > -1 and items.find('=') > -1 and (items[0] != '#'):
- lfPERM = items[items.find('"'):]
- currentSettings['lfPERM'] = lfPERM.strip('"')
- elif items.find('LF_DISTFTP_ALERT') > -1 and items.find('=') > -1 and (items[0] != '#'):
- lfALERT = items[items.find('"'):]
- currentSettings['lfALERT'] = lfALERT.strip('"')
- elif items.find('LF_DISTSMTP') > -1 and items.find('=') > -1 and (items[0] != '#'):
- lfDISTSMTP = items[items.find('"'):]
- currentSettings['lfDISTSMTP'] = lfDISTSMTP.strip('"')
- elif items.find('LF_DISTSMTP_UNIQ') > -1 and items.find('=') > -1 and (items[0] != '#'):
- lfUNIQ = items[items.find('"'):]
- currentSettings['lfUNIQ'] = lfUNIQ.strip('"')
- elif items.find('LF_DISTSMTP_PERM') > -1 and items.find('=') > -1 and (items[0] != '#'):
- lfPERM = items[items.find('"'):]
- currentSettings['lfPERM'] = lfPERM.strip('"')
- elif items.find('LF_DISTSMTP_ALERT') > -1 and items.find('=') > -1 and (items[0] != '#'):
- lfALERT = items[items.find('"'):]
- currentSettings['lfALERT'] = lfALERT.strip('"')
- elif items.find('LF_DIST_INTERVAL') > -1 and items.find('=') > -1 and (items[0] != '#'):
- lfINTERVAL = items[items.find('"'):]
- currentSettings['lfINTERVAL'] = lfINTERVAL.strip('"')
- elif items.find('LF_DIST_ACTION') > -1 and items.find('=') > -1 and (items[0] != '#'):
- lfACTION = items[items.find('"'):]
- currentSettings['lfACTION'] = lfACTION.strip('"')
- elif items.find('LT_POP3D') > -1 and items.find('=') > -1 and (items[0] != '#'):
- ltPOP3D = items[items.find('"'):]
- currentSettings['ltPOP3D'] = ltPOP3D.strip('"')
- elif items.find('LT_IMAPD') > -1 and items.find('=') > -1 and (items[0] != '#'):
- ltIMAPD = items[items.find('"'):]
- currentSettings['ltIMAPD'] = ltIMAPD.strip('"')
- elif items.find('LT_EMAIL_ALERT') > -1 and items.find('=') > -1 and (items[0] != '#'):
- ltALERT = items[items.find('"'):]
- currentSettings['ltALERT'] = ltALERT.strip('"')
- elif items.find('LT_SKIPPERMBLOCK') > -1 and items.find('=') > -1 and (items[0] != '#'):
- ltSKIPPERMBLOCK = items[items.find('"'):]
- currentSettings['ltSKIPPERMBLOCK'] = ltSKIPPERMBLOCK.strip('"')
- elif items.find('CT_LIMIT') > -1 and items.find('=') > -1 and (items[0] != '#'):
- ctLIMIT = items[items.find('"'):]
- currentSettings['ctLIMIT'] = ctLIMIT.strip('"')
- elif items.find('CT_INTERVAL') > -1 and items.find('=') > -1 and (items[0] != '#'):
- ctINTERVAL = items[items.find('"'):]
- currentSettings['ctINTERVAL'] = ctINTERVAL.strip('"')
- elif items.find('CT_EMAIL_ALERT') > -1 and items.find('=') > -1 and (items[0] != '#'):
- ctALERT = items[items.find('"'):]
- currentSettings['ctALERT'] = ctALERT.strip('"')
- elif items.find('CT_PERMANENT') > -1 and items.find('=') > -1 and (items[0] != '#'):
- ctPERMANENT = items[items.find('"'):]
- currentSettings['ctPERMANENT'] = ctPERMANENT.strip('"')
- elif items.find('CT_BLOCK_TIME') > -1 and items.find('=') > -1 and (items[0] != '#'):
- ctTIME = items[items.find('"'):]
- currentSettings['ctTIME'] = ctTIME.strip('"')
- elif items.find('CT_SKIP_TIME_WAIT') > -1 and items.find('=') > -1 and (items[0] != '#'):
- ctTIME_WAIT = items[items.find('"'):]
- currentSettings['ctTIME_WAIT'] = ctTIME_WAIT.strip('"')
- elif items.find('CT_STATES') > -1 and items.find('=') > -1 and (items[0] != '#'):
- ctSTATES = items[items.find('"'):]
- currentSettings['ctSTATES'] = ctSTATES.strip('"')
- elif items.find('CT_PORTS') > -1 and items.find('=') > -1 and (items[0] != '#'):
- ctPORTS = items[items.find('"'):]
- currentSettings['ctPORTS'] = ctPORTS.strip('"')
- elif items.find('CT_SUBNET_LIMIT') > -1 and items.find('=') > -1 and (items[0] != '#'):
- ctLIMIT = items[items.find('"'):]
- currentSettings['ctLIMIT'] = ctLIMIT.strip('"')
- elif items.find('PT_LIMIT') > -1 and items.find('=') > -1 and (items[0] != '#'):
- ptLIMIT = items[items.find('"'):]
- currentSettings['ptLIMIT'] = ptLIMIT.strip('"')
- elif items.find('PT_INTERVAL') > -1 and items.find('=') > -1 and (items[0] != '#'):
- ptINTERVAL = items[items.find('"'):]
- currentSettings['ptINTERVAL'] = ptINTERVAL.strip('"')
- elif items.find('PT_SKIP_HTTP') > -1 and items.find('=') > -1 and (items[0] != '#'):
- ptHTTP = items[items.find('"'):]
- currentSettings['ptHTTP'] = ptHTTP.strip('"')
- elif items.find('PT_DELETED') > -1 and items.find('=') > -1 and (items[0] != '#'):
- ptDELETED = items[items.find('"'):]
- currentSettings['ptDELETED'] = ptDELETED.strip('"')
- elif items.find('PT_DELETED_ACTION') > -1 and items.find('=') > -1 and (items[0] != '#'):
- ptACTION = items[items.find('"'):]
- currentSettings['ptACTION'] = ptACTION.strip('"')
- elif items.find('PT_USERPROC') > -1 and items.find('=') > -1 and (items[0] != '#'):
- ptUSERPROC = items[items.find('"'):]
- currentSettings['ptUSERPROC'] = ptUSERPROC.strip('"')
- elif items.find('PT_USERMEM') > -1 and items.find('=') > -1 and (items[0] != '#'):
- ptUSERMEM = items[items.find('"'):]
- currentSettings['ptUSERMEM'] = ptUSERMEM.strip('"')
- elif items.find('PT_USERRSS') > -1 and items.find('=') > -1 and (items[0] != '#'):
- ptUSERRSS = items[items.find('"'):]
- currentSettings['ptUSERRSS'] = ptUSERRSS.strip('"')
- elif items.find('PT_USERTIME') > -1 and items.find('=') > -1 and (items[0] != '#'):
- ptUSERTIME = items[items.find('"'):]
- currentSettings['ptUSERTIME'] = ptUSERTIME.strip('"')
- elif items.find('PT_USERKILL') > -1 and items.find('=') > -1 and (items[0] != '#'):
- ptUSERKILL = items[items.find('"'):]
- currentSettings['ptUSERKILL'] = ptUSERKILL.strip('"')
- elif items.find('PT_USERKILL_ALERT') > -1 and items.find('=') > -1 and (items[0] != '#'):
- ptALERT = items[items.find('"'):]
- currentSettings['ptALERT'] = ptALERT.strip('"')
- elif items.find('PT_USER_ACTION') > -1 and items.find('=') > -1 and (items[0] != '#'):
- ptACTION = items[items.find('"'):]
- currentSettings['ptACTION'] = ptACTION.strip('"')
- elif items.find('PT_LOAD') > -1 and items.find('=') > -1 and (items[0] != '#'):
- ptLOAD = items[items.find('"'):]
- currentSettings['ptLOAD'] = ptLOAD.strip('"')
- elif items.find('PT_LOAD_AVG') > -1 and items.find('=') > -1 and (items[0] != '#'):
- ptAVG = items[items.find('"'):]
- currentSettings['ptAVG'] = ptAVG.strip('"')
- elif items.find('PT_LOAD_LEVEL') > -1 and items.find('=') > -1 and (items[0] != '#'):
- ptLEVEL = items[items.find('"'):]
- currentSettings['ptLEVEL'] = ptLEVEL.strip('"')
- elif items.find('PT_LOAD_SKIP') > -1 and items.find('=') > -1 and (items[0] != '#'):
- ptSKIP = items[items.find('"'):]
- currentSettings['ptSKIP'] = ptSKIP.strip('"')
- elif items.find('PT_APACHESTATUS') > -1 and items.find('=') > -1 and (items[0] != '#'):
- ptAPACHESTATUS = items[items.find('"'):]
- currentSettings['ptAPACHESTATUS'] = ptAPACHESTATUS.strip('"')
- elif items.find('PT_LOAD_ACTION') > -1 and items.find('=') > -1 and (items[0] != '#'):
- ptACTION = items[items.find('"'):]
- currentSettings['ptACTION'] = ptACTION.strip('"')
- elif items.find('PT_FORKBOMB') > -1 and items.find('=') > -1 and (items[0] != '#'):
- ptFORKBOMB = items[items.find('"'):]
- currentSettings['ptFORKBOMB'] = ptFORKBOMB.strip('"')
- elif items.find('PT_SSHDKILL') > -1 and items.find('=') > -1 and (items[0] != '#'):
- ptSSHDKILL = items[items.find('"'):]
- currentSettings['ptSSHDKILL'] = ptSSHDKILL.strip('"')
- elif items.find('PT_SSHDHUNG') > -1 and items.find('=') > -1 and (items[0] != '#'):
- ptSSHDHUNG = items[items.find('"'):]
- currentSettings['ptSSHDHUNG'] = ptSSHDHUNG.strip('"')
- elif items.find('PS_INTERVAL') > -1 and items.find('=') > -1 and (items[0] != '#'):
- psINTERVAL = items[items.find('"'):]
- currentSettings['psINTERVAL'] = psINTERVAL.strip('"')
- elif items.find('PS_LIMIT') > -1 and items.find('=') > -1 and (items[0] != '#'):
- psLIMIT = items[items.find('"'):]
- currentSettings['psLIMIT'] = psLIMIT.strip('"')
- elif items.find('PS_PORTS') > -1 and items.find('=') > -1 and (items[0] != '#'):
- psPORTS = items[items.find('"'):]
- currentSettings['psPORTS'] = psPORTS.strip('"')
- elif items.find('PS_DIVERSITY') > -1 and items.find('=') > -1 and (items[0] != '#'):
- psDIVERSITY = items[items.find('"'):]
- currentSettings['psDIVERSITY'] = psDIVERSITY.strip('"')
- elif items.find('PS_PERMANENT') > -1 and items.find('=') > -1 and (items[0] != '#'):
- psPERMANENT = items[items.find('"'):]
- currentSettings['psPERMANENT'] = psPERMANENT.strip('"')
- elif items.find('PS_BLOCK_TIME') > -1 and items.find('=') > -1 and (items[0] != '#'):
- psTIME = items[items.find('"'):]
- currentSettings['psTIME'] = psTIME.strip('"')
- elif items.find('PS_EMAIL_ALERT') > -1 and items.find('=') > -1 and (items[0] != '#'):
- psALERT = items[items.find('"'):]
- currentSettings['psALERT'] = psALERT.strip('"')
- elif items.find('UID_INTERVAL') > -1 and items.find('=') > -1 and (items[0] != '#'):
- uidINTERVAL = items[items.find('"'):]
- currentSettings['uidINTERVAL'] = uidINTERVAL.strip('"')
- elif items.find('UID_LIMIT') > -1 and items.find('=') > -1 and (items[0] != '#'):
- uidLIMIT = items[items.find('"'):]
- currentSettings['uidLIMIT'] = uidLIMIT.strip('"')
- elif items.find('UID_PORTS') > -1 and items.find('=') > -1 and (items[0] != '#'):
- uidPORTS = items[items.find('"'):]
- currentSettings['uidPORTS'] = uidPORTS.strip('"')
- elif items.find('AT_ALERT') > -1 and items.find('=') > -1 and (items[0] != '#'):
- atALERT = items[items.find('"'):]
- currentSettings['atALERT'] = atALERT.strip('"')
- elif items.find('AT_INTERVAL') > -1 and items.find('=') > -1 and (items[0] != '#'):
- atINTERVAL = items[items.find('"'):]
- currentSettings['atINTERVAL'] = atINTERVAL.strip('"')
- elif items.find('AT_NEW') > -1 and items.find('=') > -1 and (items[0] != '#'):
- atNEW = items[items.find('"'):]
- currentSettings['atNEW'] = atNEW.strip('"')
- elif items.find('AT_OLD') > -1 and items.find('=') > -1 and (items[0] != '#'):
- atOLD = items[items.find('"'):]
- currentSettings['atOLD'] = atOLD.strip('"')
- elif items.find('AT_PASSWD') > -1 and items.find('=') > -1 and (items[0] != '#'):
- atPASSWD = items[items.find('"'):]
- currentSettings['atPASSWD'] = atPASSWD.strip('"')
- elif items.find('AT_UID') > -1 and items.find('=') > -1 and (items[0] != '#'):
- atUID = items[items.find('"'):]
- currentSettings['atUID'] = atUID.strip('"')
- elif items.find('AT_GID') > -1 and items.find('=') > -1 and (items[0] != '#'):
- atGID = items[items.find('"'):]
- currentSettings['atGID'] = atGID.strip('"')
- elif items.find('AT_DIR') > -1 and items.find('=') > -1 and (items[0] != '#'):
- atDIR = items[items.find('"'):]
- currentSettings['atDIR'] = atDIR.strip('"')
- elif items.find('AT_SHELL') > -1 and items.find('=') > -1 and (items[0] != '#'):
- atSHELL = items[items.find('"'):]
- currentSettings['atSHELL'] = atSHELL.strip('"')
- elif items.find('CLUSTER_SENDTO') > -1 and items.find('=') > -1 and (items[0] != '#'):
- clusterSENDTO = items[items.find('"'):]
- currentSettings['clusterSENDTO'] = clusterSENDTO.strip('"')
- elif items.find('CLUSTER_RECVFROM') > -1 and items.find('=') > -1 and (items[0] != '#'):
- clusterRECVFROM = items[items.find('"'):]
- currentSettings['clusterRECVFROM'] = clusterRECVFROM.strip('"')
- elif items.find('CLUSTER_MASTER') > -1 and items.find('=') > -1 and (items[0] != '#'):
- clusterMASTER = items[items.find('"'):]
- currentSettings['clusterMASTER'] = clusterMASTER.strip('"')
- elif items.find('CLUSTER_NAT') > -1 and items.find('=') > -1 and (items[0] != '#'):
- clusterNAT = items[items.find('"'):]
- currentSettings['clusterNAT'] = clusterNAT.strip('"')
- elif items.find('CLUSTER_LOCALADDR') > -1 and items.find('=') > -1 and (items[0] != '#'):
- clusterLOCALADDR = items[items.find('"'):]
- currentSettings['clusterLOCALADDR'] = clusterLOCALADDR.strip('"')
- elif items.find('CLUSTER_PORT') > -1 and items.find('=') > -1 and (items[0] != '#'):
- clusterPORT = items[items.find('"'):]
- currentSettings['clusterPORT'] = clusterPORT.strip('"')
- elif items.find('CLUSTER_KEY') > -1 and items.find('=') > -1 and (items[0] != '#'):
- clusterKEY = items[items.find('"'):]
- currentSettings['clusterKEY'] = clusterKEY.strip('"')
- elif items.find('CLUSTER_BLOCK') > -1 and items.find('=') > -1 and (items[0] != '#'):
- clusterBLOCK = items[items.find('"'):]
- currentSettings['clusterBLOCK'] = clusterBLOCK.strip('"')
- elif items.find('CLUSTER_CONFIG') > -1 and items.find('=') > -1 and (items[0] != '#'):
- clusterCONFIG = items[items.find('"'):]
- currentSettings['clusterCONFIG'] = clusterCONFIG.strip('"')
- elif items.find('CLUSTER_CHILDREN') > -1 and items.find('=') > -1 and (items[0] != '#'):
- clusterCHILDREN = items[items.find('"'):]
- currentSettings['clusterCHILDREN'] = clusterCHILDREN.strip('"')
- elif items.find('PORTKNOCKING_LOG') > -1 and items.find('=') > -1 and (items[0] != '#'):
- portknockingLOG = items[items.find('"'):]
- currentSettings['portknockingLOG'] = portknockingLOG.strip('"')
- elif items.find('PORTKNOCKING_ALERT') > -1 and items.find('=') > -1 and (items[0] != '#'):
- portknockingALERT = items[items.find('"'):]
- currentSettings['portknockingALERT'] = portknockingALERT.strip('"')
- elif items.find('LOGSCANNER_INTERVAL') > -1 and items.find('=') > -1 and (items[0] != '#'):
- logscannerINTERVAL = items[items.find('"'):]
- currentSettings['logscannerINTERVAL'] = logscannerINTERVAL.strip('"')
- elif items.find('LOGSCANNER_STYLE') > -1 and items.find('=') > -1 and (items[0] != '#'):
- logscannerSTYLE = items[items.find('"'):]
- currentSettings['logscannerSTYLE'] = logscannerSTYLE.strip('"')
- elif items.find('LOGSCANNER_EMPTY') > -1 and items.find('=') > -1 and (items[0] != '#'):
- logscannerEMPTY = items[items.find('"'):]
- currentSettings['logscannerEMPTY'] = logscannerEMPTY.strip('"')
- elif items.find('LOGSCANNER_LINES') > -1 and items.find('=') > -1 and (items[0] != '#'):
- logscannerLINES = items[items.find('"'):]
- currentSettings['logscannerLINES'] = logscannerLINES.strip('"')
- elif items.find('ST_ENABLE') > -1 and items.find('=') > -1 and (items[0] != '#'):
- stENABLE = items[items.find('"'):]
- currentSettings['stENABLE'] = stENABLE.strip('"')
- elif items.find('ST_IPTABLES') > -1 and items.find('=') > -1 and (items[0] != '#'):
- stIPTABLES = items[items.find('"'):]
- currentSettings['stIPTABLES'] = stIPTABLES.strip('"')
- elif items.find('ST_LOOKUP') > -1 and items.find('=') > -1 and (items[0] != '#'):
- stLOOKUP = items[items.find('"'):]
- currentSettings['stLOOKUP'] = stLOOKUP.strip('"')
- elif items.find('ST_SYSTEM') > -1 and items.find('=') > -1 and (items[0] != '#'):
- stSYSTEM = items[items.find('"'):]
- currentSettings['stSYSTEM'] = stSYSTEM.strip('"')
- elif items.find('ST_MYSQL') > -1 and items.find('=') > -1 and (items[0] != '#'):
- stMYSQL = items[items.find('"'):]
- currentSettings['stMYSQL'] = stMYSQL.strip('"')
- elif items.find('ST_APACHE') > -1 and items.find('=') > -1 and (items[0] != '#'):
- stAPACHE = items[items.find('"'):]
- currentSettings['stAPACHE'] = stAPACHE.strip('"')
- elif items.find('DOCKER') > -1 and items.find('=') > -1 and (items[0] != '#'):
- dockerDOCKER = items[items.find('"'):]
- currentSettings['dockerDOCKER'] = dockerDOCKER.strip('"')
- elif items.find('DOCKER_DEVICE') > -1 and items.find('=') > -1 and (items[0] != '#'):
- dockerDEVICE = items[items.find('"'):]
- currentSettings['dockerDEVICE'] = dockerDEVICE.strip('"')
- elif items.find('DOCKER_NETWORK4') > -1 and items.find('=') > -1 and (items[0] != '#'):
- dockerNETWORK4 = items[items.find('"'):]
- currentSettings['dockerNETWORK4'] = dockerNETWORK4.strip('"')
- elif items.find('DOCKER_NETWORK6') > -1 and items.find('=') > -1 and (items[0] != '#'):
- dockerNETWORK6 = items[items.find('"'):]
- currentSettings['dockerNETWORK6'] = dockerNETWORK6.strip('"')
- elif items.find('IPTABLES') > -1 and items.find('=') > -1 and (items[0] != '#'):
- iptablesIPTABLES = items[items.find('"'):]
- currentSettings['iptablesIPTABLES'] = iptablesIPTABLES.strip('"')
- elif items.find('IPTABLES_SAVE') > -1 and items.find('=') > -1 and (items[0] != '#'):
- iptablesSAVE = items[items.find('"'):]
- currentSettings['iptablesSAVE'] = iptablesSAVE.strip('"')
- elif items.find('IPTABLES_RESTORE') > -1 and items.find('=') > -1 and (items[0] != '#'):
- iptablesRESTORE = items[items.find('"'):]
- currentSettings['iptablesRESTORE'] = iptablesRESTORE.strip('"')
- elif items.find('IP6TABLES') > -1 and items.find('=') > -1 and (items[0] != '#'):
- ip6tablesIP6TABLES = items[items.find('"'):]
- currentSettings['ip6tablesIP6TABLES'] = ip6tablesIP6TABLES.strip('"')
- elif items.find('IP6TABLES_SAVE') > -1 and items.find('=') > -1 and (items[0] != '#'):
- ip6tablesSAVE = items[items.find('"'):]
- currentSettings['ip6tablesSAVE'] = ip6tablesSAVE.strip('"')
- elif items.find('IP6TABLES_RESTORE') > -1 and items.find('=') > -1 and (items[0] != '#'):
- ip6tablesRESTORE = items[items.find('"'):]
- currentSettings['ip6tablesRESTORE'] = ip6tablesRESTORE.strip('"')
- elif items.find('HTACCESS_LOG') > -1 and items.find('=') > -1 and (items[0] != '#'):
- htaccessLOG = items[items.find('"'):]
- currentSettings['htaccessLOG'] = htaccessLOG.strip('"')
- elif items.find('MODSEC_LOG') > -1 and items.find('=') > -1 and (items[0] != '#'):
- modsecLOG = items[items.find('"'):]
- currentSettings['modsecLOG'] = modsecLOG.strip('"')
- elif items.find('SSHD_LOG') > -1 and items.find('=') > -1 and (items[0] != '#'):
- sshdLOG = items[items.find('"'):]
- currentSettings['sshdLOG'] = sshdLOG.strip('"')
- elif items.find('SU_LOG') > -1 and items.find('=') > -1 and (items[0] != '#'):
- suLOG = items[items.find('"'):]
- currentSettings['suLOG'] = suLOG.strip('"')
- elif items.find('FTPD_LOG') > -1 and items.find('=') > -1 and (items[0] != '#'):
- ftpdLOG = items[items.find('"'):]
- currentSettings['ftpdLOG'] = ftpdLOG.strip('"')
- elif items.find('SMTPAUTH_LOG') > -1 and items.find('=') > -1 and (items[0] != '#'):
- smtpauthLOG = items[items.find('"'):]
- currentSettings['smtpauthLOG'] = smtpauthLOG.strip('"')
- elif items.find('POP3D_LOG') > -1 and items.find('=') > -1 and (items[0] != '#'):
- pop3dLOG = items[items.find('"'):]
- currentSettings['pop3dLOG'] = pop3dLOG.strip('"')
- elif items.find('IMAPD_LOG') > -1 and items.find('=') > -1 and (items[0] != '#'):
- imapdLOG = items[items.find('"'):]
- currentSettings['imapdLOG'] = imapdLOG.strip('"')
- elif items.find('IPTABLES_LOG') > -1 and items.find('=') > -1 and (items[0] != '#'):
- iptablesLOG = items[items.find('"'):]
- currentSettings['iptablesLOG'] = iptablesLOG.strip('"')
- elif items.find('SUHOSIN_LOG') > -1 and items.find('=') > -1 and (items[0] != '#'):
- suhosinLOG = items[items.find('"'):]
- currentSettings['suhosinLOG'] = suhosinLOG.strip('"')
- elif items.find('BIND_LOG') > -1 and items.find('=') > -1 and (items[0] != '#'):
- bindLOG = items[items.find('"'):]
- currentSettings['bindLOG'] = bindLOG.strip('"')
- elif items.find('SYSLOG_LOG') > -1 and items.find('=') > -1 and (items[0] != '#'):
- syslogLOG = items[items.find('"'):]
- currentSettings['syslogLOG'] = syslogLOG.strip('"')
- elif items.find('WEBMIN_LOG') > -1 and items.find('=') > -1 and (items[0] != '#'):
- webminLOG = items[items.find('"'):]
- currentSettings['webminLOG'] = webminLOG.strip('"')
- elif items.find('CUSTOM1_LOG') > -1 and items.find('=') > -1 and (items[0] != '#'):
- custom1LOG = items[items.find('"'):]
- currentSettings['custom1LOG'] = custom1LOG.strip('"')
- elif items.find('CUSTOM2_LOG') > -1 and items.find('=') > -1 and (items[0] != '#'):
- custom2LOG = items[items.find('"'):]
- currentSettings['custom2LOG'] = custom2LOG.strip('"')
- elif items.find('CUSTOM3_LOG') > -1 and items.find('=') > -1 and (items[0] != '#'):
- custom3LOG = items[items.find('"'):]
- currentSettings['custom3LOG'] = custom3LOG.strip('"')
- elif items.find('CUSTOM4_LOG') > -1 and items.find('=') > -1 and (items[0] != '#'):
- custom4LOG = items[items.find('"'):]
- currentSettings['custom4LOG'] = custom4LOG.strip('"')
- elif items.find('CUSTOM5_LOG') > -1 and items.find('=') > -1 and (items[0] != '#'):
- custom5LOG = items[items.find('"'):]
- currentSettings['custom5LOG'] = custom5LOG.strip('"')
- elif items.find('CUSTOM6_LOG') > -1 and items.find('=') > -1 and (items[0] != '#'):
- custom6LOG = items[items.find('"'):]
- currentSettings['custom6LOG'] = custom6LOG.strip('"')
- elif items.find('CUSTOM7_LOG') > -1 and items.find('=') > -1 and (items[0] != '#'):
- custom7LOG = items[items.find('"'):]
- currentSettings['custom7LOG'] = custom7LOG.strip('"')
- elif items.find('CUSTOM8_LOG') > -1 and items.find('=') > -1 and (items[0] != '#'):
- custom8LOG = items[items.find('"'):]
- currentSettings['custom8LOG'] = custom8LOG.strip('"')
- elif items.find('CUSTOM9_LOG') > -1 and items.find('=') > -1 and (items[0] != '#'):
- custom9LOG = items[items.find('"'):]
- currentSettings['custom9LOG'] = custom9LOG.strip('"')
- elif items.find('PORTS_pop3d') > -1 and items.find('=') > -1 and (items[0] != '#'):
- portspop3d = items[items.find('"'):]
- currentSettings['portspop3d'] = portspop3d.strip('"')
- elif items.find('PORTS_imapd') > -1 and items.find('=') > -1 and (items[0] != '#'):
- portsimapd = items[items.find('"'):]
- currentSettings['portsimapd'] = portsimapd.strip('"')
- elif items.find('PORTS_htpasswd') > -1 and items.find('=') > -1 and (items[0] != '#'):
- portshtpasswd = items[items.find('"'):]
- currentSettings['portshtpasswd'] = portshtpasswd.strip('"')
- elif items.find('PORTS_symlink') > -1 and items.find('=') > -1 and (items[0] != '#'):
- portssymlink = items[items.find('"'):]
- currentSettings['portssymlink'] = portssymlink.strip('"')
- elif items.find('PORTS_suhosin') > -1 and items.find('=') > -1 and (items[0] != '#'):
- portssuhosin = items[items.find('"'):]
- currentSettings['portssuhosin'] = portssuhosin.strip('"')
- elif items.find('PORTS_cxs') > -1 and items.find('=') > -1 and (items[0] != '#'):
- portscxs = items[items.find('"'):]
- currentSettings['portscxs'] = portscxs.strip('"')
- elif items.find('PORTS_ftpd') > -1 and items.find('=') > -1 and (items[0] != '#'):
- portsftpd = items[items.find('"'):]
- currentSettings['portsftpd'] = portsftpd.strip('"')
- elif items.find('PORTS_webmin') > -1 and items.find('=') > -1 and (items[0] != '#'):
- portswebmin = items[items.find('"'):]
- currentSettings['portswebmin'] = portswebmin.strip('"')
- elif items.find('PORTS_smtpauth') > -1 and items.find('=') > -1 and (items[0] != '#'):
- portssmtpauth = items[items.find('"'):]
- currentSettings['portssmtpauth'] = portssmtpauth.strip('"')
- elif items.find('PORTS_eximsyntax') > -1 and items.find('=') > -1 and (items[0] != '#'):
- portseximsyntax = items[items.find('"'):]
- currentSettings['portseximsyntax'] = portseximsyntax.strip('"')
- elif items.find('PORTS_sshd') > -1 and items.find('=') > -1 and (items[0] != '#'):
- portssshd = items[items.find('"'):]
- currentSettings['portssshd'] = portssshd.strip('"')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement