From db03116c630c251854d2ee117e109e558340676b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lauri=20V=C3=B5sandi?= Date: Fri, 25 Jun 2021 18:20:44 +0000 Subject: [PATCH] Make sure Mongo ports are open before any Mongo interaction takes place --- firewall.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/firewall.py b/firewall.py index ec5fc8f..3f1a56c 100755 --- a/firewall.py +++ b/firewall.py @@ -125,6 +125,8 @@ async def update_firewall_rules(): os.system("ipset create -exist -quiet ipset4-mongo-replicas hash:ip") os.system("ipset create -exist -quiet ipset6-mongo-replicas hash:ip family inet6") + apply_firewall_rules(disabled=True) + db = AsyncIOMotorClient(MONGO_URI).get_default_database() q = {