{"id":334796,"date":"2022-06-21T15:01:01","date_gmt":"2022-06-21T15:01:01","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=334796"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=334796","title":{"rendered":"<span>\u041e\u0431\u0445\u043e\u0434 \u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043e\u043a \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e BGP \u0438\u043c\u0435\u044f VPN \u043d\u0430 VPS<\/span>"},"content":{"rendered":"<div><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u041f\u0440\u0438\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e \u0425\u0430\u0431\u0440\u0430\u0432\u0447\u0430\u043d\u0435!<\/p>\n<p>\u0414\u043e\u043b\u0433\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b \u0441\u0445\u0435\u043c\u0443 <a href=\"https:\/\/habr.com\/ru\/post\/359268\/\" rel=\"noopener noreferrer nofollow\">\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 BGP \u0434\u043b\u044f \u043e\u0431\u0445\u043e\u0434\u0430 \u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043e\u043a, \u0432\u0435\u0440\u0441\u0438\u044f 2, \u00ab\u043d\u0435 \u0434\u0443\u043c\u0430\u0442\u044c\u00bb<\/a>. \u041d\u043e \u0431\u044b\u043b\u0438 \u043c\u043e\u043c\u0435\u043d\u0442\u044b \u043d\u0435 \u0443\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u044e\u0449\u0438\u0435 \u043c\u0435\u043d\u044f.<\/p>\n<p>\u0417\u0430 \u043e\u0441\u043d\u043e\u0432\u0443 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u043e\u0433\u043e \u043c\u043d\u043e\u044e \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u0431\u044b\u043b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d \u0441\u043a\u0440\u0438\u043f\u0442<a class=\"mention\" href=\"\/users\/furriest\">@Furriest<\/a>, \u0437\u0430 \u0447\u0442\u043e \u0435\u043c\u0443 \u043e\u0433\u0440\u043e\u043c\u043d\u043e\u0435 \u0447\u0435\u043b\u043e\u0432\u0435\u0447\u0435\u0441\u043a\u043e\u0435 \u0441\u043f\u0430\u0441\u0438\u0431\u043e!<\/p>\n<p>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0443 VPS\/VPN \u043c\u043e\u0436\u043d\u043e \u0441\u043c\u0435\u043b\u043e \u0431\u0440\u0430\u0442\u044c \u0438\u0437 \u043c\u0430\u0442\u0435\u0440\u0438\u043d\u0441\u043a\u043e\u0439 \u0442\u0435\u043c\u044b, \u0437\u0434\u0435\u0441\u044c \u0432\u044b\u043b\u043e\u0436\u0443 \u0442\u043e\u043b\u044c\u043a\u043e \u0441\u043a\u0440\u0438\u043f\u0442.<\/p>\n<p>&#171;\u041f\u043e\u0447\u0435\u043c\u0443 \u043d\u0435 \u0432\u043d\u0435\u0441\u0443 \u043d\u0443\u0436\u043d\u044b\u0435 \u043c\u043d\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u043d\u0430 \u0440\u043e\u0443\u0442\u0435\u0440\u0435?&#187; &#8212; \u0441\u043f\u0440\u043e\u0441\u0438\u0442\u0435 \u0432\u044b. &#171;\u041f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0443 \u043c\u0435\u043d\u044f \u0438\u0445 \u043d\u0430 \u0442\u0435\u043a\u0443\u0449\u0438\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u0447\u0435\u0442\u044b\u0440\u0435 \u0438, \u043f\u0440\u0430\u0432\u0438\u0442\u044c \u043d\u0430 \u043a\u0430\u0436\u0434\u043e\u043c \u043b\u0435\u043d\u044c&#187;. \u0410 \u043b\u0435\u043d\u044c \u043a\u0430\u043a \u0432\u044b \u0437\u043d\u0430\u0435\u0442\u0435 &#8212; \u0434\u0432\u0438\u0433\u0430\u0442\u0435\u043b\u044c \u043f\u0440\u043e\u0433\u0440\u0435\u0441\u0441\u0430.<\/p>\n<pre><code class=\"bash\">#!\/bin\/bash  pushd list wget -N https:\/\/antifilter.download\/list\/subnet.lst wget -N https:\/\/antifilter.download\/list\/ip.lst #wget -N https:\/\/antifilter.download\/list\/ipresolve.lst wget -N https:\/\/community.antifilter.download\/list\/community.lst wget -N https:\/\/raw.githubusercontent.com\/SecOps-Institute\/FacebookIPLists\/master\/facebook_ipv4_cidr_blocks.lst  popd  old=$(cat  \/tmp\/lstmd5.txt); new=$(cat list\/*.lst | md5sum | head -c 32);  if [ \"$old\" != \"$new\" ] then  #main     cat list\/ip.lst | sed -r -e 's\/^[0-9]+.[0-9]+.[0-9]+.[0-9]+$\/&amp;\\\/32\/' -e 's\/.*\/route &amp; reject;\/' > \/tmp\/ip.txt     cat list\/subnet.lst | sed 's\/.*\/route &amp; reject;\/' >> \/tmp\/ip.txt     cat list\/facebook_ipv4_cidr_blocks.lst | sed 's\/.*\/route &amp; reject;\/' >> \/tmp\/ip.txt #    cat list\/ipresolve.lst | sed -r -e 's\/^[0-9]+.[0-9]+.[0-9]+.[0-9]+$\/&amp;\\\/32\/' -e 's\/.*\/route &amp; reject;\/' >> \/tmp\/ip.txt  #community     cat list\/community.lst | sed -r -e 's\/^[0-9]+.[0-9]+.[0-9]+.[0-9]+$\/&amp;\\\/32\/' -e 's\/.*\/route &amp; reject;\/' >> \/tmp\/ip.txt  #their     cat list\/their.lst | sed -r -e 's\/^[0-9]+.[0-9]+.[0-9]+.[0-9]+$\/&amp;\\\/32\/' -e 's\/.*\/route &amp; reject;\/' >> \/tmp\/ip.txt  #exclude     for a in `cat exclude.txt`; do sed -i -e \"\/$a\/d\" \/tmp\/ip.txt; done #unique     sort -u \/tmp\/ip.txt > \/etc\/bird\/ip.txt      \/usr\/sbin\/birdc configure;     logger \"RKN list reconfigured\";      echo $new >  \/tmp\/lstmd5.txt; fi<\/code><\/pre>\n<p>19, 25 \u0438 28 \u0441\u0442\u0440\u043e\u043a\u0438: \u0412 \u0441\u043f\u0438\u0441\u043a\u0435 ip.lst \u043c\u044b \u0438\u043c\u0435\u0435\u043c IP \u0430\u0434\u0440\u0435\u0441\u0430 \u0431\u0435\u0437 \u0443\u043a\u0430\u0437\u0430\u043d\u0438\u044f \u043f\u0440\u0435\u0444\u0438\u043a\u0441\u0430. \u0422\u0430\u043a\u043e\u0439 \u0444\u043e\u0440\u043c\u0430\u0442 bird \u043d\u0435 \u043a\u0443\u0448\u0430\u0435\u0442. \u0410\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u043e \u0435\u0441\u043b\u0438 \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0441\u0432\u043e\u0439 \u0441\u043f\u0438\u0441\u043e\u043a. \u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u0435\u0441\u0442\u044c \u043b\u0438 \u043f\u0440\u0435\u0444\u0438\u043a\u0441, \u0435\u0441\u043b\u0438 \u043d\u0435\u0442\u0443 &#8212; \u0434\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \/32<\/p>\n<p>31 \u0441\u0442\u0440\u043e\u043a\u0430: \u0443\u0434\u0430\u043b\u044f\u0435\u043c \u0438\u0437 \u0444\u0438\u043d\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u0430\u0434\u0440\u0435\u0441\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u044b \u043d\u0435 \u0445\u043e\u0442\u0438\u043c \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c. \u042f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e \u0434\u043b\u044f \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u044f 1.1.1.1 \u0438\u0437 community.lst, \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0441\u0442\u0440\u043e\u043a\u043e\u0439 \u043f\u043e \u043f\u0440\u043e\u0449\u0435, \u043d\u043e \u043d\u0430 \u0431\u0443\u0434\u0443\u0449\u0435\u0435 \u0435\u0441\u043b\u0438 \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f \u0438\u0441\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0435 \u0430\u0434\u0440\u0435\u0441\u043e\u0432\/\u0441\u0435\u0442\u0435\u0439 \u0441\u0434\u0435\u043b\u0430\u043b \u043e\u0434\u0438\u043d \u0440\u0430\u0437. \u041f\u0440\u043e\u0441\u0442\u043e \u0434\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u0438\u0445 \u043f\u043e\u0441\u0442\u0440\u043e\u0447\u043d\u043e \u0432 \u0444\u0430\u0439\u043b exclude.txt<\/p>\n<p>\u041f\u043e\u0438\u0441\u043a \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u043f\u043e \u043a\u0443\u0441\u043a\u0443 \u0442\u0435\u043a\u0441\u0442\u0430. \u0415\u0441\u043b\u0438 \u0432\u043f\u0438\u0441\u0430\u0442\u044c &#171;1.1&#187; \u0432 exclude.txt, \u0442\u043e \u0443\u0434\u0430\u043b\u0438\u0442\u0441\u044f \u0438 1.1.1.1 \u0438 <strong>1.1<\/strong>79.201.18\/32 \u0438 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u043e\u0435 \u043f\u043e\u0434\u043e\u0431\u043d\u043e\u0435. \u0412\u043f\u0438\u0441\u0430\u0432 192.168. \u0443 \u043d\u0430\u0441 \u0443\u0434\u0430\u043b\u0438\u0442\u0441\u044f 192.168.0.0\/16 \u0438 \u0434\u0430\u043b\u0435\u0435 \/17, \/18, \/19 \u0438 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u043f\u0440\u0435\u0444\u0438\u043a\u0441\u044b \u0432\u043f\u043b\u043e\u0442\u044c \u0434\u043e \/32 \u0435\u0441\u043b\u0438 \u0442\u0430\u043a\u043e\u0432\u044b\u0435 \u0431\u0443\u0434\u0443\u0442 \u0432 \u043b\u0438\u0441\u0442\u0430\u0445. \u0415\u0441\u043b\u0438 \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u0435\u0444\u0438\u043a\u0441 1.<strong>192.168.<\/strong>0\/24 \u0442\u043e \u043e\u043d \u0443\u0434\u0430\u043b\u0438\u0442\u0441\u044f \u0442\u043e\u0436\u0435. \u0411\u0443\u0434\u044c\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u0442\u0435\u043b\u044c\u043d\u044b \u0441 \u0442\u0435\u043c \u0447\u0442\u043e \u043f\u0438\u0448\u0435\u0442\u0435 \u0432 \u0444\u0430\u0439\u043b exclude.<\/p>\n<p>33 \u0441\u0442\u0440\u043e\u043a\u0430: \u0443\u0434\u0430\u043b\u044f\u0435\u0442 \u0434\u0443\u0431\u043b\u0438 \u0438 \u043a\u043e\u043f\u0438\u0440\u0443\u0435\u0442 \u0444\u0438\u043d\u0430\u043b\u044c\u043d\u044b\u0439 \u0441\u043f\u0438\u0441\u043e\u043a \u0432 \u043a\u0430\u0442\u0430\u043b\u043e\u0433 bird. \u0422.\u043a. \u0443 \u043d\u0430\u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u043f\u0438\u0441\u043a\u043e\u0432, \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u044c \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u0445 \u043f\u0440\u0435\u0444\u0438\u043a\u0441\u043e\u0432 \u0432\u044b\u0441\u043e\u043a\u0430.<\/p>\n<p>\u0414\u0430\u043b\u0435\u0435 \u043c\u044b \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u044e\u0449\u0438\u0435 \u0444\u0430\u0439\u043b\u044b\/\u0441\u0441\u044b\u043b\u043a\u0438:<\/p>\n<p>\u0421\u043e\u0437\u0434\u0430\u0435\u043c \u0444\u0430\u0439\u043b \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u0438 \u043f\u0438\u0448\u0435\u043c \u0442\u0443\u0434\u0430 1.1.1.1 \u0418\u043b\u0438 \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u043f\u0438\u0448\u0435\u043c.<\/p>\n<pre><code>nano \/root\/blacklist\/exclude.txt<\/code><\/pre>\n<p>\u0421\u043e\u0437\u0434\u0430\u0435\u043c \u0444\u0430\u0439\u043b \u0441\u0432\u043e\u0438\u0445 \u0445\u043e\u0442\u0435\u043b\u043e\u043a \u0438 \u043f\u0438\u0448\u0435\u043c \u0442\u0443\u0434\u0430 \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 10.0.0.0.\/8<\/p>\n<pre><code>nano \/root\/blacklist\/their.txt<\/code><\/pre>\n<p>\u0421\u043e\u0437\u0434\u0430\u0435\u043c \u0441\u0438\u043c\u0432\u043e\u043b\u044c\u043d\u0443\u044e \u0441\u0441\u044b\u043b\u043a\u0443 \u0432 \u043a\u0430\u0442\u0430\u043b\u043e\u0433 list. \u041e\u043d\u0430 \u0442\u0430\u043a\u0436\u0435 \u0431\u0443\u0434\u0435\u0442 \u0443\u0447\u0430\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0432 \u043f\u043e\u0434\u0441\u0447\u0435\u0442\u0435 \u0445\u044d\u0448\u0430 \u0434\u043b\u044f \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u0435\u0441\u0442\u044c \u043b\u0438 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0432 \u0444\u0430\u0439\u043b\u0430\u0445.<\/p>\n<pre><code>ln -s \/root\/blacklist\/their.txt \/root\/blacklist\/list\/their.lst<\/code><\/pre>\n<p>\u041d\u0443 \u0438 \u043d\u0435 \u0437\u0430\u0431\u044b\u0432\u0430\u0435\u043c \u043f\u0440\u043e cron<\/p>\n<pre><code>crontab -e *\/20 * * * * cd \/root\/blacklist &amp;&amp; .\/chklist<\/code><\/pre>\n<p><strong>Upd: <\/strong>\u041f\u043e \u0441\u043e\u0432\u0435\u0442\u0443<strong> <\/strong><a href=\"https:\/\/habr.com\/ru\/users\/13werwolf13\/\" rel=\"noopener noreferrer nofollow\">13werwolf13<\/a> \u043f\u0435\u0440\u0435\u043c\u0435\u0441\u0442\u0438\u043c md5.txt \u0432 \/tmp\/<\/p>\n<\/p>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"v-portal\" style=\"display:none;\"><\/div>\n<\/div>\n<p> <!----> <!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/672604\/\"> https:\/\/habr.com\/ru\/post\/672604\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u041f\u0440\u0438\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e \u0425\u0430\u0431\u0440\u0430\u0432\u0447\u0430\u043d\u0435!<\/p>\n<p>\u0414\u043e\u043b\u0433\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b \u0441\u0445\u0435\u043c\u0443 <a href=\"https:\/\/habr.com\/ru\/post\/359268\/\" rel=\"noopener noreferrer nofollow\">\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 BGP \u0434\u043b\u044f \u043e\u0431\u0445\u043e\u0434\u0430 \u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043e\u043a, \u0432\u0435\u0440\u0441\u0438\u044f 2, \u00ab\u043d\u0435 \u0434\u0443\u043c\u0430\u0442\u044c\u00bb<\/a>. \u041d\u043e \u0431\u044b\u043b\u0438 \u043c\u043e\u043c\u0435\u043d\u0442\u044b \u043d\u0435 \u0443\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u044e\u0449\u0438\u0435 \u043c\u0435\u043d\u044f.<\/p>\n<p>\u0417\u0430 \u043e\u0441\u043d\u043e\u0432\u0443 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u043e\u0433\u043e \u043c\u043d\u043e\u044e \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u0431\u044b\u043b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d \u0441\u043a\u0440\u0438\u043f\u0442<a class=\"mention\" href=\"\/users\/furriest\">@Furriest<\/a>, \u0437\u0430 \u0447\u0442\u043e \u0435\u043c\u0443 \u043e\u0433\u0440\u043e\u043c\u043d\u043e\u0435 \u0447\u0435\u043b\u043e\u0432\u0435\u0447\u0435\u0441\u043a\u043e\u0435 \u0441\u043f\u0430\u0441\u0438\u0431\u043e!<\/p>\n<p>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0443 VPS\/VPN \u043c\u043e\u0436\u043d\u043e \u0441\u043c\u0435\u043b\u043e \u0431\u0440\u0430\u0442\u044c \u0438\u0437 \u043c\u0430\u0442\u0435\u0440\u0438\u043d\u0441\u043a\u043e\u0439 \u0442\u0435\u043c\u044b, \u0437\u0434\u0435\u0441\u044c \u0432\u044b\u043b\u043e\u0436\u0443 \u0442\u043e\u043b\u044c\u043a\u043e \u0441\u043a\u0440\u0438\u043f\u0442.<\/p>\n<p>&#171;\u041f\u043e\u0447\u0435\u043c\u0443 \u043d\u0435 \u0432\u043d\u0435\u0441\u0443 \u043d\u0443\u0436\u043d\u044b\u0435 \u043c\u043d\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u043d\u0430 \u0440\u043e\u0443\u0442\u0435\u0440\u0435?&#187; &#8212; \u0441\u043f\u0440\u043e\u0441\u0438\u0442\u0435 \u0432\u044b. &#171;\u041f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0443 \u043c\u0435\u043d\u044f \u0438\u0445 \u043d\u0430 \u0442\u0435\u043a\u0443\u0449\u0438\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u0447\u0435\u0442\u044b\u0440\u0435 \u0438, \u043f\u0440\u0430\u0432\u0438\u0442\u044c \u043d\u0430 \u043a\u0430\u0436\u0434\u043e\u043c \u043b\u0435\u043d\u044c&#187;. \u0410 \u043b\u0435\u043d\u044c \u043a\u0430\u043a \u0432\u044b \u0437\u043d\u0430\u0435\u0442\u0435 &#8212; \u0434\u0432\u0438\u0433\u0430\u0442\u0435\u043b\u044c \u043f\u0440\u043e\u0433\u0440\u0435\u0441\u0441\u0430.<\/p>\n<pre><code class=\"bash\">#!\/bin\/bash  pushd list wget -N https:\/\/antifilter.download\/list\/subnet.lst wget -N https:\/\/antifilter.download\/list\/ip.lst #wget -N https:\/\/antifilter.download\/list\/ipresolve.lst wget -N https:\/\/community.antifilter.download\/list\/community.lst wget -N https:\/\/raw.githubusercontent.com\/SecOps-Institute\/FacebookIPLists\/master\/facebook_ipv4_cidr_blocks.lst  popd  old=$(cat  \/tmp\/lstmd5.txt); new=$(cat list\/*.lst | md5sum | head -c 32);  if [ \"$old\" != \"$new\" ] then  #main     cat list\/ip.lst | sed -r -e 's\/^[0-9]+.[0-9]+.[0-9]+.[0-9]+$\/&amp;\\\/32\/' -e 's\/.*\/route &amp; reject;\/' > \/tmp\/ip.txt     cat list\/subnet.lst | sed 's\/.*\/route &amp; reject;\/' >> \/tmp\/ip.txt     cat list\/facebook_ipv4_cidr_blocks.lst | sed 's\/.*\/route &amp; reject;\/' >> \/tmp\/ip.txt #    cat list\/ipresolve.lst | sed -r -e 's\/^[0-9]+.[0-9]+.[0-9]+.[0-9]+$\/&amp;\\\/32\/' -e 's\/.*\/route &amp; reject;\/' >> \/tmp\/ip.txt  #community     cat list\/community.lst | sed -r -e 's\/^[0-9]+.[0-9]+.[0-9]+.[0-9]+$\/&amp;\\\/32\/' -e 's\/.*\/route &amp; reject;\/' >> \/tmp\/ip.txt  #their     cat list\/their.lst | sed -r -e 's\/^[0-9]+.[0-9]+.[0-9]+.[0-9]+$\/&amp;\\\/32\/' -e 's\/.*\/route &amp; reject;\/' >> \/tmp\/ip.txt  #exclude     for a in `cat exclude.txt`; do sed -i -e \"\/$a\/d\" \/tmp\/ip.txt; done #unique     sort -u \/tmp\/ip.txt > \/etc\/bird\/ip.txt      \/usr\/sbin\/birdc configure;     logger \"RKN list reconfigured\";      echo $new >  \/tmp\/lstmd5.txt; fi<\/code><\/pre>\n<p>19, 25 \u0438 28 \u0441\u0442\u0440\u043e\u043a\u0438: \u0412 \u0441\u043f\u0438\u0441\u043a\u0435 ip.lst \u043c\u044b \u0438\u043c\u0435\u0435\u043c IP \u0430\u0434\u0440\u0435\u0441\u0430 \u0431\u0435\u0437 \u0443\u043a\u0430\u0437\u0430\u043d\u0438\u044f \u043f\u0440\u0435\u0444\u0438\u043a\u0441\u0430. \u0422\u0430\u043a\u043e\u0439 \u0444\u043e\u0440\u043c\u0430\u0442 bird \u043d\u0435 \u043a\u0443\u0448\u0430\u0435\u0442. \u0410\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u043e \u0435\u0441\u043b\u0438 \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0441\u0432\u043e\u0439 \u0441\u043f\u0438\u0441\u043e\u043a. \u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u0435\u0441\u0442\u044c \u043b\u0438 \u043f\u0440\u0435\u0444\u0438\u043a\u0441, \u0435\u0441\u043b\u0438 \u043d\u0435\u0442\u0443 &#8212; \u0434\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \/32<\/p>\n<p>31 \u0441\u0442\u0440\u043e\u043a\u0430: \u0443\u0434\u0430\u043b\u044f\u0435\u043c \u0438\u0437 \u0444\u0438\u043d\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u0430\u0434\u0440\u0435\u0441\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u044b \u043d\u0435 \u0445\u043e\u0442\u0438\u043c \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c. \u042f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e \u0434\u043b\u044f \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u044f 1.1.1.1 \u0438\u0437 community.lst, \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0441\u0442\u0440\u043e\u043a\u043e\u0439 \u043f\u043e \u043f\u0440\u043e\u0449\u0435, \u043d\u043e \u043d\u0430 \u0431\u0443\u0434\u0443\u0449\u0435\u0435 \u0435\u0441\u043b\u0438 \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f \u0438\u0441\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0435 \u0430\u0434\u0440\u0435\u0441\u043e\u0432\/\u0441\u0435\u0442\u0435\u0439 \u0441\u0434\u0435\u043b\u0430\u043b \u043e\u0434\u0438\u043d \u0440\u0430\u0437. \u041f\u0440\u043e\u0441\u0442\u043e \u0434\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u0438\u0445 \u043f\u043e\u0441\u0442\u0440\u043e\u0447\u043d\u043e \u0432 \u0444\u0430\u0439\u043b exclude.txt<\/p>\n<p>\u041f\u043e\u0438\u0441\u043a \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u043f\u043e \u043a\u0443\u0441\u043a\u0443 \u0442\u0435\u043a\u0441\u0442\u0430. \u0415\u0441\u043b\u0438 \u0432\u043f\u0438\u0441\u0430\u0442\u044c &#171;1.1&#187; \u0432 exclude.txt, \u0442\u043e \u0443\u0434\u0430\u043b\u0438\u0442\u0441\u044f \u0438 1.1.1.1 \u0438 <strong>1.1<\/strong>79.201.18\/32 \u0438 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u043e\u0435 \u043f\u043e\u0434\u043e\u0431\u043d\u043e\u0435. \u0412\u043f\u0438\u0441\u0430\u0432 192.168. \u0443 \u043d\u0430\u0441 \u0443\u0434\u0430\u043b\u0438\u0442\u0441\u044f 192.168.0.0\/16 \u0438 \u0434\u0430\u043b\u0435\u0435 \/17, \/18, \/19 \u0438 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u043f\u0440\u0435\u0444\u0438\u043a\u0441\u044b \u0432\u043f\u043b\u043e\u0442\u044c \u0434\u043e \/32 \u0435\u0441\u043b\u0438 \u0442\u0430\u043a\u043e\u0432\u044b\u0435 \u0431\u0443\u0434\u0443\u0442 \u0432 \u043b\u0438\u0441\u0442\u0430\u0445. \u0415\u0441\u043b\u0438 \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u0435\u0444\u0438\u043a\u0441 1.<strong>192.168.<\/strong>0\/24 \u0442\u043e \u043e\u043d \u0443\u0434\u0430\u043b\u0438\u0442\u0441\u044f \u0442\u043e\u0436\u0435. \u0411\u0443\u0434\u044c\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u0442\u0435\u043b\u044c\u043d\u044b \u0441 \u0442\u0435\u043c \u0447\u0442\u043e \u043f\u0438\u0448\u0435\u0442\u0435 \u0432 \u0444\u0430\u0439\u043b exclude.<\/p>\n<p>33 \u0441\u0442\u0440\u043e\u043a\u0430: \u0443\u0434\u0430\u043b\u044f\u0435\u0442 \u0434\u0443\u0431\u043b\u0438 \u0438 \u043a\u043e\u043f\u0438\u0440\u0443\u0435\u0442 \u0444\u0438\u043d\u0430\u043b\u044c\u043d\u044b\u0439 \u0441\u043f\u0438\u0441\u043e\u043a \u0432 \u043a\u0430\u0442\u0430\u043b\u043e\u0433 bird. \u0422.\u043a. \u0443 \u043d\u0430\u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u043f\u0438\u0441\u043a\u043e\u0432, \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u044c \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u0445 \u043f\u0440\u0435\u0444\u0438\u043a\u0441\u043e\u0432 \u0432\u044b\u0441\u043e\u043a\u0430.<\/p>\n<p>\u0414\u0430\u043b\u0435\u0435 \u043c\u044b \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u044e\u0449\u0438\u0435 \u0444\u0430\u0439\u043b\u044b\/\u0441\u0441\u044b\u043b\u043a\u0438:<\/p>\n<p>\u0421\u043e\u0437\u0434\u0430\u0435\u043c \u0444\u0430\u0439\u043b \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u0438 \u043f\u0438\u0448\u0435\u043c \u0442\u0443\u0434\u0430 1.1.1.1 \u0418\u043b\u0438 \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u043f\u0438\u0448\u0435\u043c.<\/p>\n<pre><code>nano \/root\/blacklist\/exclude.txt<\/code><\/pre>\n<p>\u0421\u043e\u0437\u0434\u0430\u0435\u043c \u0444\u0430\u0439\u043b \u0441\u0432\u043e\u0438\u0445 \u0445\u043e\u0442\u0435\u043b\u043e\u043a \u0438 \u043f\u0438\u0448\u0435\u043c \u0442\u0443\u0434\u0430 \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 10.0.0.0.\/8<\/p>\n<pre><code>nano \/root\/blacklist\/their.txt<\/code><\/pre>\n<p>\u0421\u043e\u0437\u0434\u0430\u0435\u043c \u0441\u0438\u043c\u0432\u043e\u043b\u044c\u043d\u0443\u044e \u0441\u0441\u044b\u043b\u043a\u0443 \u0432 \u043a\u0430\u0442\u0430\u043b\u043e\u0433 list. \u041e\u043d\u0430 \u0442\u0430\u043a\u0436\u0435 \u0431\u0443\u0434\u0435\u0442 \u0443\u0447\u0430\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0432 \u043f\u043e\u0434\u0441\u0447\u0435\u0442\u0435 \u0445\u044d\u0448\u0430 \u0434\u043b\u044f \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u0435\u0441\u0442\u044c \u043b\u0438 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0432 \u0444\u0430\u0439\u043b\u0430\u0445.<\/p>\n<pre><code>ln -s \/root\/blacklist\/their.txt \/root\/blacklist\/list\/their.lst<\/code><\/pre>\n<p>\u041d\u0443 \u0438 \u043d\u0435 \u0437\u0430\u0431\u044b\u0432\u0430\u0435\u043c \u043f\u0440\u043e cron<\/p>\n<pre><code>crontab -e *\/20 * * * * cd \/root\/blacklist &amp;&amp; .\/chklist<\/code><\/pre>\n<p><strong>Upd: <\/strong>\u041f\u043e \u0441\u043e\u0432\u0435\u0442\u0443<strong> <\/strong><a href=\"https:\/\/habr.com\/ru\/users\/13werwolf13\/\" rel=\"noopener noreferrer nofollow\">13werwolf13<\/a> \u043f\u0435\u0440\u0435\u043c\u0435\u0441\u0442\u0438\u043c md5.txt \u0432 \/tmp\/<\/p>\n<\/p>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"v-portal\" style=\"display:none;\"><\/div>\n<\/div>\n<p> <!----> <!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/672604\/\"> https:\/\/habr.com\/ru\/post\/672604\/<\/a><br \/><\/br><\/br><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-334796","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/334796","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=334796"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/334796\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=334796"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=334796"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=334796"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}