Statistics
| Branch: | Tag: | Revision:

root / templates / rule_action.txt @ 66e55eba

History | View | Annotate | Download (1.8 kB)

1 370ce61c Leonidas Poulopoulos
{% load tofqdn %}{% ifequal action 'expires' %}Rule {{route.name}} expires {% ifequal expiration_days 0 %}today{% else%}in {{expiration_days}} day{{ expiration_days|pluralize }}{% endifequal %}{% else %}A new rule {{action}} job has spawned
2 370ce61c Leonidas Poulopoulos
3 370ce61c Leonidas Poulopoulos
Peer: {{route.applier.get_profile.peer.peer_name}}
4 370ce61c Leonidas Poulopoulos
User {{route.applier.username}} requested the {{action}} of the following rule from address {{address}} {% if address|tofqdn %}({{address|tofqdn}}){% endif %}:
5 370ce61c Leonidas Poulopoulos
6 370ce61c Leonidas Poulopoulos
Rule name: {{route.name}}{% endifequal %}
7 370ce61c Leonidas Poulopoulos
8 370ce61c Leonidas Poulopoulos
Match Statements:
9 370ce61c Leonidas Poulopoulos
* Source Address: {{route.source}}
10 370ce61c Leonidas Poulopoulos
* Destination Address: {{route.destination}}
11 370ce61c Leonidas Poulopoulos
* Protocol: {% if route.protocol.all %}{% for protocol in route.protocol.all %}{{ protocol }}{% if not forloop.last %}, {% endif %}{% endfor %}{% else %}any{% endif %}
12 370ce61c Leonidas Poulopoulos
* Ports: {% if route.sourceport.all or route.destinationport.all %}Defined by source/destination ports{% else %}{% if route.port.all %}{% for port in route.port.all %}{{ port }}{% if not forloop.last %}, {% endif %}{% endfor %}{% else %}any{% endif %}{% endif %}
13 370ce61c Leonidas Poulopoulos
* Source Ports: {% if route.port.all %}same as ports{% else %}{% if route.sourceport.all %}{% for port in route.sourceport.all %}{{ port }}{% if not forloop.last %}, {% endif %}{% endfor %}{% else %}any{% endif %}{% endif %}
14 370ce61c Leonidas Poulopoulos
* Destination Ports: {% if route.port.all %}same as ports{% else %}{% if route.destinationport.all %}{% for port in route.destinationport.all %}{{ port }}{% if not forloop.last %}, {% endif %}{% endfor %}{% else %}any{% endif %}{% endif %}
15 370ce61c Leonidas Poulopoulos
16 370ce61c Leonidas Poulopoulos
Then Actions:
17 370ce61c Leonidas Poulopoulos
* Action:{% for then in route.then.all %}{{ then }}{% if not forloop.last %}, {% endif %}{% endfor %}
18 370ce61c Leonidas Poulopoulos
19 370ce61c Leonidas Poulopoulos
Comments: {% if route.comments %}{{route.comments}}{% else %}-{% endif %}
20 370ce61c Leonidas Poulopoulos
21 370ce61c Leonidas Poulopoulos
Expires: {% ifequal action 'removal' %}Now, removal requested{%else%}{{route.expires}}{% endifequal %}
22 370ce61c Leonidas Poulopoulos
23 370ce61c Leonidas Poulopoulos
Rule url: {{url}}