| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- {% extends "base.html" %}
- {% block header_title %}Firewall Dashboard{% endblock %}
- {% block section_title %}Firewall Dashboard{% endblock %}
- {% block username %}{{ username }}{% endblock %}
- {% block debug %}
- {{ firewall }}
- {{ firewall_name }}
- {{ firewall_rulenumber }}
- {{ firewall_rule }}
- {% endblock %}
- {% block content %}
- <p class="submenu1">
- <a href="{% url 'firewall:firewall-list' %}">Firewall List</a> |
- <a href="{% url 'firewall:firewall-create' %}">Create new firewall</a> |
- <a href="{% url 'firewall:firewall-addressgroup-list' %}">Address Group</a> |
- <a href="{% url 'firewall:firewall-networkgroup-list' %}">Network Group</a> |
- <a href="{% url 'firewall:firewall-portgroup-list' %}">Port Group</a>
- </p>
- <p class="submenu2">
-
- </p>
- <h2>Edit rule</h2>
- <form action="{% url 'firewall:editrule' firewall_name firewall_rulenumber %}" method="post">
- {% csrf_token %}
-
- <p>
- <label for="alias">rule number</label><br>
- <input type="text" name="rulenumber" id="rulenumber" value="{{ firewall_rulenumber }}" size="5" disabled>
- </p>
-
- <p>
- <label for="hostname">action</label><br>
- <input type="radio" name="action" id="action" value="accept" {% if firewall_rule.action == "accept" %}checked="checked"{% endif %}> accept
- <input type="radio" name="action" id="action" value="drop" {% if firewall_rule.action == "drop" %}checked="checked"{% endif %}> drop
- <input type="radio" name="action" id="action" value="reject" {% if firewall_rule.action == "reject" %}checked="checked"{% endif %}> reject
- </p>
- <p>
- <label for="hostname">protocol</label><br>
- <input type="radio" name="protocol" id="protocol" value="tcp" {% if firewall_rule.protocol == "tcp" %}checked="checked"{% endif %}> tcp
- <input type="radio" name="protocol" id="protocol" value="udp" {% if firewall_rule.protocol == "udp" %}checked="checked"{% endif %}> udp
- </p>
-
- <p>
- <label for="alias">destination port</label><br>
- <input type="text" name="destinationport" id="destinationport" value="{{ firewall_rule.destination.port }}" size="5">
- </p>
-
- <p>
- <label for="alias">source port</label><br>
- <input type="text" name="sourceport" id="sourceport" value="{{ firewall_rule.source.port }}" size="5">
- </p>
-
-
- <input type="submit" value="Edit Rule">
- </form>
-
- {% endblock %}
|