summaryrefslogtreecommitdiff
path: root/data/templates/conntrackd/conntrackd.op-mode.j2
blob: 82f7e2859da8edc4c1c209b60a8d9f929a8f5fb8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
Source                                           Destination                                      Protocol
{% for parsed in data if parsed.flow.meta is vyos_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 %}