commit | 629d2bb811ea2854cf863fab6f180f3dca24da17 | [log] [tgz] |
---|---|---|
author | Skyler Grey <skyler3665@gmail.com> | Fri May 12 00:28:27 2023 +0000 |
committer | Skyler Grey <skyler3665@gmail.com> | Fri May 12 00:28:27 2023 +0000 |
tree | c205dfd4a95af288ff8a49b33f644989f6858d6d | |
parent | 6f0f43d2af2b9d7d845e39e900943687868a5fcf [diff] |
Allow hopescaramels to access mongo through the firewall
diff --git a/modules/mongodb.nix b/modules/mongodb.nix index b694468..c6d8fe9 100644 --- a/modules/mongodb.nix +++ b/modules/mongodb.nix
@@ -5,4 +5,6 @@ services.mongodb.bind_ip = "0.0.0.0"; services.mongodb.initialRootPassword = "changeme"; services.mongodb.package = pkgs.mongodb-6_0; + + networking.firewall.extraCommands = "iptables -A INPUT -s 192.168.0.4 -p tcp --dport 27017 -j ACCEPT"; }