|
|
|
@ -192,7 +192,7 @@ def mainloop(pool):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if settings["block"] == True and settings["running"] == True:
|
|
|
|
|
blockdata_res = pool.apply_async(block.get_blocklist, (config,), callback=blockdata_done)
|
|
|
|
|
blockdata_res = pool.apply_async(block.get_blocklist, (config, settings["appendbad"]), callback=blockdata_done)
|
|
|
|
|
#block.get_blocklist(config)
|
|
|
|
|
settings["block"] = False
|
|
|
|
|
|
|
|
|
@ -302,6 +302,16 @@ if __name__ == '__main__':
|
|
|
|
|
settings["fwll"] = 0
|
|
|
|
|
settings["running"] = config["core"]["autostart"]
|
|
|
|
|
settings["newdata"] = False
|
|
|
|
|
settings["appendbad"] = list()
|
|
|
|
|
tmp = list()
|
|
|
|
|
tmp.append(["N/A", "TCP", "N/A", "N/A", "20.112.52.29", "5000", "N/A", "N/A", "N/A", "N/A", "N/A", "N/A", "N/A"])
|
|
|
|
|
tmp.append(["N/A", "TCP", "N/A", "N/A", "20.81.111.85", "80", "N/A", "N/A", "N/A", "N/A", "N/A", "N/A", "N/A"])
|
|
|
|
|
tmp.append(["N/A", "TCP", "N/A", "N/A", "100.115.71.78", "5000", "N/A", "N/A", "N/A", "N/A", "N/A", "N/A", "N/A"])
|
|
|
|
|
tmp.append(["N/A", "TCP", "N/A", "N/A", "100.115.71.78", "5000", "N/A", "N/A", "N/A", "N/A", "N/A", "N/A", "N/A"])
|
|
|
|
|
tmp.append(["N/A", "TCP", "N/A", "N/A", "174.143.130.167", "443", "N/A", "N/A", "N/A", "N/A", "N/A", "N/A", "N/A"])
|
|
|
|
|
tmp.append(["N/A", "TCP", "N/A", "N/A", "216.47.134.203", "443", "N/A", "N/A", "N/A", "N/A", "N/A", "N/A", "N/A"])
|
|
|
|
|
tmp.append(["N/A", "TCP", "N/A", "N/A", "34.111.83.189", "443", "N/A", "N/A", "N/A", "N/A", "N/A", "N/A", "N/A"])
|
|
|
|
|
settings["appendbad"] = tmp
|
|
|
|
|
# connections blocked, total connections allowed, count of data sent, data recieved, ratio blocked-unblocked
|
|
|
|
|
settings["stats"] = [0, 0, 0, 0, 0.0]
|
|
|
|
|
|
|
|
|
|