diff --git a/conntrackt/templates/conntrackt/entity_iptables.html b/conntrackt/templates/conntrackt/entity_iptables.html --- a/conntrackt/templates/conntrackt/entity_iptables.html +++ b/conntrackt/templates/conntrackt/entity_iptables.html @@ -1,3 +1,4 @@ +{% load conntrackt %} # iptables rules generated by conntrackt for {{entity}} *filter :INPUT ACCEPT [0:0] @@ -9,7 +10,7 @@ # {{communication.description}} {% endif %} {% endifchanged %} -iptables -A INPUT -s {{communication.source.address}}/{{communication.source.netmask}} -p {{communication.protocol|lower}} -m {{communication.protocol|lower}} --dport {{communication.port}} -j ACCEPT +{% iptables communication %} {% endfor %} {% endfor %} :FORWARD ACCEPT [0:0]