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