summaryrefslogtreecommitdiff
path: root/data/templates/conntrackd/conntrackd.op-mode.tmpl
blob: 82a4b09adf2c9fc596b6dd030934c783aa88dc18 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
Source                                           Destination                                      Protocol
{% for parsed in data if parsed.flow is defined and parsed.flow.meta is defined %}
{%   for key in parsed.flow.meta %}
{%     if key['@direction'] == 'original' %}
{%       set saddr    = key.layer3.src | bracketize_ipv6 %}
{%       set sport    = key.layer4.sport %}
{%       set daddr    = key.layer3.dst | bracketize_ipv6 %}
{%       set dport    = key.layer4.dport %}
{%       set protocol = key.layer4['@protoname'] %}
{{ "%-48s" | format(saddr ~ ':' ~ sport) }} {{ "%-48s" | format(daddr ~ ':' ~ dport) }} {{ protocol }}
{%     endif %}
{%   endfor %}
{% endfor %}