Changeset - da362b930a68
[Not reviewed]
default
0 2 0
Branko Majic (branko) - 11 years ago 2013-05-25 11:44:14
branko@majic.rs
Changed default policy for generated iptables rules for INPUT and FORWARD chain to DROP. Changed administration link to point to Conntrackt-specific admin page.
2 files changed with 3 insertions and 3 deletions:
0 comments (0 inline, 0 general)
conntrackt/templates/conntrackt/entity_iptables.html
Show inline comments
 
{% load conntrackt_tags %}
 
# iptables rules generated by conntrackt for {{entity}}
 
*filter
 
:INPUT ACCEPT [0:0]
 
:INPUT DROP [0:0]
 
{% for interface in entity.interface_set.all %}
 
  {% for communication in interface.destination_set.all %}
 
    {% ifchanged communication.description %}
 

	
 
      {% if communication.description %}
 
# {{communication.description}}
 
@@ -12,13 +12,13 @@
 
# Communications without desecription.
 
      {% endif %}
 
    {% endifchanged %}
 
{% iptables communication %}
 
  {% endfor %}
 
{% endfor %}
 
:FORWARD ACCEPT [0:0]
 
:FORWARD DROP [0:0]
 
:OUTPUT ACCEPT [0:0]
 
COMMIT
 
*nat
 
:PREROUTING ACCEPT [0:0]
 
:INPUT ACCEPT [0:0]
 
:OUTPUT ACCEPT [0:0]
conntrackt/templates/conntrackt/template.html
Show inline comments
 
@@ -28,13 +28,13 @@
 
          </button>
 
          {% block header_title %}{% html_link 'Conntrackt' 'index' class="brand" %}{% endblock %}
 
          <div class="nav-collapse collapse">
 
              {% block header %}
 
            <ul class="nav">
 
              <li class="{% active_link 'index' %}"><a href="{% url "index" %}"><i class="icon-home icon-white"></i> Main Page</a></li>
 
              <li class="{% active_link 'admin' %}"><a href="{% url "admin:index" %}"><i class="icon-wrench icon-white"></i> Administration</a></li>
 
              <li class="{% active_link 'admin' %}"><a href="{% url "admin:app_list" "conntrackt" %}"><i class="icon-wrench icon-white"></i> Administration</a></li>
 
            </ul>
 
            <ul class="nav pull-right">
 
              {% if user.is_anonymous %}
 
              <li>{% html_link '<i class="icon-user icon-white"></i> Log-in' 'login' get="next="|add:request.path %}</li> %}
 
              {% else %}
 
              <li><a href=""><i class="icon-user icon-white"></i> {{user}}</a></li>
0 comments (0 inline, 0 general)