Changeset - 5a89fb29aaf4
[Not reviewed]
default
0 1 0
Branko Majic (branko) - 11 years ago 2013-03-16 18:26:39
branko@majic.rs
Just fixing some indentations.
1 file changed with 7 insertions and 6 deletions:
0 comments (0 inline, 0 general)
conntrackt/templates/conntrackt/entity_iptables.html
Show inline comments
 
# iptables rules generated by conntrackt for {{entity}}
 
*filter
 
:INPUT ACCEPT [0:0]
 
{% for interface in entity.interface_set.all %}{% for communication in interface.destination_set.all %}
 
{% ifchanged communication.description %}
 
{% for interface in entity.interface_set.all %}
 
  {% for communication in interface.destination_set.all %}
 
    {% ifchanged communication.description %}
 

	
 
{% if communication.description %}
 
      {% if communication.description %}
 
# {{communication.description}}
 
{% endif %}
 
{% endifchanged %}
 
      {% 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
 
{% endfor %}
 
  {% endfor %}
 
{% endfor %}
 
:FORWARD ACCEPT [0:0]
 
:OUTPUT ACCEPT [0:0]
0 comments (0 inline, 0 general)