{% extends "dsoc_canvas/base.html" %} {% block title %}Flowspec Rules — DSOC{% endblock %} {% block content %}
| Rule Name | Dst Prefix | Src Prefix | Protocol | Dst Port | Action | Community | Status | Created | |
|---|---|---|---|---|---|---|---|---|---|
| {{ rule.rule_name }} | {{ rule.destination_prefix or '—' }} | {{ rule.source_prefix or '—' }} | {{ rule.protocol or 'any' }} |
{{ rule.destination_port or '—' }} | {% set act = rule.action | lower | replace(' ', '-') %} {% if act == 'drop' %} drop {% elif act == 'rate-limit' %} rate-limit {% elif act == 'redirect' %} redirect {% elif act == 'mark' %} mark {% elif act == 'sample' %} sample {% else %} {{ rule.action }} {% endif %} | {{ rule.community or '—' }} | {% set st = rule.status | lower %} {% if st == 'active' %} active {% elif st == 'withdrawn' %} withdrawn {% elif st == 'draft' %} draft {% else %} {{ rule.status }} {% endif %} | {{ rule.created_at | ts }} | {% if rule.status | lower == 'active' %} {% endif %} |
| No flowspec rules yet — add your first rule above. | |||||||||