<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title>Mikrotik.moscow [тема: Заблокировать доступ к определенным веб-сайтам.]</title>
		<link>http://mikrotik.moscow</link>
		<description>Новое в теме Заблокировать доступ к определенным веб-сайтам. форума RouterOS на сайте Mikrotik.moscow [mikrotik.moscow]</description>
		<language>ru</language>
		<docs>http://backend.userland.com/rss2</docs>
		<pubDate>Thu, 20 Aug 2026 09:52:12 -0400</pubDate>
		<item>
			<title>Заблокировать доступ к определенным веб-сайтам.</title>
			<description><![CDATA[<b><a href="http://mikrotik.moscow/forum/forum57/60789-zablokirovat-dostup-k-opredelennym-veb_saytam./message231882">Заблокировать доступ к определенным веб-сайтам.</a></b> <i>RouterOS</i> в форуме <a href="http://mikrotik.moscow/forum/forum57/">RouterOS</a>. <br />
			1. Перехватывать все DNS-запросы: /ip firewall nat add action=redirect chain=dstnat comment=DNS dst-port=53 protocol=tcp to-ports=53 add action=redirect chain=dstnat dst-port=53 protocol=udp to-ports=53 /ip firewall filter add chain=forward dst-address-list=restricted action=drop 2. Написать скрипт и запланировать его запуск, скажем, каждые 30 секунд: foreach i in=[/ip dns cache find] do={ :local bNew “true”; :local NameAddress [/ip dns cache all get $i name] ; :put $NameAddress; :if (([:find $NameAddress “freedownload”] != 0)) do={ :local tempAddress [/ip dns cache get $i address] ; :put $tempAddress; если список адресов пуст, не проверять :if ( [/ip firewall address-list find ] = “”) do={ :log info (“added entry: $[/ip dns cache get $i name] IP $tempAddress”); /ip firewall address-list add address=$tempAddress list=restricted comment=$NameAddress; } else={ :foreach j in=[/ip firewall address-list find ] do={ :if ( [/ip firewall address-list get $j address] = $tempAddress ) do={ :set bNew “false”; } } :if ( $bNew = “true” ) do={ :log info (“added entry: $[/ip dns cache get $i name] IP $tempAddress”); /ip firewall address-list add address=$tempAddress list=restricted comment=$NameAddress; } } } <br />
			<i>01.09.2012 11:06:00, perspetolis.</i>]]></description>
			<link>http://mikrotik.moscow/forum/forum57/60789-zablokirovat-dostup-k-opredelennym-veb_saytam./message231882</link>
			<guid>http://mikrotik.moscow/forum/forum57/60789-zablokirovat-dostup-k-opredelennym-veb_saytam./message231882</guid>
			<pubDate>Sat, 01 Sep 2012 11:06:00 -0400</pubDate>
			<category>RouterOS</category>
		</item>
	</channel>
</rss>
