bazovaja_zaschischaem_mikrotik_ot_vneshnix_atak_mikrotik

Различия

Показаны различия между двумя версиями страницы.

Ссылка на это сравнение

Предыдущая версия справа и слева Предыдущая версия
Следующая версия
Предыдущая версия
bazovaja_zaschischaem_mikrotik_ot_vneshnix_atak_mikrotik [2023/11/04 20:17]
tro
bazovaja_zaschischaem_mikrotik_ot_vneshnix_atak_mikrotik [2023/11/05 10:10] (текущий)
tro
Строка 6: Строка 6:
 add action=drop chain=input comment=Ping_Drop in-interface=ether1 protocol=icmp add action=drop chain=input comment=Ping_Drop in-interface=ether1 protocol=icmp
 </code> </code>
 +2. Организовываем ловушку от перебора портов на доступ к устройству.
 +<code>
 +/ip firewall filter
 +add action=add-src-to-address-list address-list=perebor_portov_drop chain=input comment=Perebor_portov_add_list dst-port=98 in-interface=ether1 log=yes log-prefix=Attack protocol=tcp
  
 +add action=drop chain=input comment=Perebor_portov_list_drop  in-interface=ether1 protocol=tcp src-address-list=perebor_portov_drop
 +</code>
 +3. Блокируем BOGON-сети.
 +<code>
 +/ip firewall address-list
 +add address=0.0.0.0/8 disabled=no list=BOGON
 +add address=10.0.0.0/8 disabled=no list=BOGON
 +add address=100.64.0.0/10 disabled=no list=BOGON
 +add address=127.0.0.0/8 disabled=no list=BOGON
 +add address=169.254.0.0/16 disabled=no list=BOGON
 +add address=172.16.0.0/12 disabled=no list=BOGON
 +add address=192.0.0.0/24 disabled=no list=BOGON
 +add address=192.0.2.0/24 disabled=no list=BOGON
 +add address=192.168.0.0/16 disabled=no list=BOGON
 +add address=198.18.0.0/15 disabled=no list=BOGON
 +add address=198.51.100.0/24 disabled=no list=BOGON
 +add address=203.0.113.0/24 disabled=no list=BOGON
 +add address=224.0.0.0/4 disabled=no list=BOGON
 +add address=240.0.0.0/4 disabled=no list=BOGON
 +
 +/ip firewall filter
 +add action=drop chain=input comment=Bogon_Wan_Drop in-interface=ether1 src-address-list=BOGON
 +</code>
 +4. Блокируем атаки на порт 53 (DNS)
 +<code>
 +/ip firewall filter
 +
 +add action=drop chain=input comment=drop_ddos_dns_port  in-interface=ether1 protocol=udp dst-port=53
 +</code>
 +5. Разрешаем все зависимые подключения
 +<code>
 +/ip firewall filter
 +
 +add chain=input comment=Related_Wan_Accept connection-state=related
 +</code>
 +6. Блокируем все входящие соединения с WAN
 +<code>
 +/ip firewall filter
 +
 +add action=drop chain=input comment=Drop_all_WAN in-interface=ether1
 +</code>
  • /sites/data/attic/bazovaja_zaschischaem_mikrotik_ot_vneshnix_atak_mikrotik.1699129046.txt.gz
  • Последнее изменение: 2023/11/04 20:17
  • tro