|
@@ -4,7 +4,7 @@
|
|
|
{% block section_title %}Firewall Dashboard{% endblock %}
|
|
|
|
|
|
{% block debug %}
|
|
|
-{{ firewall_all }}
|
|
|
+{{ firewall }}
|
|
|
{{ firewall_name }}
|
|
|
{% endblock %}
|
|
|
|
|
@@ -14,16 +14,21 @@
|
|
|
|
|
|
{% if firewall %}
|
|
|
<table border="1" width="100%">
|
|
|
- <tr><th>name</th><th>description</th><th>action</th></tr>
|
|
|
+ <tr><th>rule #</th><th>description</th><th>protocol</th><th>destination port</th><th>source port</th><th>action</th></tr>
|
|
|
|
|
|
{% for key, value in firewall.items %}
|
|
|
- <tr>
|
|
|
+
|
|
|
{% for ifkey, ifvalue in value.items %}
|
|
|
+ <tr>
|
|
|
<td><a href="{% url 'firewall:show' ifkey %}">{{ ifkey }}</a></td>
|
|
|
<td>{{ ifvalue.description }}</td>
|
|
|
- <td>delete</td>
|
|
|
+ <td>{{ ifvalue.protocol }}</td>
|
|
|
+ <td>{{ ifvalue.destination.port }}</td>
|
|
|
+ <td>{{ ifvalue.source.port }}</td>
|
|
|
+ <td>{{ ifvalue.action }}</td>
|
|
|
+ </tr>
|
|
|
{% endfor %}
|
|
|
- </tr>
|
|
|
+
|
|
|
{% endfor %}
|
|
|
|
|
|
</table>
|