Guest User

Untitled

a guest
Oct 5th, 2019
129
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.                 elif items.find('RESTRICT_SYSLOG') > -1 and items.find('=') > -1 and (items[0] != '#'):
  2.                     restrictSYSLOG = items[items.find('"'):]
  3.                     currentSettings['restrictSYSLOG'] = restrictSYSLOG.strip('"')
  4.  
  5.                 elif items.find('RESTRICT_SYSLOG_GROUP') > -1 and items.find('=') > -1 and (items[0] != '#'):
  6.                     restrictGROUP = items[items.find('"'):]
  7.                     currentSettings['restrictGROUP'] = restrictGROUP.strip('"')
  8.  
  9.                 elif items.find('RESTRICT_UI') > -1 and items.find('=') > -1 and (items[0] != '#'):
  10.                     restrictUI = items[items.find('"'):]
  11.                     currentSettings['restrictUI'] = restrictUI.strip('"')
  12.  
  13.                 elif items.find('AUTO_UPDATES') > -1 and items.find('=') > -1 and (items[0] != '#'):
  14.                     autoUPDATES = items[items.find('"'):]
  15.                     currentSettings['autoUPDATES'] = autoUPDATES.strip('"')
  16.  
  17.                 elif items.find('LF_SPI') > -1 and items.find('=') > -1 and (items[0] != '#'):
  18.                     lfSPI = items[items.find('"'):]
  19.                     currentSettings['lfSPI'] = lfSPI.strip('"')
  20.  
  21.                 elif items.find('ICMP_IN') > -1 and items.find('=') > -1 and (items[0] != '#'):
  22.                     icmpIN = items[items.find('"'):]
  23.                     currentSettings['icmpIN'] = icmpIN.strip('"')
  24.  
  25.                 elif items.find('ICMP_IN_RATE') > -1 and items.find('=') > -1 and (items[0] != '#'):
  26.                     icmpRATE = items[items.find('"'):]
  27.                     currentSettings['icmpRATE'] = icmpRATE.strip('"')
  28.  
  29.                 elif items.find('ICMP_OUT') > -1 and items.find('=') > -1 and (items[0] != '#'):
  30.                     icmpOUT = items[items.find('"'):]
  31.                     currentSettings['icmpOUT'] = icmpOUT.strip('"')
  32.  
  33.                 elif items.find('ICMP_OUT_RATE') > -1 and items.find('=') > -1 and (items[0] != '#'):
  34.                     icmpRATE = items[items.find('"'):]
  35.                     currentSettings['icmpRATE'] = icmpRATE.strip('"')
  36.  
  37.                 elif items.find('ICMP_TIMESTAMPDROP') > -1 and items.find('=') > -1 and (items[0] != '#'):
  38.                     icmpTIMESTAMPDROP = items[items.find('"'):]
  39.                     currentSettings['icmpTIMESTAMPDROP'] = icmpTIMESTAMPDROP.strip('"')
  40.  
  41.                 elif items.find('IPV6') > -1 and items.find('=') > -1 and (items[0] != '#'):
  42.                     ipv6IPV6 = items[items.find('"'):]
  43.                     currentSettings['ipv6IPV6'] = ipv6IPV6.strip('"')
  44.  
  45.                 elif items.find('IPV6_ICMP_STRICT') > -1 and items.find('=') > -1 and (items[0] != '#'):
  46.                     ipv6STRICT = items[items.find('"'):]
  47.                     currentSettings['ipv6STRICT'] = ipv6STRICT.strip('"')
  48.  
  49.                 elif items.find('IPV6_SPI') > -1 and items.find('=') > -1 and (items[0] != '#'):
  50.                     ipv6SPI = items[items.find('"'):]
  51.                     currentSettings['ipv6SPI'] = ipv6SPI.strip('"')
  52.  
  53.                 elif items.find('TCP6_IN') > -1 and items.find('=') > -1 and (items[0] != '#'):
  54.                     tcp6IN = items[items.find('"'):]
  55.                     currentSettings['tcp6IN'] = tcp6IN.strip('"')
  56.  
  57.                 elif items.find('TCP6_OUT') > -1 and items.find('=') > -1 and (items[0] != '#'):
  58.                     tcp6OUT = items[items.find('"'):]
  59.                     currentSettings['tcp6OUT'] = tcp6OUT.strip('"')
  60.  
  61.                 elif items.find('UDP6_IN') > -1 and items.find('=') > -1 and (items[0] != '#'):
  62.                     udp6IN = items[items.find('"'):]
  63.                     currentSettings['udp6IN'] = udp6IN.strip('"')
  64.  
  65.                 elif items.find('UDP6_OUT') > -1 and items.find('=') > -1 and (items[0] != '#'):
  66.                     udp6OUT = items[items.find('"'):]
  67.                     currentSettings['udp6OUT'] = udp6OUT.strip('"')
  68.  
  69.                 elif items.find('ETH_DEVICE') > -1 and items.find('=') > -1 and (items[0] != '#'):
  70.                     ethDEVICE = items[items.find('"'):]
  71.                     currentSettings['ethDEVICE'] = ethDEVICE.strip('"')
  72.  
  73.                 elif items.find('ETH6_DEVICE') > -1 and items.find('=') > -1 and (items[0] != '#'):
  74.                     eth6DEVICE = items[items.find('"'):]
  75.                     currentSettings['eth6DEVICE'] = eth6DEVICE.strip('"')
  76.  
  77.                 elif items.find('ETH_DEVICE_SKIP') > -1 and items.find('=') > -1 and (items[0] != '#'):
  78.                     ethSKIP = items[items.find('"'):]
  79.                     currentSettings['ethSKIP'] = ethSKIP.strip('"')
  80.  
  81.                 elif items.find('USE_CONNTRACK') > -1 and items.find('=') > -1 and (items[0] != '#'):
  82.                     useCONNTRACK = items[items.find('"'):]
  83.                     currentSettings['useCONNTRACK'] = useCONNTRACK.strip('"')
  84.  
  85.                 elif items.find('USE_FTPHELPER') > -1 and items.find('=') > -1 and (items[0] != '#'):
  86.                     useFTPHELPER = items[items.find('"'):]
  87.                     currentSettings['useFTPHELPER'] = useFTPHELPER.strip('"')
  88.  
  89.                 elif items.find('SYSLOG_CHECK') > -1 and items.find('=') > -1 and (items[0] != '#'):
  90.                     syslogCHECK = items[items.find('"'):]
  91.                     currentSettings['syslogCHECK'] = syslogCHECK.strip('"')
  92.  
  93.                 elif items.find('IGNORE_ALLOW') > -1 and items.find('=') > -1 and (items[0] != '#'):
  94.                     ignoreALLOW = items[items.find('"'):]
  95.                     currentSettings['ignoreALLOW'] = ignoreALLOW.strip('"')
  96.  
  97.                 elif items.find('DNS_STRICT') > -1 and items.find('=') > -1 and (items[0] != '#'):
  98.                     dnsSTRICT = items[items.find('"'):]
  99.                     currentSettings['dnsSTRICT'] = dnsSTRICT.strip('"')
  100.  
  101.                 elif items.find('DNS_STRICT_NS') > -1 and items.find('=') > -1 and (items[0] != '#'):
  102.                     dnsNS = items[items.find('"'):]
  103.                     currentSettings['dnsNS'] = dnsNS.strip('"')
  104.  
  105.                 elif items.find('DENY_IP_LIMIT') > -1 and items.find('=') > -1 and (items[0] != '#'):
  106.                     denyLIMIT = items[items.find('"'):]
  107.                     currentSettings['denyLIMIT'] = denyLIMIT.strip('"')
  108.  
  109.                 elif items.find('DENY_TEMP_IP_LIMIT') > -1 and items.find('=') > -1 and (items[0] != '#'):
  110.                     denyIP_LIMIT = items[items.find('"'):]
  111.                     currentSettings['denyIP_LIMIT'] = denyIP_LIMIT.strip('"')
  112.  
  113.                 elif items.find('LF_DAEMON') > -1 and items.find('=') > -1 and (items[0] != '#'):
  114.                     lfDAEMON = items[items.find('"'):]
  115.                     currentSettings['lfDAEMON'] = lfDAEMON.strip('"')
  116.  
  117.                 elif items.find('LF_CSF') > -1 and items.find('=') > -1 and (items[0] != '#'):
  118.                     lfCSF = items[items.find('"'):]
  119.                     currentSettings['lfCSF'] = lfCSF.strip('"')
  120.  
  121.                 elif items.find('FASTSTART') > -1 and items.find('=') > -1 and (items[0] != '#'):
  122.                     faststartFASTSTART = items[items.find('"'):]
  123.                     currentSettings['faststartFASTSTART'] = faststartFASTSTART.strip('"')
  124.  
  125.                 elif items.find('LF_IPSET') > -1 and items.find('=') > -1 and (items[0] != '#'):
  126.                     lfIPSET = items[items.find('"'):]
  127.                     currentSettings['lfIPSET'] = lfIPSET.strip('"')
  128.  
  129.                 elif items.find('WAITLOCK') > -1 and items.find('=') > -1 and (items[0] != '#'):
  130.                     waitlockWAITLOCK = items[items.find('"'):]
  131.                     currentSettings['waitlockWAITLOCK'] = waitlockWAITLOCK.strip('"')
  132.  
  133.                 elif items.find('WAITLOCK_TIMEOUT') > -1 and items.find('=') > -1 and (items[0] != '#'):
  134.                     waitlockTIMEOUT = items[items.find('"'):]
  135.                     currentSettings['waitlockTIMEOUT'] = waitlockTIMEOUT.strip('"')
  136.  
  137.                 elif items.find('LF_IPSET_HASHSIZE') > -1 and items.find('=') > -1 and (items[0] != '#'):
  138.                     lfHASHSIZE = items[items.find('"'):]
  139.                     currentSettings['lfHASHSIZE'] = lfHASHSIZE.strip('"')
  140.  
  141.                 elif items.find('LF_IPSET_MAXELEM') > -1 and items.find('=') > -1 and (items[0] != '#'):
  142.                     lfMAXELEM = items[items.find('"'):]
  143.                     currentSettings['lfMAXELEM'] = lfMAXELEM.strip('"')
  144.  
  145.                 elif items.find('LFDSTART') > -1 and items.find('=') > -1 and (items[0] != '#'):
  146.                     lfdstartLFDSTART = items[items.find('"'):]
  147.                     currentSettings['lfdstartLFDSTART'] = lfdstartLFDSTART.strip('"')
  148.  
  149.                 elif items.find('VERBOSE') > -1 and items.find('=') > -1 and (items[0] != '#'):
  150.                     verboseVERBOSE = items[items.find('"'):]
  151.                     currentSettings['verboseVERBOSE'] = verboseVERBOSE.strip('"')
  152.  
  153.                 elif items.find('PACKET_FILTER') > -1 and items.find('=') > -1 and (items[0] != '#'):
  154.                     packetFILTER = items[items.find('"'):]
  155.                     currentSettings['packetFILTER'] = packetFILTER.strip('"')
  156.  
  157.                 elif items.find('LF_LOOKUPS') > -1 and items.find('=') > -1 and (items[0] != '#'):
  158.                     lfLOOKUPS = items[items.find('"'):]
  159.                     currentSettings['lfLOOKUPS'] = lfLOOKUPS.strip('"')
  160.  
  161.                 elif items.find('STYLE_CUSTOM') > -1 and items.find('=') > -1 and (items[0] != '#'):
  162.                     styleCUSTOM = items[items.find('"'):]
  163.                     currentSettings['styleCUSTOM'] = styleCUSTOM.strip('"')
  164.  
  165.                 elif items.find('STYLE_MOBILE') > -1 and items.find('=') > -1 and (items[0] != '#'):
  166.                     styleMOBILE = items[items.find('"'):]
  167.                     currentSettings['styleMOBILE'] = styleMOBILE.strip('"')
  168.  
  169.                 elif items.find('SMTP_BLOCK') > -1 and items.find('=') > -1 and (items[0] != '#'):
  170.                     smtpBLOCK = items[items.find('"'):]
  171.                     currentSettings['smtpBLOCK'] = smtpBLOCK.strip('"')
  172.  
  173.                 elif items.find('SMTP_ALLOWLOCAL') > -1 and items.find('=') > -1 and (items[0] != '#'):
  174.                     smtpALLOWLOCAL = items[items.find('"'):]
  175.                     currentSettings['smtpALLOWLOCAL'] = smtpALLOWLOCAL.strip('"')
  176.  
  177.                 elif items.find('SMTP_REDIRECT') > -1 and items.find('=') > -1 and (items[0] != '#'):
  178.                     smtpREDIRECT = items[items.find('"'):]
  179.                     currentSettings['smtpREDIRECT'] = smtpREDIRECT.strip('"')
  180.  
  181.                 elif items.find('SMTP_PORTS') > -1 and items.find('=') > -1 and (items[0] != '#'):
  182.                     smtpPORTS = items[items.find('"'):]
  183.                     currentSettings['smtpPORTS'] = smtpPORTS.strip('"')
  184.  
  185.                 elif items.find('SMTP_ALLOWUSER') > -1 and items.find('=') > -1 and (items[0] != '#'):
  186.                     smtpALLOWUSER = items[items.find('"'):]
  187.                     currentSettings['smtpALLOWUSER'] = smtpALLOWUSER.strip('"')
  188.  
  189.                 elif items.find('SMTP_ALLOWGROUP') > -1 and items.find('=') > -1 and (items[0] != '#'):
  190.                     smtpALLOWGROUP = items[items.find('"'):]
  191.                     currentSettings['smtpALLOWGROUP'] = smtpALLOWGROUP.strip('"')
  192.  
  193.                 elif items.find('SMTPAUTH_RESTRICT') > -1 and items.find('=') > -1 and (items[0] != '#'):
  194.                     smtpauthRESTRICT = items[items.find('"'):]
  195.                     currentSettings['smtpauthRESTRICT'] = smtpauthRESTRICT.strip('"')
  196.  
  197.                 elif items.find('SYNFLOOD') > -1 and items.find('=') > -1 and (items[0] != '#'):
  198.                     synfloodSYNFLOOD = items[items.find('"'):]
  199.                     currentSettings['synfloodSYNFLOOD'] = synfloodSYNFLOOD.strip('"')
  200.  
  201.                 elif items.find('SYNFLOOD_RATE') > -1 and items.find('=') > -1 and (items[0] != '#'):
  202.                     synfloodRATE = items[items.find('"'):]
  203.                     currentSettings['synfloodRATE'] = synfloodRATE.strip('"')
  204.  
  205.                 elif items.find('SYNFLOOD_BURST') > -1 and items.find('=') > -1 and (items[0] != '#'):
  206.                     synfloodBURST = items[items.find('"'):]
  207.                     currentSettings['synfloodBURST'] = synfloodBURST.strip('"')
  208.  
  209.                 elif items.find('CONNLIMIT') > -1 and items.find('=') > -1 and (items[0] != '#'):
  210.                     connlimitCONNLIMIT = items[items.find('"'):]
  211.                     currentSettings['connlimitCONNLIMIT'] = connlimitCONNLIMIT.strip('"')
  212.  
  213.                 elif items.find('PORTFLOOD') > -1 and items.find('=') > -1 and (items[0] != '#'):
  214.                     portfloodPORTFLOOD = items[items.find('"'):]
  215.                     currentSettings['portfloodPORTFLOOD'] = portfloodPORTFLOOD.strip('"')
  216.  
  217.                 elif items.find('UDPFLOOD') > -1 and items.find('=') > -1 and (items[0] != '#'):
  218.                     udpfloodUDPFLOOD = items[items.find('"'):]
  219.                     currentSettings['udpfloodUDPFLOOD'] = udpfloodUDPFLOOD.strip('"')
  220.  
  221.                 elif items.find('UDPFLOOD_LIMIT') > -1 and items.find('=') > -1 and (items[0] != '#'):
  222.                     udpfloodLIMIT = items[items.find('"'):]
  223.                     currentSettings['udpfloodLIMIT'] = udpfloodLIMIT.strip('"')
  224.  
  225.                 elif items.find('UDPFLOOD_BURST') > -1 and items.find('=') > -1 and (items[0] != '#'):
  226.                     udpfloodBURST = items[items.find('"'):]
  227.                     currentSettings['udpfloodBURST'] = udpfloodBURST.strip('"')
  228.  
  229.                 elif items.find('UDPFLOOD_ALLOWUSER') > -1 and items.find('=') > -1 and (items[0] != '#'):
  230.                     udpfloodALLOWUSER = items[items.find('"'):]
  231.                     currentSettings['udpfloodALLOWUSER'] = udpfloodALLOWUSER.strip('"')
  232.  
  233.                 elif items.find('SYSLOG') > -1 and items.find('=') > -1 and (items[0] != '#'):
  234.                     syslogSYSLOG = items[items.find('"'):]
  235.                     currentSettings['syslogSYSLOG'] = syslogSYSLOG.strip('"')
  236.  
  237.                 elif items.find('DROP') > -1 and items.find('=') > -1 and (items[0] != '#'):
  238.                     dropDROP = items[items.find('"'):]
  239.                     currentSettings['dropDROP'] = dropDROP.strip('"')
  240.  
  241.                 elif items.find('DROP_OUT') > -1 and items.find('=') > -1 and (items[0] != '#'):
  242.                     dropOUT = items[items.find('"'):]
  243.                     currentSettings['dropOUT'] = dropOUT.strip('"')
  244.  
  245.                 elif items.find('DROP_LOGGING') > -1 and items.find('=') > -1 and (items[0] != '#'):
  246.                     dropLOGGING = items[items.find('"'):]
  247.                     currentSettings['dropLOGGING'] = dropLOGGING.strip('"')
  248.  
  249.                 elif items.find('DROP_IP_LOGGING') > -1 and items.find('=') > -1 and (items[0] != '#'):
  250.                     dropLOGGING = items[items.find('"'):]
  251.                     currentSettings['dropLOGGING'] = dropLOGGING.strip('"')
  252.  
  253.                 elif items.find('DROP_OUT_LOGGING') > -1 and items.find('=') > -1 and (items[0] != '#'):
  254.                     dropLOGGING = items[items.find('"'):]
  255.                     currentSettings['dropLOGGING'] = dropLOGGING.strip('"')
  256.  
  257.                 elif items.find('DROP_UID_LOGGING') > -1 and items.find('=') > -1 and (items[0] != '#'):
  258.                     dropLOGGING = items[items.find('"'):]
  259.                     currentSettings['dropLOGGING'] = dropLOGGING.strip('"')
  260.  
  261.                 elif items.find('DROP_ONLYRES') > -1 and items.find('=') > -1 and (items[0] != '#'):
  262.                     dropONLYRES = items[items.find('"'):]
  263.                     currentSettings['dropONLYRES'] = dropONLYRES.strip('"')
  264.  
  265.                 elif items.find('DROP_NOLOG') > -1 and items.find('=') > -1 and (items[0] != '#'):
  266.                     dropNOLOG = items[items.find('"'):]
  267.                     currentSettings['dropNOLOG'] = dropNOLOG.strip('"')
  268.  
  269.                 elif items.find('DROP_PF_LOGGING') > -1 and items.find('=') > -1 and (items[0] != '#'):
  270.                     dropLOGGING = items[items.find('"'):]
  271.                     currentSettings['dropLOGGING'] = dropLOGGING.strip('"')
  272.  
  273.                 elif items.find('CONNLIMIT_LOGGING') > -1 and items.find('=') > -1 and (items[0] != '#'):
  274.                     connlimitLOGGING = items[items.find('"'):]
  275.                     currentSettings['connlimitLOGGING'] = connlimitLOGGING.strip('"')
  276.  
  277.                 elif items.find('UDPFLOOD_LOGGING') > -1 and items.find('=') > -1 and (items[0] != '#'):
  278.                     udpfloodLOGGING = items[items.find('"'):]
  279.                     currentSettings['udpfloodLOGGING'] = udpfloodLOGGING.strip('"')
  280.  
  281.                 elif items.find('LOGFLOOD_ALERT') > -1 and items.find('=') > -1 and (items[0] != '#'):
  282.                     logfloodALERT = items[items.find('"'):]
  283.                     currentSettings['logfloodALERT'] = logfloodALERT.strip('"')
  284.  
  285.                 elif items.find('LF_ALERT_TO') > -1 and items.find('=') > -1 and (items[0] != '#'):
  286.                     lfTO = items[items.find('"'):]
  287.                     currentSettings['lfTO'] = lfTO.strip('"')
  288.  
  289.                 elif items.find('LF_ALERT_FROM') > -1 and items.find('=') > -1 and (items[0] != '#'):
  290.                     lfFROM = items[items.find('"'):]
  291.                     currentSettings['lfFROM'] = lfFROM.strip('"')
  292.  
  293.                 elif items.find('LF_ALERT_SMTP') > -1 and items.find('=') > -1 and (items[0] != '#'):
  294.                     lfSMTP = items[items.find('"'):]
  295.                     currentSettings['lfSMTP'] = lfSMTP.strip('"')
  296.  
  297.                 elif items.find('BLOCK_REPORT') > -1 and items.find('=') > -1 and (items[0] != '#'):
  298.                     blockREPORT = items[items.find('"'):]
  299.                     currentSettings['blockREPORT'] = blockREPORT.strip('"')
  300.  
  301.                 elif items.find('UNBLOCK_REPORT') > -1 and items.find('=') > -1 and (items[0] != '#'):
  302.                     unblockREPORT = items[items.find('"'):]
  303.                     currentSettings['unblockREPORT'] = unblockREPORT.strip('"')
  304.  
  305.                 elif items.find('X_ARF') > -1 and items.find('=') > -1 and (items[0] != '#'):
  306.                     xARF = items[items.find('"'):]
  307.                     currentSettings['xARF'] = xARF.strip('"')
  308.  
  309.                 elif items.find('X_ARF_FROM') > -1 and items.find('=') > -1 and (items[0] != '#'):
  310.                     xFROM = items[items.find('"'):]
  311.                     currentSettings['xFROM'] = xFROM.strip('"')
  312.  
  313.                 elif items.find('X_ARF_TO') > -1 and items.find('=') > -1 and (items[0] != '#'):
  314.                     xTO = items[items.find('"'):]
  315.                     currentSettings['xTO'] = xTO.strip('"')
  316.  
  317.                 elif items.find('X_ARF_ABUSE') > -1 and items.find('=') > -1 and (items[0] != '#'):
  318.                     xABUSE = items[items.find('"'):]
  319.                     currentSettings['xABUSE'] = xABUSE.strip('"')
  320.  
  321.                 elif items.find('LF_PERMBLOCK') > -1 and items.find('=') > -1 and (items[0] != '#'):
  322.                     lfPERMBLOCK = items[items.find('"'):]
  323.                     currentSettings['lfPERMBLOCK'] = lfPERMBLOCK.strip('"')
  324.  
  325.                 elif items.find('LF_PERMBLOCK_INTERVAL') > -1 and items.find('=') > -1 and (items[0] != '#'):
  326.                     lfINTERVAL = items[items.find('"'):]
  327.                     currentSettings['lfINTERVAL'] = lfINTERVAL.strip('"')
  328.  
  329.                 elif items.find('LF_PERMBLOCK_COUNT') > -1 and items.find('=') > -1 and (items[0] != '#'):
  330.                     lfCOUNT = items[items.find('"'):]
  331.                     currentSettings['lfCOUNT'] = lfCOUNT.strip('"')
  332.  
  333.                 elif items.find('LF_PERMBLOCK_ALERT') > -1 and items.find('=') > -1 and (items[0] != '#'):
  334.                     lfALERT = items[items.find('"'):]
  335.                     currentSettings['lfALERT'] = lfALERT.strip('"')
  336.  
  337.                 elif items.find('LF_NETBLOCK') > -1 and items.find('=') > -1 and (items[0] != '#'):
  338.                     lfNETBLOCK = items[items.find('"'):]
  339.                     currentSettings['lfNETBLOCK'] = lfNETBLOCK.strip('"')
  340.  
  341.                 elif items.find('LF_NETBLOCK_INTERVAL') > -1 and items.find('=') > -1 and (items[0] != '#'):
  342.                     lfINTERVAL = items[items.find('"'):]
  343.                     currentSettings['lfINTERVAL'] = lfINTERVAL.strip('"')
  344.  
  345.                 elif items.find('LF_NETBLOCK_COUNT') > -1 and items.find('=') > -1 and (items[0] != '#'):
  346.                     lfCOUNT = items[items.find('"'):]
  347.                     currentSettings['lfCOUNT'] = lfCOUNT.strip('"')
  348.  
  349.                 elif items.find('LF_NETBLOCK_CLASS') > -1 and items.find('=') > -1 and (items[0] != '#'):
  350.                     lfCLASS = items[items.find('"'):]
  351.                     currentSettings['lfCLASS'] = lfCLASS.strip('"')
  352.  
  353.                 elif items.find('LF_NETBLOCK_ALERT') > -1 and items.find('=') > -1 and (items[0] != '#'):
  354.                     lfALERT = items[items.find('"'):]
  355.                     currentSettings['lfALERT'] = lfALERT.strip('"')
  356.  
  357.                 elif items.find('LF_NETBLOCK_IPV6') > -1 and items.find('=') > -1 and (items[0] != '#'):
  358.                     lfIPV6 = items[items.find('"'):]
  359.                     currentSettings['lfIPV6'] = lfIPV6.strip('"')
  360.  
  361.                 elif items.find('SAFECHAINUPDATE') > -1 and items.find('=') > -1 and (items[0] != '#'):
  362.                     safechainupdateSAFECHAINUPDATE = items[items.find('"'):]
  363.                     currentSettings['safechainupdateSAFECHAINUPDATE'] = safechainupdateSAFECHAINUPDATE.strip('"')
  364.  
  365.                 elif items.find('DYNDNS') > -1 and items.find('=') > -1 and (items[0] != '#'):
  366.                     dyndnsDYNDNS = items[items.find('"'):]
  367.                     currentSettings['dyndnsDYNDNS'] = dyndnsDYNDNS.strip('"')
  368.  
  369.                 elif items.find('DYNDNS_IGNORE') > -1 and items.find('=') > -1 and (items[0] != '#'):
  370.                     dyndnsIGNORE = items[items.find('"'):]
  371.                     currentSettings['dyndnsIGNORE'] = dyndnsIGNORE.strip('"')
  372.  
  373.                 elif items.find('LF_GLOBAL') > -1 and items.find('=') > -1 and (items[0] != '#'):
  374.                     lfGLOBAL = items[items.find('"'):]
  375.                     currentSettings['lfGLOBAL'] = lfGLOBAL.strip('"')
  376.  
  377.                 elif items.find('GLOBAL_ALLOW') > -1 and items.find('=') > -1 and (items[0] != '#'):
  378.                     globalALLOW = items[items.find('"'):]
  379.                     currentSettings['globalALLOW'] = globalALLOW.strip('"')
  380.  
  381.                 elif items.find('GLOBAL_DENY') > -1 and items.find('=') > -1 and (items[0] != '#'):
  382.                     globalDENY = items[items.find('"'):]
  383.                     currentSettings['globalDENY'] = globalDENY.strip('"')
  384.  
  385.                 elif items.find('GLOBAL_IGNORE') > -1 and items.find('=') > -1 and (items[0] != '#'):
  386.                     globalIGNORE = items[items.find('"'):]
  387.                     currentSettings['globalIGNORE'] = globalIGNORE.strip('"')
  388.  
  389.                 elif items.find('GLOBAL_DYNDNS') > -1 and items.find('=') > -1 and (items[0] != '#'):
  390.                     globalDYNDNS = items[items.find('"'):]
  391.                     currentSettings['globalDYNDNS'] = globalDYNDNS.strip('"')
  392.  
  393.                 elif items.find('GLOBAL_DYNDNS_INTERVAL') > -1 and items.find('=') > -1 and (items[0] != '#'):
  394.                     globalINTERVAL = items[items.find('"'):]
  395.                     currentSettings['globalINTERVAL'] = globalINTERVAL.strip('"')
  396.  
  397.                 elif items.find('GLOBAL_DYNDNS_IGNORE') > -1 and items.find('=') > -1 and (items[0] != '#'):
  398.                     globalIGNORE = items[items.find('"'):]
  399.                     currentSettings['globalIGNORE'] = globalIGNORE.strip('"')
  400.  
  401.                 elif items.find('LF_BOGON_SKIP') > -1 and items.find('=') > -1 and (items[0] != '#'):
  402.                     lfSKIP = items[items.find('"'):]
  403.                     currentSettings['lfSKIP'] = lfSKIP.strip('"')
  404.  
  405.                 elif items.find('URLGET') > -1 and items.find('=') > -1 and (items[0] != '#'):
  406.                     urlgetURLGET = items[items.find('"'):]
  407.                     currentSettings['urlgetURLGET'] = urlgetURLGET.strip('"')
  408.  
  409.                 elif items.find('URLPROXY') > -1 and items.find('=') > -1 and (items[0] != '#'):
  410.                     urlproxyURLPROXY = items[items.find('"'):]
  411.                     currentSettings['urlproxyURLPROXY'] = urlproxyURLPROXY.strip('"')
  412.  
  413.                 elif items.find('CC_DENY') > -1 and items.find('=') > -1 and (items[0] != '#'):
  414.                     ccDENY = items[items.find('"'):]
  415.                     currentSettings['ccDENY'] = ccDENY.strip('"')
  416.  
  417.                 elif items.find('CC_ALLOW') > -1 and items.find('=') > -1 and (items[0] != '#'):
  418.                     ccALLOW = items[items.find('"'):]
  419.                     currentSettings['ccALLOW'] = ccALLOW.strip('"')
  420.  
  421.                 elif items.find('CC_ALLOW_FILTER') > -1 and items.find('=') > -1 and (items[0] != '#'):
  422.                     ccFILTER = items[items.find('"'):]
  423.                     currentSettings['ccFILTER'] = ccFILTER.strip('"')
  424.  
  425.                 elif items.find('CC_ALLOW_PORTS') > -1 and items.find('=') > -1 and (items[0] != '#'):
  426.                     ccPORTS = items[items.find('"'):]
  427.                     currentSettings['ccPORTS'] = ccPORTS.strip('"')
  428.  
  429.                 elif items.find('CC_ALLOW_PORTS_TCP') > -1 and items.find('=') > -1 and (items[0] != '#'):
  430.                     ccPORTS_TCP = items[items.find('"'):]
  431.                     currentSettings['ccPORTS_TCP'] = ccPORTS_TCP.strip('"')
  432.  
  433.                 elif items.find('CC_ALLOW_PORTS_UDP') > -1 and items.find('=') > -1 and (items[0] != '#'):
  434.                     ccPORTS_UDP = items[items.find('"'):]
  435.                     currentSettings['ccPORTS_UDP'] = ccPORTS_UDP.strip('"')
  436.  
  437.                 elif items.find('CC_DENY_PORTS') > -1 and items.find('=') > -1 and (items[0] != '#'):
  438.                     ccPORTS = items[items.find('"'):]
  439.                     currentSettings['ccPORTS'] = ccPORTS.strip('"')
  440.  
  441.                 elif items.find('CC_DENY_PORTS_TCP') > -1 and items.find('=') > -1 and (items[0] != '#'):
  442.                     ccPORTS_TCP = items[items.find('"'):]
  443.                     currentSettings['ccPORTS_TCP'] = ccPORTS_TCP.strip('"')
  444.  
  445.                 elif items.find('CC_DENY_PORTS_UDP') > -1 and items.find('=') > -1 and (items[0] != '#'):
  446.                     ccPORTS_UDP = items[items.find('"'):]
  447.                     currentSettings['ccPORTS_UDP'] = ccPORTS_UDP.strip('"')
  448.  
  449.                 elif items.find('CC_IGNORE') > -1 and items.find('=') > -1 and (items[0] != '#'):
  450.                     ccIGNORE = items[items.find('"'):]
  451.                     currentSettings['ccIGNORE'] = ccIGNORE.strip('"')
  452.  
  453.                 elif items.find('CC_ALLOW_SMTPAUTH') > -1 and items.find('=') > -1 and (items[0] != '#'):
  454.                     ccSMTPAUTH = items[items.find('"'):]
  455.                     currentSettings['ccSMTPAUTH'] = ccSMTPAUTH.strip('"')
  456.  
  457.                 elif items.find('CC_DROP_CIDR') > -1 and items.find('=') > -1 and (items[0] != '#'):
  458.                     ccCIDR = items[items.find('"'):]
  459.                     currentSettings['ccCIDR'] = ccCIDR.strip('"')
  460.  
  461.                 elif items.find('CC_LOOKUPS') > -1 and items.find('=') > -1 and (items[0] != '#'):
  462.                     ccLOOKUPS = items[items.find('"'):]
  463.                     currentSettings['ccLOOKUPS'] = ccLOOKUPS.strip('"')
  464.  
  465.                 elif items.find('CC6_LOOKUPS') > -1 and items.find('=') > -1 and (items[0] != '#'):
  466.                     cc6LOOKUPS = items[items.find('"'):]
  467.                     currentSettings['cc6LOOKUPS'] = cc6LOOKUPS.strip('"')
  468.  
  469.                 elif items.find('CC_INTERVAL') > -1 and items.find('=') > -1 and (items[0] != '#'):
  470.                     ccINTERVAL = items[items.find('"'):]
  471.                     currentSettings['ccINTERVAL'] = ccINTERVAL.strip('"')
  472.  
  473.                 elif items.find('LF_TRIGGER') > -1 and items.find('=') > -1 and (items[0] != '#'):
  474.                     lfTRIGGER = items[items.find('"'):]
  475.                     currentSettings['lfTRIGGER'] = lfTRIGGER.strip('"')
  476.  
  477.                 elif items.find('LF_TRIGGER_PERM') > -1 and items.find('=') > -1 and (items[0] != '#'):
  478.                     lfPERM = items[items.find('"'):]
  479.                     currentSettings['lfPERM'] = lfPERM.strip('"')
  480.  
  481.                 elif items.find('LF_SELECT') > -1 and items.find('=') > -1 and (items[0] != '#'):
  482.                     lfSELECT = items[items.find('"'):]
  483.                     currentSettings['lfSELECT'] = lfSELECT.strip('"')
  484.  
  485.                 elif items.find('LF_EMAIL_ALERT') > -1 and items.find('=') > -1 and (items[0] != '#'):
  486.                     lfALERT = items[items.find('"'):]
  487.                     currentSettings['lfALERT'] = lfALERT.strip('"')
  488.  
  489.                 elif items.find('LF_SSHD') > -1 and items.find('=') > -1 and (items[0] != '#'):
  490.                     lfSSHD = items[items.find('"'):]
  491.                     currentSettings['lfSSHD'] = lfSSHD.strip('"')
  492.  
  493.                 elif items.find('LF_SSHD_PERM') > -1 and items.find('=') > -1 and (items[0] != '#'):
  494.                     lfPERM = items[items.find('"'):]
  495.                     currentSettings['lfPERM'] = lfPERM.strip('"')
  496.  
  497.                 elif items.find('LF_FTPD') > -1 and items.find('=') > -1 and (items[0] != '#'):
  498.                     lfFTPD = items[items.find('"'):]
  499.                     currentSettings['lfFTPD'] = lfFTPD.strip('"')
  500.  
  501.                 elif items.find('LF_FTPD_PERM') > -1 and items.find('=') > -1 and (items[0] != '#'):
  502.                     lfPERM = items[items.find('"'):]
  503.                     currentSettings['lfPERM'] = lfPERM.strip('"')
  504.  
  505.                 elif items.find('LF_SMTPAUTH') > -1 and items.find('=') > -1 and (items[0] != '#'):
  506.                     lfSMTPAUTH = items[items.find('"'):]
  507.                     currentSettings['lfSMTPAUTH'] = lfSMTPAUTH.strip('"')
  508.  
  509.                 elif items.find('LF_SMTPAUTH_PERM') > -1 and items.find('=') > -1 and (items[0] != '#'):
  510.                     lfPERM = items[items.find('"'):]
  511.                     currentSettings['lfPERM'] = lfPERM.strip('"')
  512.  
  513.                 elif items.find('LF_EXIMSYNTAX') > -1 and items.find('=') > -1 and (items[0] != '#'):
  514.                     lfEXIMSYNTAX = items[items.find('"'):]
  515.                     currentSettings['lfEXIMSYNTAX'] = lfEXIMSYNTAX.strip('"')
  516.  
  517.                 elif items.find('LF_EXIMSYNTAX_PERM') > -1 and items.find('=') > -1 and (items[0] != '#'):
  518.                     lfPERM = items[items.find('"'):]
  519.                     currentSettings['lfPERM'] = lfPERM.strip('"')
  520.  
  521.                 elif items.find('LF_POP3D') > -1 and items.find('=') > -1 and (items[0] != '#'):
  522.                     lfPOP3D = items[items.find('"'):]
  523.                     currentSettings['lfPOP3D'] = lfPOP3D.strip('"')
  524.  
  525.                 elif items.find('LF_POP3D_PERM') > -1 and items.find('=') > -1 and (items[0] != '#'):
  526.                     lfPERM = items[items.find('"'):]
  527.                     currentSettings['lfPERM'] = lfPERM.strip('"')
  528.  
  529.                 elif items.find('LF_IMAPD') > -1 and items.find('=') > -1 and (items[0] != '#'):
  530.                     lfIMAPD = items[items.find('"'):]
  531.                     currentSettings['lfIMAPD'] = lfIMAPD.strip('"')
  532.  
  533.                 elif items.find('LF_IMAPD_PERM') > -1 and items.find('=') > -1 and (items[0] != '#'):
  534.                     lfPERM = items[items.find('"'):]
  535.                     currentSettings['lfPERM'] = lfPERM.strip('"')
  536.  
  537.                 elif items.find('LF_HTACCESS') > -1 and items.find('=') > -1 and (items[0] != '#'):
  538.                     lfHTACCESS = items[items.find('"'):]
  539.                     currentSettings['lfHTACCESS'] = lfHTACCESS.strip('"')
  540.  
  541.                 elif items.find('LF_HTACCESS_PERM') > -1 and items.find('=') > -1 and (items[0] != '#'):
  542.                     lfPERM = items[items.find('"'):]
  543.                     currentSettings['lfPERM'] = lfPERM.strip('"')
  544.  
  545.                 elif items.find('LF_MODSEC') > -1 and items.find('=') > -1 and (items[0] != '#'):
  546.                     lfMODSEC = items[items.find('"'):]
  547.                     currentSettings['lfMODSEC'] = lfMODSEC.strip('"')
  548.  
  549.                 elif items.find('LF_MODSEC_PERM') > -1 and items.find('=') > -1 and (items[0] != '#'):
  550.                     lfPERM = items[items.find('"'):]
  551.                     currentSettings['lfPERM'] = lfPERM.strip('"')
  552.  
  553.                 elif items.find('LF_BIND') > -1 and items.find('=') > -1 and (items[0] != '#'):
  554.                     lfBIND = items[items.find('"'):]
  555.                     currentSettings['lfBIND'] = lfBIND.strip('"')
  556.  
  557.                 elif items.find('LF_BIND_PERM') > -1 and items.find('=') > -1 and (items[0] != '#'):
  558.                     lfPERM = items[items.find('"'):]
  559.                     currentSettings['lfPERM'] = lfPERM.strip('"')
  560.  
  561.                 elif items.find('LF_SUHOSIN') > -1 and items.find('=') > -1 and (items[0] != '#'):
  562.                     lfSUHOSIN = items[items.find('"'):]
  563.                     currentSettings['lfSUHOSIN'] = lfSUHOSIN.strip('"')
  564.  
  565.                 elif items.find('LF_SUHOSIN_PERM') > -1 and items.find('=') > -1 and (items[0] != '#'):
  566.                     lfPERM = items[items.find('"'):]
  567.                     currentSettings['lfPERM'] = lfPERM.strip('"')
  568.  
  569.                 elif items.find('LF_CXS') > -1 and items.find('=') > -1 and (items[0] != '#'):
  570.                     lfCXS = items[items.find('"'):]
  571.                     currentSettings['lfCXS'] = lfCXS.strip('"')
  572.  
  573.                 elif items.find('LF_CXS_PERM') > -1 and items.find('=') > -1 and (items[0] != '#'):
  574.                     lfPERM = items[items.find('"'):]
  575.                     currentSettings['lfPERM'] = lfPERM.strip('"')
  576.  
  577.                 elif items.find('LF_QOS') > -1 and items.find('=') > -1 and (items[0] != '#'):
  578.                     lfQOS = items[items.find('"'):]
  579.                     currentSettings['lfQOS'] = lfQOS.strip('"')
  580.  
  581.                 elif items.find('LF_QOS_PERM') > -1 and items.find('=') > -1 and (items[0] != '#'):
  582.                     lfPERM = items[items.find('"'):]
  583.                     currentSettings['lfPERM'] = lfPERM.strip('"')
  584.  
  585.                 elif items.find('LF_SYMLINK') > -1 and items.find('=') > -1 and (items[0] != '#'):
  586.                     lfSYMLINK = items[items.find('"'):]
  587.                     currentSettings['lfSYMLINK'] = lfSYMLINK.strip('"')
  588.  
  589.                 elif items.find('LF_SYMLINK_PERM') > -1 and items.find('=') > -1 and (items[0] != '#'):
  590.                     lfPERM = items[items.find('"'):]
  591.                     currentSettings['lfPERM'] = lfPERM.strip('"')
  592.  
  593.                 elif items.find('LF_SSH_EMAIL_ALERT') > -1 and items.find('=') > -1 and (items[0] != '#'):
  594.                     lfEMAIL_ALERT = items[items.find('"'):]
  595.                     currentSettings['lfEMAIL_ALERT'] = lfEMAIL_ALERT.strip('"')
  596.  
  597.                 elif items.find('LF_SU_EMAIL_ALERT') > -1 and items.find('=') > -1 and (items[0] != '#'):
  598.                     lfEMAIL_ALERT = items[items.find('"'):]
  599.                     currentSettings['lfEMAIL_ALERT'] = lfEMAIL_ALERT.strip('"')
  600.  
  601.                 elif items.find('LF_WEBMIN_EMAIL_ALERT') > -1 and items.find('=') > -1 and (items[0] != '#'):
  602.                     lfEMAIL_ALERT = items[items.find('"'):]
  603.                     currentSettings['lfEMAIL_ALERT'] = lfEMAIL_ALERT.strip('"')
  604.  
  605.                 elif items.find('LF_CONSOLE_EMAIL_ALERT') > -1 and items.find('=') > -1 and (items[0] != '#'):
  606.                     lfEMAIL_ALERT = items[items.find('"'):]
  607.                     currentSettings['lfEMAIL_ALERT'] = lfEMAIL_ALERT.strip('"')
  608.  
  609.                 elif items.find('LF_APACHE_404') > -1 and items.find('=') > -1 and (items[0] != '#'):
  610.                     lf404 = items[items.find('"'):]
  611.                     currentSettings['lf404'] = lf404.strip('"')
  612.  
  613.                 elif items.find('LF_APACHE_404_PERM') > -1 and items.find('=') > -1 and (items[0] != '#'):
  614.                     lf404_PERM = items[items.find('"'):]
  615.                     currentSettings['lf404_PERM'] = lf404_PERM.strip('"')
  616.  
  617.                 elif items.find('LF_APACHE_403') > -1 and items.find('=') > -1 and (items[0] != '#'):
  618.                     lf403 = items[items.find('"'):]
  619.                     currentSettings['lf403'] = lf403.strip('"')
  620.  
  621.                 elif items.find('LF_APACHE_403_PERM') > -1 and items.find('=') > -1 and (items[0] != '#'):
  622.                     lf403_PERM = items[items.find('"'):]
  623.                     currentSettings['lf403_PERM'] = lf403_PERM.strip('"')
  624.  
  625.                 elif items.find('LF_APACHE_401') > -1 and items.find('=') > -1 and (items[0] != '#'):
  626.                     lf401 = items[items.find('"'):]
  627.                     currentSettings['lf401'] = lf401.strip('"')
  628.  
  629.                 elif items.find('LF_APACHE_ERRPORT') > -1 and items.find('=') > -1 and (items[0] != '#'):
  630.                     lfERRPORT = items[items.find('"'):]
  631.                     currentSettings['lfERRPORT'] = lfERRPORT.strip('"')
  632.  
  633.                 elif items.find('LF_APACHE_401_PERM') > -1 and items.find('=') > -1 and (items[0] != '#'):
  634.                     lf401_PERM = items[items.find('"'):]
  635.                     currentSettings['lf401_PERM'] = lf401_PERM.strip('"')
  636.  
  637.                 elif items.find('LF_MODSECIPDB_ALERT') > -1 and items.find('=') > -1 and (items[0] != '#'):
  638.                     lfALERT = items[items.find('"'):]
  639.                     currentSettings['lfALERT'] = lfALERT.strip('"')
  640.  
  641.                 elif items.find('LF_MODSECIPDB_FILE') > -1 and items.find('=') > -1 and (items[0] != '#'):
  642.                     lfFILE = items[items.find('"'):]
  643.                     currentSettings['lfFILE'] = lfFILE.strip('"')
  644.  
  645.                 elif items.find('LF_EXPLOIT') > -1 and items.find('=') > -1 and (items[0] != '#'):
  646.                     lfEXPLOIT = items[items.find('"'):]
  647.                     currentSettings['lfEXPLOIT'] = lfEXPLOIT.strip('"')
  648.  
  649.                 elif items.find('LF_EXPLOIT_IGNORE') > -1 and items.find('=') > -1 and (items[0] != '#'):
  650.                     lfIGNORE = items[items.find('"'):]
  651.                     currentSettings['lfIGNORE'] = lfIGNORE.strip('"')
  652.  
  653.                 elif items.find('LF_INTERVAL') > -1 and items.find('=') > -1 and (items[0] != '#'):
  654.                     lfINTERVAL = items[items.find('"'):]
  655.                     currentSettings['lfINTERVAL'] = lfINTERVAL.strip('"')
  656.  
  657.                 elif items.find('LF_PARSE') > -1 and items.find('=') > -1 and (items[0] != '#'):
  658.                     lfPARSE = items[items.find('"'):]
  659.                     currentSettings['lfPARSE'] = lfPARSE.strip('"')
  660.  
  661.                 elif items.find('LF_FLUSH') > -1 and items.find('=') > -1 and (items[0] != '#'):
  662.                     lfFLUSH = items[items.find('"'):]
  663.                     currentSettings['lfFLUSH'] = lfFLUSH.strip('"')
  664.  
  665.                 elif items.find('LF_REPEATBLOCK') > -1 and items.find('=') > -1 and (items[0] != '#'):
  666.                     lfREPEATBLOCK = items[items.find('"'):]
  667.                     currentSettings['lfREPEATBLOCK'] = lfREPEATBLOCK.strip('"')
  668.  
  669.                 elif items.find('LF_BLOCKINONLY') > -1 and items.find('=') > -1 and (items[0] != '#'):
  670.                     lfBLOCKINONLY = items[items.find('"'):]
  671.                     currentSettings['lfBLOCKINONLY'] = lfBLOCKINONLY.strip('"')
  672.  
  673.                 elif items.find('CF_ENABLE') > -1 and items.find('=') > -1 and (items[0] != '#'):
  674.                     cfENABLE = items[items.find('"'):]
  675.                     currentSettings['cfENABLE'] = cfENABLE.strip('"')
  676.  
  677.                 elif items.find('CF_BLOCK') > -1 and items.find('=') > -1 and (items[0] != '#'):
  678.                     cfBLOCK = items[items.find('"'):]
  679.                     currentSettings['cfBLOCK'] = cfBLOCK.strip('"')
  680.  
  681.                 elif items.find('CF_TEMP') > -1 and items.find('=') > -1 and (items[0] != '#'):
  682.                     cfTEMP = items[items.find('"'):]
  683.                     currentSettings['cfTEMP'] = cfTEMP.strip('"')
  684.  
  685.                 elif items.find('LF_DIRWATCH') > -1 and items.find('=') > -1 and (items[0] != '#'):
  686.                     lfDIRWATCH = items[items.find('"'):]
  687.                     currentSettings['lfDIRWATCH'] = lfDIRWATCH.strip('"')
  688.  
  689.                 elif items.find('LF_DIRWATCH_DISABLE') > -1 and items.find('=') > -1 and (items[0] != '#'):
  690.                     lfDISABLE = items[items.find('"'):]
  691.                     currentSettings['lfDISABLE'] = lfDISABLE.strip('"')
  692.  
  693.                 elif items.find('LF_DIRWATCH_FILE') > -1 and items.find('=') > -1 and (items[0] != '#'):
  694.                     lfFILE = items[items.find('"'):]
  695.                     currentSettings['lfFILE'] = lfFILE.strip('"')
  696.  
  697.                 elif items.find('LF_INTEGRITY') > -1 and items.find('=') > -1 and (items[0] != '#'):
  698.                     lfINTEGRITY = items[items.find('"'):]
  699.                     currentSettings['lfINTEGRITY'] = lfINTEGRITY.strip('"')
  700.  
  701.                 elif items.find('LF_DISTATTACK') > -1 and items.find('=') > -1 and (items[0] != '#'):
  702.                     lfDISTATTACK = items[items.find('"'):]
  703.                     currentSettings['lfDISTATTACK'] = lfDISTATTACK.strip('"')
  704.  
  705.                 elif items.find('LF_DISTATTACK_UNIQ') > -1 and items.find('=') > -1 and (items[0] != '#'):
  706.                     lfUNIQ = items[items.find('"'):]
  707.                     currentSettings['lfUNIQ'] = lfUNIQ.strip('"')
  708.  
  709.                 elif items.find('LF_DISTFTP') > -1 and items.find('=') > -1 and (items[0] != '#'):
  710.                     lfDISTFTP = items[items.find('"'):]
  711.                     currentSettings['lfDISTFTP'] = lfDISTFTP.strip('"')
  712.  
  713.                 elif items.find('LF_DISTFTP_UNIQ') > -1 and items.find('=') > -1 and (items[0] != '#'):
  714.                     lfUNIQ = items[items.find('"'):]
  715.                     currentSettings['lfUNIQ'] = lfUNIQ.strip('"')
  716.  
  717.                 elif items.find('LF_DISTFTP_PERM') > -1 and items.find('=') > -1 and (items[0] != '#'):
  718.                     lfPERM = items[items.find('"'):]
  719.                     currentSettings['lfPERM'] = lfPERM.strip('"')
  720.  
  721.                 elif items.find('LF_DISTFTP_ALERT') > -1 and items.find('=') > -1 and (items[0] != '#'):
  722.                     lfALERT = items[items.find('"'):]
  723.                     currentSettings['lfALERT'] = lfALERT.strip('"')
  724.  
  725.                 elif items.find('LF_DISTSMTP') > -1 and items.find('=') > -1 and (items[0] != '#'):
  726.                     lfDISTSMTP = items[items.find('"'):]
  727.                     currentSettings['lfDISTSMTP'] = lfDISTSMTP.strip('"')
  728.  
  729.                 elif items.find('LF_DISTSMTP_UNIQ') > -1 and items.find('=') > -1 and (items[0] != '#'):
  730.                     lfUNIQ = items[items.find('"'):]
  731.                     currentSettings['lfUNIQ'] = lfUNIQ.strip('"')
  732.  
  733.                 elif items.find('LF_DISTSMTP_PERM') > -1 and items.find('=') > -1 and (items[0] != '#'):
  734.                     lfPERM = items[items.find('"'):]
  735.                     currentSettings['lfPERM'] = lfPERM.strip('"')
  736.  
  737.                 elif items.find('LF_DISTSMTP_ALERT') > -1 and items.find('=') > -1 and (items[0] != '#'):
  738.                     lfALERT = items[items.find('"'):]
  739.                     currentSettings['lfALERT'] = lfALERT.strip('"')
  740.  
  741.                 elif items.find('LF_DIST_INTERVAL') > -1 and items.find('=') > -1 and (items[0] != '#'):
  742.                     lfINTERVAL = items[items.find('"'):]
  743.                     currentSettings['lfINTERVAL'] = lfINTERVAL.strip('"')
  744.  
  745.                 elif items.find('LF_DIST_ACTION') > -1 and items.find('=') > -1 and (items[0] != '#'):
  746.                     lfACTION = items[items.find('"'):]
  747.                     currentSettings['lfACTION'] = lfACTION.strip('"')
  748.  
  749.                 elif items.find('LT_POP3D') > -1 and items.find('=') > -1 and (items[0] != '#'):
  750.                     ltPOP3D = items[items.find('"'):]
  751.                     currentSettings['ltPOP3D'] = ltPOP3D.strip('"')
  752.  
  753.                 elif items.find('LT_IMAPD') > -1 and items.find('=') > -1 and (items[0] != '#'):
  754.                     ltIMAPD = items[items.find('"'):]
  755.                     currentSettings['ltIMAPD'] = ltIMAPD.strip('"')
  756.  
  757.                 elif items.find('LT_EMAIL_ALERT') > -1 and items.find('=') > -1 and (items[0] != '#'):
  758.                     ltALERT = items[items.find('"'):]
  759.                     currentSettings['ltALERT'] = ltALERT.strip('"')
  760.  
  761.                 elif items.find('LT_SKIPPERMBLOCK') > -1 and items.find('=') > -1 and (items[0] != '#'):
  762.                     ltSKIPPERMBLOCK = items[items.find('"'):]
  763.                     currentSettings['ltSKIPPERMBLOCK'] = ltSKIPPERMBLOCK.strip('"')
  764.  
  765.                 elif items.find('CT_LIMIT') > -1 and items.find('=') > -1 and (items[0] != '#'):
  766.                     ctLIMIT = items[items.find('"'):]
  767.                     currentSettings['ctLIMIT'] = ctLIMIT.strip('"')
  768.  
  769.                 elif items.find('CT_INTERVAL') > -1 and items.find('=') > -1 and (items[0] != '#'):
  770.                     ctINTERVAL = items[items.find('"'):]
  771.                     currentSettings['ctINTERVAL'] = ctINTERVAL.strip('"')
  772.  
  773.                 elif items.find('CT_EMAIL_ALERT') > -1 and items.find('=') > -1 and (items[0] != '#'):
  774.                     ctALERT = items[items.find('"'):]
  775.                     currentSettings['ctALERT'] = ctALERT.strip('"')
  776.  
  777.                 elif items.find('CT_PERMANENT') > -1 and items.find('=') > -1 and (items[0] != '#'):
  778.                     ctPERMANENT = items[items.find('"'):]
  779.                     currentSettings['ctPERMANENT'] = ctPERMANENT.strip('"')
  780.  
  781.                 elif items.find('CT_BLOCK_TIME') > -1 and items.find('=') > -1 and (items[0] != '#'):
  782.                     ctTIME = items[items.find('"'):]
  783.                     currentSettings['ctTIME'] = ctTIME.strip('"')
  784.  
  785.                 elif items.find('CT_SKIP_TIME_WAIT') > -1 and items.find('=') > -1 and (items[0] != '#'):
  786.                     ctTIME_WAIT = items[items.find('"'):]
  787.                     currentSettings['ctTIME_WAIT'] = ctTIME_WAIT.strip('"')
  788.  
  789.                 elif items.find('CT_STATES') > -1 and items.find('=') > -1 and (items[0] != '#'):
  790.                     ctSTATES = items[items.find('"'):]
  791.                     currentSettings['ctSTATES'] = ctSTATES.strip('"')
  792.  
  793.                 elif items.find('CT_PORTS') > -1 and items.find('=') > -1 and (items[0] != '#'):
  794.                     ctPORTS = items[items.find('"'):]
  795.                     currentSettings['ctPORTS'] = ctPORTS.strip('"')
  796.  
  797.                 elif items.find('CT_SUBNET_LIMIT') > -1 and items.find('=') > -1 and (items[0] != '#'):
  798.                     ctLIMIT = items[items.find('"'):]
  799.                     currentSettings['ctLIMIT'] = ctLIMIT.strip('"')
  800.  
  801.                 elif items.find('PT_LIMIT') > -1 and items.find('=') > -1 and (items[0] != '#'):
  802.                     ptLIMIT = items[items.find('"'):]
  803.                     currentSettings['ptLIMIT'] = ptLIMIT.strip('"')
  804.  
  805.                 elif items.find('PT_INTERVAL') > -1 and items.find('=') > -1 and (items[0] != '#'):
  806.                     ptINTERVAL = items[items.find('"'):]
  807.                     currentSettings['ptINTERVAL'] = ptINTERVAL.strip('"')
  808.  
  809.                 elif items.find('PT_SKIP_HTTP') > -1 and items.find('=') > -1 and (items[0] != '#'):
  810.                     ptHTTP = items[items.find('"'):]
  811.                     currentSettings['ptHTTP'] = ptHTTP.strip('"')
  812.  
  813.                 elif items.find('PT_DELETED') > -1 and items.find('=') > -1 and (items[0] != '#'):
  814.                     ptDELETED = items[items.find('"'):]
  815.                     currentSettings['ptDELETED'] = ptDELETED.strip('"')
  816.  
  817.                 elif items.find('PT_DELETED_ACTION') > -1 and items.find('=') > -1 and (items[0] != '#'):
  818.                     ptACTION = items[items.find('"'):]
  819.                     currentSettings['ptACTION'] = ptACTION.strip('"')
  820.  
  821.                 elif items.find('PT_USERPROC') > -1 and items.find('=') > -1 and (items[0] != '#'):
  822.                     ptUSERPROC = items[items.find('"'):]
  823.                     currentSettings['ptUSERPROC'] = ptUSERPROC.strip('"')
  824.  
  825.                 elif items.find('PT_USERMEM') > -1 and items.find('=') > -1 and (items[0] != '#'):
  826.                     ptUSERMEM = items[items.find('"'):]
  827.                     currentSettings['ptUSERMEM'] = ptUSERMEM.strip('"')
  828.  
  829.                 elif items.find('PT_USERRSS') > -1 and items.find('=') > -1 and (items[0] != '#'):
  830.                     ptUSERRSS = items[items.find('"'):]
  831.                     currentSettings['ptUSERRSS'] = ptUSERRSS.strip('"')
  832.  
  833.                 elif items.find('PT_USERTIME') > -1 and items.find('=') > -1 and (items[0] != '#'):
  834.                     ptUSERTIME = items[items.find('"'):]
  835.                     currentSettings['ptUSERTIME'] = ptUSERTIME.strip('"')
  836.  
  837.                 elif items.find('PT_USERKILL') > -1 and items.find('=') > -1 and (items[0] != '#'):
  838.                     ptUSERKILL = items[items.find('"'):]
  839.                     currentSettings['ptUSERKILL'] = ptUSERKILL.strip('"')
  840.  
  841.                 elif items.find('PT_USERKILL_ALERT') > -1 and items.find('=') > -1 and (items[0] != '#'):
  842.                     ptALERT = items[items.find('"'):]
  843.                     currentSettings['ptALERT'] = ptALERT.strip('"')
  844.  
  845.                 elif items.find('PT_USER_ACTION') > -1 and items.find('=') > -1 and (items[0] != '#'):
  846.                     ptACTION = items[items.find('"'):]
  847.                     currentSettings['ptACTION'] = ptACTION.strip('"')
  848.  
  849.                 elif items.find('PT_LOAD') > -1 and items.find('=') > -1 and (items[0] != '#'):
  850.                     ptLOAD = items[items.find('"'):]
  851.                     currentSettings['ptLOAD'] = ptLOAD.strip('"')
  852.  
  853.                 elif items.find('PT_LOAD_AVG') > -1 and items.find('=') > -1 and (items[0] != '#'):
  854.                     ptAVG = items[items.find('"'):]
  855.                     currentSettings['ptAVG'] = ptAVG.strip('"')
  856.  
  857.                 elif items.find('PT_LOAD_LEVEL') > -1 and items.find('=') > -1 and (items[0] != '#'):
  858.                     ptLEVEL = items[items.find('"'):]
  859.                     currentSettings['ptLEVEL'] = ptLEVEL.strip('"')
  860.  
  861.                 elif items.find('PT_LOAD_SKIP') > -1 and items.find('=') > -1 and (items[0] != '#'):
  862.                     ptSKIP = items[items.find('"'):]
  863.                     currentSettings['ptSKIP'] = ptSKIP.strip('"')
  864.  
  865.                 elif items.find('PT_APACHESTATUS') > -1 and items.find('=') > -1 and (items[0] != '#'):
  866.                     ptAPACHESTATUS = items[items.find('"'):]
  867.                     currentSettings['ptAPACHESTATUS'] = ptAPACHESTATUS.strip('"')
  868.  
  869.                 elif items.find('PT_LOAD_ACTION') > -1 and items.find('=') > -1 and (items[0] != '#'):
  870.                     ptACTION = items[items.find('"'):]
  871.                     currentSettings['ptACTION'] = ptACTION.strip('"')
  872.  
  873.                 elif items.find('PT_FORKBOMB') > -1 and items.find('=') > -1 and (items[0] != '#'):
  874.                     ptFORKBOMB = items[items.find('"'):]
  875.                     currentSettings['ptFORKBOMB'] = ptFORKBOMB.strip('"')
  876.  
  877.                 elif items.find('PT_SSHDKILL') > -1 and items.find('=') > -1 and (items[0] != '#'):
  878.                     ptSSHDKILL = items[items.find('"'):]
  879.                     currentSettings['ptSSHDKILL'] = ptSSHDKILL.strip('"')
  880.  
  881.                 elif items.find('PT_SSHDHUNG') > -1 and items.find('=') > -1 and (items[0] != '#'):
  882.                     ptSSHDHUNG = items[items.find('"'):]
  883.                     currentSettings['ptSSHDHUNG'] = ptSSHDHUNG.strip('"')
  884.  
  885.                 elif items.find('PS_INTERVAL') > -1 and items.find('=') > -1 and (items[0] != '#'):
  886.                     psINTERVAL = items[items.find('"'):]
  887.                     currentSettings['psINTERVAL'] = psINTERVAL.strip('"')
  888.  
  889.                 elif items.find('PS_LIMIT') > -1 and items.find('=') > -1 and (items[0] != '#'):
  890.                     psLIMIT = items[items.find('"'):]
  891.                     currentSettings['psLIMIT'] = psLIMIT.strip('"')
  892.  
  893.                 elif items.find('PS_PORTS') > -1 and items.find('=') > -1 and (items[0] != '#'):
  894.                     psPORTS = items[items.find('"'):]
  895.                     currentSettings['psPORTS'] = psPORTS.strip('"')
  896.  
  897.                 elif items.find('PS_DIVERSITY') > -1 and items.find('=') > -1 and (items[0] != '#'):
  898.                     psDIVERSITY = items[items.find('"'):]
  899.                     currentSettings['psDIVERSITY'] = psDIVERSITY.strip('"')
  900.  
  901.                 elif items.find('PS_PERMANENT') > -1 and items.find('=') > -1 and (items[0] != '#'):
  902.                     psPERMANENT = items[items.find('"'):]
  903.                     currentSettings['psPERMANENT'] = psPERMANENT.strip('"')
  904.  
  905.                 elif items.find('PS_BLOCK_TIME') > -1 and items.find('=') > -1 and (items[0] != '#'):
  906.                     psTIME = items[items.find('"'):]
  907.                     currentSettings['psTIME'] = psTIME.strip('"')
  908.  
  909.                 elif items.find('PS_EMAIL_ALERT') > -1 and items.find('=') > -1 and (items[0] != '#'):
  910.                     psALERT = items[items.find('"'):]
  911.                     currentSettings['psALERT'] = psALERT.strip('"')
  912.  
  913.                 elif items.find('UID_INTERVAL') > -1 and items.find('=') > -1 and (items[0] != '#'):
  914.                     uidINTERVAL = items[items.find('"'):]
  915.                     currentSettings['uidINTERVAL'] = uidINTERVAL.strip('"')
  916.  
  917.                 elif items.find('UID_LIMIT') > -1 and items.find('=') > -1 and (items[0] != '#'):
  918.                     uidLIMIT = items[items.find('"'):]
  919.                     currentSettings['uidLIMIT'] = uidLIMIT.strip('"')
  920.  
  921.                 elif items.find('UID_PORTS') > -1 and items.find('=') > -1 and (items[0] != '#'):
  922.                     uidPORTS = items[items.find('"'):]
  923.                     currentSettings['uidPORTS'] = uidPORTS.strip('"')
  924.  
  925.                 elif items.find('AT_ALERT') > -1 and items.find('=') > -1 and (items[0] != '#'):
  926.                     atALERT = items[items.find('"'):]
  927.                     currentSettings['atALERT'] = atALERT.strip('"')
  928.  
  929.                 elif items.find('AT_INTERVAL') > -1 and items.find('=') > -1 and (items[0] != '#'):
  930.                     atINTERVAL = items[items.find('"'):]
  931.                     currentSettings['atINTERVAL'] = atINTERVAL.strip('"')
  932.  
  933.                 elif items.find('AT_NEW') > -1 and items.find('=') > -1 and (items[0] != '#'):
  934.                     atNEW = items[items.find('"'):]
  935.                     currentSettings['atNEW'] = atNEW.strip('"')
  936.  
  937.                 elif items.find('AT_OLD') > -1 and items.find('=') > -1 and (items[0] != '#'):
  938.                     atOLD = items[items.find('"'):]
  939.                     currentSettings['atOLD'] = atOLD.strip('"')
  940.  
  941.                 elif items.find('AT_PASSWD') > -1 and items.find('=') > -1 and (items[0] != '#'):
  942.                     atPASSWD = items[items.find('"'):]
  943.                     currentSettings['atPASSWD'] = atPASSWD.strip('"')
  944.  
  945.                 elif items.find('AT_UID') > -1 and items.find('=') > -1 and (items[0] != '#'):
  946.                     atUID = items[items.find('"'):]
  947.                     currentSettings['atUID'] = atUID.strip('"')
  948.  
  949.                 elif items.find('AT_GID') > -1 and items.find('=') > -1 and (items[0] != '#'):
  950.                     atGID = items[items.find('"'):]
  951.                     currentSettings['atGID'] = atGID.strip('"')
  952.  
  953.                 elif items.find('AT_DIR') > -1 and items.find('=') > -1 and (items[0] != '#'):
  954.                     atDIR = items[items.find('"'):]
  955.                     currentSettings['atDIR'] = atDIR.strip('"')
  956.  
  957.                 elif items.find('AT_SHELL') > -1 and items.find('=') > -1 and (items[0] != '#'):
  958.                     atSHELL = items[items.find('"'):]
  959.                     currentSettings['atSHELL'] = atSHELL.strip('"')
  960.  
  961.                 elif items.find('CLUSTER_SENDTO') > -1 and items.find('=') > -1 and (items[0] != '#'):
  962.                     clusterSENDTO = items[items.find('"'):]
  963.                     currentSettings['clusterSENDTO'] = clusterSENDTO.strip('"')
  964.  
  965.                 elif items.find('CLUSTER_RECVFROM') > -1 and items.find('=') > -1 and (items[0] != '#'):
  966.                     clusterRECVFROM = items[items.find('"'):]
  967.                     currentSettings['clusterRECVFROM'] = clusterRECVFROM.strip('"')
  968.  
  969.                 elif items.find('CLUSTER_MASTER') > -1 and items.find('=') > -1 and (items[0] != '#'):
  970.                     clusterMASTER = items[items.find('"'):]
  971.                     currentSettings['clusterMASTER'] = clusterMASTER.strip('"')
  972.  
  973.                 elif items.find('CLUSTER_NAT') > -1 and items.find('=') > -1 and (items[0] != '#'):
  974.                     clusterNAT = items[items.find('"'):]
  975.                     currentSettings['clusterNAT'] = clusterNAT.strip('"')
  976.  
  977.                 elif items.find('CLUSTER_LOCALADDR') > -1 and items.find('=') > -1 and (items[0] != '#'):
  978.                     clusterLOCALADDR = items[items.find('"'):]
  979.                     currentSettings['clusterLOCALADDR'] = clusterLOCALADDR.strip('"')
  980.  
  981.                 elif items.find('CLUSTER_PORT') > -1 and items.find('=') > -1 and (items[0] != '#'):
  982.                     clusterPORT = items[items.find('"'):]
  983.                     currentSettings['clusterPORT'] = clusterPORT.strip('"')
  984.  
  985.                 elif items.find('CLUSTER_KEY') > -1 and items.find('=') > -1 and (items[0] != '#'):
  986.                     clusterKEY = items[items.find('"'):]
  987.                     currentSettings['clusterKEY'] = clusterKEY.strip('"')
  988.  
  989.                 elif items.find('CLUSTER_BLOCK') > -1 and items.find('=') > -1 and (items[0] != '#'):
  990.                     clusterBLOCK = items[items.find('"'):]
  991.                     currentSettings['clusterBLOCK'] = clusterBLOCK.strip('"')
  992.  
  993.                 elif items.find('CLUSTER_CONFIG') > -1 and items.find('=') > -1 and (items[0] != '#'):
  994.                     clusterCONFIG = items[items.find('"'):]
  995.                     currentSettings['clusterCONFIG'] = clusterCONFIG.strip('"')
  996.  
  997.                 elif items.find('CLUSTER_CHILDREN') > -1 and items.find('=') > -1 and (items[0] != '#'):
  998.                     clusterCHILDREN = items[items.find('"'):]
  999.                     currentSettings['clusterCHILDREN'] = clusterCHILDREN.strip('"')
  1000.  
  1001.                 elif items.find('PORTKNOCKING_LOG') > -1 and items.find('=') > -1 and (items[0] != '#'):
  1002.                     portknockingLOG = items[items.find('"'):]
  1003.                     currentSettings['portknockingLOG'] = portknockingLOG.strip('"')
  1004.  
  1005.                 elif items.find('PORTKNOCKING_ALERT') > -1 and items.find('=') > -1 and (items[0] != '#'):
  1006.                     portknockingALERT = items[items.find('"'):]
  1007.                     currentSettings['portknockingALERT'] = portknockingALERT.strip('"')
  1008.  
  1009.                 elif items.find('LOGSCANNER_INTERVAL') > -1 and items.find('=') > -1 and (items[0] != '#'):
  1010.                     logscannerINTERVAL = items[items.find('"'):]
  1011.                     currentSettings['logscannerINTERVAL'] = logscannerINTERVAL.strip('"')
  1012.  
  1013.                 elif items.find('LOGSCANNER_STYLE') > -1 and items.find('=') > -1 and (items[0] != '#'):
  1014.                     logscannerSTYLE = items[items.find('"'):]
  1015.                     currentSettings['logscannerSTYLE'] = logscannerSTYLE.strip('"')
  1016.  
  1017.                 elif items.find('LOGSCANNER_EMPTY') > -1 and items.find('=') > -1 and (items[0] != '#'):
  1018.                     logscannerEMPTY = items[items.find('"'):]
  1019.                     currentSettings['logscannerEMPTY'] = logscannerEMPTY.strip('"')
  1020.  
  1021.                 elif items.find('LOGSCANNER_LINES') > -1 and items.find('=') > -1 and (items[0] != '#'):
  1022.                     logscannerLINES = items[items.find('"'):]
  1023.                     currentSettings['logscannerLINES'] = logscannerLINES.strip('"')
  1024.  
  1025.                 elif items.find('ST_ENABLE') > -1 and items.find('=') > -1 and (items[0] != '#'):
  1026.                     stENABLE = items[items.find('"'):]
  1027.                     currentSettings['stENABLE'] = stENABLE.strip('"')
  1028.  
  1029.                 elif items.find('ST_IPTABLES') > -1 and items.find('=') > -1 and (items[0] != '#'):
  1030.                     stIPTABLES = items[items.find('"'):]
  1031.                     currentSettings['stIPTABLES'] = stIPTABLES.strip('"')
  1032.  
  1033.                 elif items.find('ST_LOOKUP') > -1 and items.find('=') > -1 and (items[0] != '#'):
  1034.                     stLOOKUP = items[items.find('"'):]
  1035.                     currentSettings['stLOOKUP'] = stLOOKUP.strip('"')
  1036.  
  1037.                 elif items.find('ST_SYSTEM') > -1 and items.find('=') > -1 and (items[0] != '#'):
  1038.                     stSYSTEM = items[items.find('"'):]
  1039.                     currentSettings['stSYSTEM'] = stSYSTEM.strip('"')
  1040.  
  1041.                 elif items.find('ST_MYSQL') > -1 and items.find('=') > -1 and (items[0] != '#'):
  1042.                     stMYSQL = items[items.find('"'):]
  1043.                     currentSettings['stMYSQL'] = stMYSQL.strip('"')
  1044.  
  1045.                 elif items.find('ST_APACHE') > -1 and items.find('=') > -1 and (items[0] != '#'):
  1046.                     stAPACHE = items[items.find('"'):]
  1047.                     currentSettings['stAPACHE'] = stAPACHE.strip('"')
  1048.  
  1049.                 elif items.find('DOCKER') > -1 and items.find('=') > -1 and (items[0] != '#'):
  1050.                     dockerDOCKER = items[items.find('"'):]
  1051.                     currentSettings['dockerDOCKER'] = dockerDOCKER.strip('"')
  1052.  
  1053.                 elif items.find('DOCKER_DEVICE') > -1 and items.find('=') > -1 and (items[0] != '#'):
  1054.                     dockerDEVICE = items[items.find('"'):]
  1055.                     currentSettings['dockerDEVICE'] = dockerDEVICE.strip('"')
  1056.  
  1057.                 elif items.find('DOCKER_NETWORK4') > -1 and items.find('=') > -1 and (items[0] != '#'):
  1058.                     dockerNETWORK4 = items[items.find('"'):]
  1059.                     currentSettings['dockerNETWORK4'] = dockerNETWORK4.strip('"')
  1060.  
  1061.                 elif items.find('DOCKER_NETWORK6') > -1 and items.find('=') > -1 and (items[0] != '#'):
  1062.                     dockerNETWORK6 = items[items.find('"'):]
  1063.                     currentSettings['dockerNETWORK6'] = dockerNETWORK6.strip('"')
  1064.  
  1065.                 elif items.find('IPTABLES') > -1 and items.find('=') > -1 and (items[0] != '#'):
  1066.                     iptablesIPTABLES = items[items.find('"'):]
  1067.                     currentSettings['iptablesIPTABLES'] = iptablesIPTABLES.strip('"')
  1068.  
  1069.                 elif items.find('IPTABLES_SAVE') > -1 and items.find('=') > -1 and (items[0] != '#'):
  1070.                     iptablesSAVE = items[items.find('"'):]
  1071.                     currentSettings['iptablesSAVE'] = iptablesSAVE.strip('"')
  1072.  
  1073.                 elif items.find('IPTABLES_RESTORE') > -1 and items.find('=') > -1 and (items[0] != '#'):
  1074.                     iptablesRESTORE = items[items.find('"'):]
  1075.                     currentSettings['iptablesRESTORE'] = iptablesRESTORE.strip('"')
  1076.  
  1077.                 elif items.find('IP6TABLES') > -1 and items.find('=') > -1 and (items[0] != '#'):
  1078.                     ip6tablesIP6TABLES = items[items.find('"'):]
  1079.                     currentSettings['ip6tablesIP6TABLES'] = ip6tablesIP6TABLES.strip('"')
  1080.  
  1081.                 elif items.find('IP6TABLES_SAVE') > -1 and items.find('=') > -1 and (items[0] != '#'):
  1082.                     ip6tablesSAVE = items[items.find('"'):]
  1083.                     currentSettings['ip6tablesSAVE'] = ip6tablesSAVE.strip('"')
  1084.  
  1085.                 elif items.find('IP6TABLES_RESTORE') > -1 and items.find('=') > -1 and (items[0] != '#'):
  1086.                     ip6tablesRESTORE = items[items.find('"'):]
  1087.                     currentSettings['ip6tablesRESTORE'] = ip6tablesRESTORE.strip('"')
  1088.  
  1089.                 elif items.find('HTACCESS_LOG') > -1 and items.find('=') > -1 and (items[0] != '#'):
  1090.                     htaccessLOG = items[items.find('"'):]
  1091.                     currentSettings['htaccessLOG'] = htaccessLOG.strip('"')
  1092.  
  1093.                 elif items.find('MODSEC_LOG') > -1 and items.find('=') > -1 and (items[0] != '#'):
  1094.                     modsecLOG = items[items.find('"'):]
  1095.                     currentSettings['modsecLOG'] = modsecLOG.strip('"')
  1096.  
  1097.                 elif items.find('SSHD_LOG') > -1 and items.find('=') > -1 and (items[0] != '#'):
  1098.                     sshdLOG = items[items.find('"'):]
  1099.                     currentSettings['sshdLOG'] = sshdLOG.strip('"')
  1100.  
  1101.                 elif items.find('SU_LOG') > -1 and items.find('=') > -1 and (items[0] != '#'):
  1102.                     suLOG = items[items.find('"'):]
  1103.                     currentSettings['suLOG'] = suLOG.strip('"')
  1104.  
  1105.                 elif items.find('FTPD_LOG') > -1 and items.find('=') > -1 and (items[0] != '#'):
  1106.                     ftpdLOG = items[items.find('"'):]
  1107.                     currentSettings['ftpdLOG'] = ftpdLOG.strip('"')
  1108.  
  1109.                 elif items.find('SMTPAUTH_LOG') > -1 and items.find('=') > -1 and (items[0] != '#'):
  1110.                     smtpauthLOG = items[items.find('"'):]
  1111.                     currentSettings['smtpauthLOG'] = smtpauthLOG.strip('"')
  1112.  
  1113.                 elif items.find('POP3D_LOG') > -1 and items.find('=') > -1 and (items[0] != '#'):
  1114.                     pop3dLOG = items[items.find('"'):]
  1115.                     currentSettings['pop3dLOG'] = pop3dLOG.strip('"')
  1116.  
  1117.                 elif items.find('IMAPD_LOG') > -1 and items.find('=') > -1 and (items[0] != '#'):
  1118.                     imapdLOG = items[items.find('"'):]
  1119.                     currentSettings['imapdLOG'] = imapdLOG.strip('"')
  1120.  
  1121.                 elif items.find('IPTABLES_LOG') > -1 and items.find('=') > -1 and (items[0] != '#'):
  1122.                     iptablesLOG = items[items.find('"'):]
  1123.                     currentSettings['iptablesLOG'] = iptablesLOG.strip('"')
  1124.  
  1125.                 elif items.find('SUHOSIN_LOG') > -1 and items.find('=') > -1 and (items[0] != '#'):
  1126.                     suhosinLOG = items[items.find('"'):]
  1127.                     currentSettings['suhosinLOG'] = suhosinLOG.strip('"')
  1128.  
  1129.                 elif items.find('BIND_LOG') > -1 and items.find('=') > -1 and (items[0] != '#'):
  1130.                     bindLOG = items[items.find('"'):]
  1131.                     currentSettings['bindLOG'] = bindLOG.strip('"')
  1132.  
  1133.                 elif items.find('SYSLOG_LOG') > -1 and items.find('=') > -1 and (items[0] != '#'):
  1134.                     syslogLOG = items[items.find('"'):]
  1135.                     currentSettings['syslogLOG'] = syslogLOG.strip('"')
  1136.  
  1137.                 elif items.find('WEBMIN_LOG') > -1 and items.find('=') > -1 and (items[0] != '#'):
  1138.                     webminLOG = items[items.find('"'):]
  1139.                     currentSettings['webminLOG'] = webminLOG.strip('"')
  1140.  
  1141.                 elif items.find('CUSTOM1_LOG') > -1 and items.find('=') > -1 and (items[0] != '#'):
  1142.                     custom1LOG = items[items.find('"'):]
  1143.                     currentSettings['custom1LOG'] = custom1LOG.strip('"')
  1144.  
  1145.                 elif items.find('CUSTOM2_LOG') > -1 and items.find('=') > -1 and (items[0] != '#'):
  1146.                     custom2LOG = items[items.find('"'):]
  1147.                     currentSettings['custom2LOG'] = custom2LOG.strip('"')
  1148.  
  1149.                 elif items.find('CUSTOM3_LOG') > -1 and items.find('=') > -1 and (items[0] != '#'):
  1150.                     custom3LOG = items[items.find('"'):]
  1151.                     currentSettings['custom3LOG'] = custom3LOG.strip('"')
  1152.  
  1153.                 elif items.find('CUSTOM4_LOG') > -1 and items.find('=') > -1 and (items[0] != '#'):
  1154.                     custom4LOG = items[items.find('"'):]
  1155.                     currentSettings['custom4LOG'] = custom4LOG.strip('"')
  1156.  
  1157.                 elif items.find('CUSTOM5_LOG') > -1 and items.find('=') > -1 and (items[0] != '#'):
  1158.                     custom5LOG = items[items.find('"'):]
  1159.                     currentSettings['custom5LOG'] = custom5LOG.strip('"')
  1160.  
  1161.                 elif items.find('CUSTOM6_LOG') > -1 and items.find('=') > -1 and (items[0] != '#'):
  1162.                     custom6LOG = items[items.find('"'):]
  1163.                     currentSettings['custom6LOG'] = custom6LOG.strip('"')
  1164.  
  1165.                 elif items.find('CUSTOM7_LOG') > -1 and items.find('=') > -1 and (items[0] != '#'):
  1166.                     custom7LOG = items[items.find('"'):]
  1167.                     currentSettings['custom7LOG'] = custom7LOG.strip('"')
  1168.  
  1169.                 elif items.find('CUSTOM8_LOG') > -1 and items.find('=') > -1 and (items[0] != '#'):
  1170.                     custom8LOG = items[items.find('"'):]
  1171.                     currentSettings['custom8LOG'] = custom8LOG.strip('"')
  1172.  
  1173.                 elif items.find('CUSTOM9_LOG') > -1 and items.find('=') > -1 and (items[0] != '#'):
  1174.                     custom9LOG = items[items.find('"'):]
  1175.                     currentSettings['custom9LOG'] = custom9LOG.strip('"')
  1176.  
  1177.                 elif items.find('PORTS_pop3d') > -1 and items.find('=') > -1 and (items[0] != '#'):
  1178.                     portspop3d = items[items.find('"'):]
  1179.                     currentSettings['portspop3d'] = portspop3d.strip('"')
  1180.  
  1181.                 elif items.find('PORTS_imapd') > -1 and items.find('=') > -1 and (items[0] != '#'):
  1182.                     portsimapd = items[items.find('"'):]
  1183.                     currentSettings['portsimapd'] = portsimapd.strip('"')
  1184.  
  1185.                 elif items.find('PORTS_htpasswd') > -1 and items.find('=') > -1 and (items[0] != '#'):
  1186.                     portshtpasswd = items[items.find('"'):]
  1187.                     currentSettings['portshtpasswd'] = portshtpasswd.strip('"')
  1188.  
  1189.                 elif items.find('PORTS_symlink') > -1 and items.find('=') > -1 and (items[0] != '#'):
  1190.                     portssymlink = items[items.find('"'):]
  1191.                     currentSettings['portssymlink'] = portssymlink.strip('"')
  1192.  
  1193.                 elif items.find('PORTS_suhosin') > -1 and items.find('=') > -1 and (items[0] != '#'):
  1194.                     portssuhosin = items[items.find('"'):]
  1195.                     currentSettings['portssuhosin'] = portssuhosin.strip('"')
  1196.  
  1197.                 elif items.find('PORTS_cxs') > -1 and items.find('=') > -1 and (items[0] != '#'):
  1198.                     portscxs = items[items.find('"'):]
  1199.                     currentSettings['portscxs'] = portscxs.strip('"')
  1200.  
  1201.                 elif items.find('PORTS_ftpd') > -1 and items.find('=') > -1 and (items[0] != '#'):
  1202.                     portsftpd = items[items.find('"'):]
  1203.                     currentSettings['portsftpd'] = portsftpd.strip('"')
  1204.  
  1205.                 elif items.find('PORTS_webmin') > -1 and items.find('=') > -1 and (items[0] != '#'):
  1206.                     portswebmin = items[items.find('"'):]
  1207.                     currentSettings['portswebmin'] = portswebmin.strip('"')
  1208.  
  1209.                 elif items.find('PORTS_smtpauth') > -1 and items.find('=') > -1 and (items[0] != '#'):
  1210.                     portssmtpauth = items[items.find('"'):]
  1211.                     currentSettings['portssmtpauth'] = portssmtpauth.strip('"')
  1212.  
  1213.                 elif items.find('PORTS_eximsyntax') > -1 and items.find('=') > -1 and (items[0] != '#'):
  1214.                     portseximsyntax = items[items.find('"'):]
  1215.                     currentSettings['portseximsyntax'] = portseximsyntax.strip('"')
  1216.  
  1217.                 elif items.find('PORTS_sshd') > -1 and items.find('=') > -1 and (items[0] != '#'):
  1218.                     portssshd = items[items.find('"'):]
  1219.                     currentSettings['portssshd'] = portssshd.strip('"')
RAW Paste Data