- Updated `evofw-firewall.sh` and related scripts to replace `policy_mode` with `default_action`, enhancing clarity and consistency in policy management. - Adjusted agent routes and evaluation logic to accommodate the new default action structure, ensuring backward compatibility with legacy modes. - Enhanced tests to validate the new default action behavior and its integration within the agent policy framework. - Refactored related components in the web interface to align with the updated policy handling, improving user experience and reducing confusion around policy modes.
1.1 KiB
1.1 KiB
Интеграция EvoBGP → EvoFirewall
EvoFirewall использует EvoBGP как источник префиксов для списков типа evobgp_community.
Настройка
В UI Settings или settings table:
evobgp_api_url— base URL EvoBGP APIevobgp_api_token— API key (viewer+ /bgp:directories:read)
Refresh списка
При refresh списка evobgp_community:
GET {api}/v1/communities/{id}/prefixes?limit=5000- Ответ:
{ items: [{ prefix }], prefixes: string[], has_more, next_cursor } - Entries заменяются; generation агентов с правилами на этот list бампится
Autocomplete в UI
GET /api/v1/integrations/evobgp/communities — proxy к EvoBGP GET /v1/communities?limit=200 (нужны settings выше).
Список
Создайте IP list type evobgp_community с config.community_id. Cron / кнопка Refresh обновляет entries.
Firewall-подсистема в EvoBGP удалена (hard cutover) — клиенты переустанавливаются на EvoFirewall agents.