root / templates / rule_action.txt @ 51ce199a
History | View | Annotate | Download (1.9 kB)
1 |
{% 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 |
|
3 |
Peer: {{route.applier.get_profile.peer.peer_name}} |
4 |
User {{route.applier.username}} requested the {{action}} of the following rule from address {{address}} {% if address|tofqdn %}({{address|tofqdn}}){% endif %}: |
5 |
|
6 |
Rule name: {{route.name}}{% endifequal %} |
7 |
|
8 |
Match Statements: |
9 |
* Source Address: {{route.source}} |
10 |
* Destination Address: {{route.destination}} |
11 |
* Protocol: {% if route.protocol.all %}{% for protocol in route.protocol.all %}{{ protocol }}{% if not forloop.last %}, {% endif %}{% endfor %}{% else %}any{% endif %} |
12 |
* 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 |
* 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 |
* 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 |
* Fragment Types: {% if route.fragmenttype.all %}{% for fragment in route.fragmenttype.all %}{{ fragment }}{% if not forloop.last %}, {% endif %}{% endfor %}{% else %}-{% endif %} |
16 |
|
17 |
|
18 |
Then Actions: |
19 |
* Action:{% for then in route.then.all %}{{ then }}{% if not forloop.last %}, {% endif %}{% endfor %} |
20 |
|
21 |
Comments: {% if route.comments %}{{route.comments}}{% else %}-{% endif %} |
22 |
|
23 |
Expires: {% ifequal action 'removal' %}Now, removal requested{%else%}{{route.expires}}{% endifequal %} |
24 |
|
25 |
Rule url: {{url}} |
26 |
|