Исходные данные:
Zabbix Server: 65.21.73.59
SNMP: v2c
Порт: UDP/161
/ip firewall address-list add \
list=zabbix-snmp \
address=65.21.73.59 \
comment="Zabbix Server"
/snmp community add \
name="<СЛУЧАЙНЫЙ_COMMUNITY>" \
addresses=65.21.73.59/32 \
security=none \
read-access=yes \
write-access=no
/snmp set enabled=yes contact="admin" location="Balzaka68"
/ip firewall filter add \
chain=input \
action=accept \
protocol=udp \
dst-port=161 \
src-address-list=zabbix-snmp \
comment="SNMP from Zabbix" \
place-before=[find where comment="other DROP!!!!"]
/snmp community remove [find name="public"]
/snmp print
/snmp community print>
/ip firewall address-list print where list=zabbix-snmp
/ip firewall filter print
Ожидаемое состояние:
SNMP enabled: yes Community: отдельный, read-only Адрес community: 65.21.73.59/32 Firewall: UDP/161 разрешён только от Zabbix Server Community public: отсутствует SSH-пользователь MikroTik для работы Zabbix не нужен. Zabbix подключается к маршрутизатору через SNMP.