From f394746ffc241e0d4b18f19f62b7109c4333a6f5 Mon Sep 17 00:00:00 2001 From: VC Date: Fri, 27 Jun 2025 20:09:37 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=9B=82:=20authorize=20Home=20Assistant=20?= =?UTF-8?q?to=20pull=20from=20OpenEVSE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- roles/firewall/templates/firewall.j2 | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/roles/firewall/templates/firewall.j2 b/roles/firewall/templates/firewall.j2 index b2bc3f7..c0b69cc 100644 --- a/roles/firewall/templates/firewall.j2 +++ b/roles/firewall/templates/firewall.j2 @@ -512,6 +512,18 @@ config rule option target 'ACCEPT' option family 'ipv4' +# Allow Home Assitant to OpenEVSE +config rule + option name 'Allow-FORWARD-Home-Assistant-OpenEVSE' + option src 'dmz' + option src_ip '{{ lookup('dig', 'ha.mateu.be') }}' + list proto 'tcp' + option dest 'iot' + option dest_ip '{{ lookup('dig', 'evse.mateu.be') }}' + option dest_port '80' + option target 'ACCEPT' + option family 'ipv4' + ### IoT Rules ## General Rules # ICMP