From 452bf9bad6e670290f8616bd8633b4f419231843 Mon Sep 17 00:00:00 2001 From: Arya Kiran Date: Wed, 10 Jan 2024 18:05:41 +0530 Subject: [PATCH] allow all in from bogon --- all/playbook.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/all/playbook.yaml b/all/playbook.yaml index ab06ce8..1a3db1f 100644 --- a/all/playbook.yaml +++ b/all/playbook.yaml @@ -232,6 +232,16 @@ rule: allow interface: wg0 direction: in + # For some reason in order for a docker container to connect to postgres on host it needs this + - name: Allow all in from bogon ranges + community.general.ufw: + rule: allow + src: "{{ item }}" + direction: in + loop: + - 10.0.0.0/8 + - 172.16.0.0/12 + - 192.168.0.0/16 - name: Deny rules community.general.ufw: rule: allow