<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Linux Forum &mdash; Как в CentOS забанить все китайские ip?]]></title>
	<link rel="self" href="https://linuxforum.ru/extern.php?action=feed&amp;tid=34046&amp;type=atom" />
	<updated>2014-03-10T20:14:21Z</updated>
	<generator>PunBB</generator>
	<id>https://linuxforum.ru/viewtopic.php?id=34046</id>
		<entry>
			<title type="html"><![CDATA[Re: Как в CentOS забанить все китайские ip?]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=399328#p399328" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>NoVASpirit пишет:</cite><blockquote><p>Неужели там у них одни хакеры?</p></blockquote></div><p>там любители безусловнобесплатного ПО. Тысячи их. Даже у нас за этим следят лучше(в организацию РФ вам будет не поставить варезный фотошоп, дешевле купить, как огнетушитель)…</p>]]></content>
			<author>
				<name><![CDATA[drBatty]]></name>
				<uri>https://linuxforum.ru/profile.php?id=86</uri>
			</author>
			<updated>2014-03-10T20:14:21Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=399328#p399328</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Как в CentOS забанить все китайские ip?]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=398682#p398682" />
			<content type="html"><![CDATA[<p>Да это так мысли вслух.... Логичнее банить на некоторое время... Хоть китай и ломится постоянно но уж больно странно это происходит... Неужели там у них одни хакеры?</p>]]></content>
			<author>
				<name><![CDATA[NoVASpirit]]></name>
				<uri>https://linuxforum.ru/profile.php?id=3468</uri>
			</author>
			<updated>2014-03-07T19:29:26Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=398682#p398682</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Как в CentOS забанить все китайские ip?]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=398644#p398644" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>NoVASpirit пишет:</cite><blockquote><p>И какой при этом тогда смысл банить весь китай?</p></blockquote></div><p>Вопрос ко мне или ТС? <img src="https://linuxforum.ru/img/smilies/ab.gif" alt="ab" /></p>]]></content>
			<author>
				<name><![CDATA[mvt]]></name>
				<uri>https://linuxforum.ru/profile.php?id=26</uri>
			</author>
			<updated>2014-03-07T16:51:49Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=398644#p398644</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Как в CentOS забанить все китайские ip?]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=398643#p398643" />
			<content type="html"><![CDATA[<p>И какой при этом тогда смысл банить весь китай?</p>]]></content>
			<author>
				<name><![CDATA[NoVASpirit]]></name>
				<uri>https://linuxforum.ru/profile.php?id=3468</uri>
			</author>
			<updated>2014-03-07T16:50:03Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=398643#p398643</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Как в CentOS забанить все китайские ip?]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=398642#p398642" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>NoVASpirit пишет:</cite><blockquote><p>А что например мешает друганам из РФ оcтавлять в логах китайские IP?</p></blockquote></div><p>Ну, да. Я могу, причем - случайным образом <img src="https://linuxforum.ru/img/smilies/ab.gif" alt="ab" /></p>]]></content>
			<author>
				<name><![CDATA[mvt]]></name>
				<uri>https://linuxforum.ru/profile.php?id=26</uri>
			</author>
			<updated>2014-03-07T16:45:44Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=398642#p398642</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Как в CentOS забанить все китайские ip?]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=398641#p398641" />
			<content type="html"><![CDATA[<p>А что например мешает друганам из РФ оcтавлять в логах китайские IP?</p>]]></content>
			<author>
				<name><![CDATA[NoVASpirit]]></name>
				<uri>https://linuxforum.ru/profile.php?id=3468</uri>
			</author>
			<updated>2014-03-07T16:39:38Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=398641#p398641</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Как в CentOS забанить все китайские ip?]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=397989#p397989" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Cruiser78 пишет:</cite><blockquote><p>Есть хорошая метода собирания длинной команды.</p></blockquote></div><p>только на выходе <span style="color: red"><strong>кю</strong></span> получается. Которым так любят здесь кормить новичков.</p><p>Вот это ваша хабро.. Тоже такой <a href="http://lurkmore.to/%D0%9A%D0%B8%D1%82%D0%B0%D0%B9%D1%81%D0%BA%D0%B8%D0%B9_%D0%BA%D0%BE%D0%B4#K.D0.B8.D1.82.D0.B0.D0.B9.D1.81.D0.BA.D0.B8.D0.B9_.D0.BA.D0.BE.D0.B4">китайской методой</a> пользовалась. На выходе имеем как всегда нечто неприличное и дурно пахнущее. Не будьте таким. Учитесь на чужих ошибках.<br /></p><div class="quotebox"><cite>Cruiser78 пишет:</cite><blockquote><p>egrep -e &quot;$BAN_CONT&quot;</p></blockquote></div><p>зачем тут вообще egrep, если потом всё равно надо sed?</p><p>Кстати, это УГ из мамонта:</p><p>Direct invocation&nbsp; as&nbsp; either&nbsp; egrep&nbsp; or&nbsp; fgrep&nbsp; is&nbsp; &nbsp; &nbsp; &nbsp;deprecated,&nbsp; but&nbsp; is&nbsp; provided&nbsp; to&nbsp; allow&nbsp; historical&nbsp; applications that rely on them to run&nbsp; &nbsp; &nbsp; &nbsp;unmodified.</p>]]></content>
			<author>
				<name><![CDATA[drBatty]]></name>
				<uri>https://linuxforum.ru/profile.php?id=86</uri>
			</author>
			<updated>2014-03-03T18:55:01Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=397989#p397989</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Как в CentOS забанить все китайские ip?]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=397973#p397973" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>kerogaz пишет:</cite><blockquote><p>list=`curl -s&nbsp; <a href="http://www.iana.org/assignments/ipv4-address-space/ipv4-address-space.csv">http://www.iana.org/assignments/ipv4-ad … -space.csv</a> \ | egrep $BAN_CONT&nbsp; \ | cut -d &quot;,&quot; -f 1&nbsp; \ | sed &#039;s!/8!.0.0.0/8!g&#039;</p></blockquote></div><p>Есть хорошая метода собирания длинной команды. Или проверки её работы. Не применять её сразу, а дописывать частями. И если её так расрутить, то неизбежно придем к небольшой модификации:</p><div class="codebox"><pre><code>egrep -e &quot;$BAN_CONT&quot;</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Cruiser78]]></name>
				<uri>https://linuxforum.ru/profile.php?id=631</uri>
			</author>
			<updated>2014-03-03T17:29:59Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=397973#p397973</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Как в CentOS забанить все китайские ip?]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=397952#p397952" />
			<content type="html"><![CDATA[<p><img src="https://linuxforum.ru/img/smilies/az.gif" alt="az" /></p>]]></content>
			<author>
				<name><![CDATA[kerogaz]]></name>
				<uri>https://linuxforum.ru/profile.php?id=28257</uri>
			</author>
			<updated>2014-03-03T13:54:43Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=397952#p397952</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Как в CentOS забанить все китайские ip?]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=397951#p397951" />
			<content type="html"><![CDATA[<p>если работает можно так сделать:<br /><div class="termtitle" style="font-family: sans-serif; position:relative; height:auto; width:auto; background:#3A4061; color:#FFFFFF; padding: 1px;"><b> Консоль:</b></div>
<div class="termcont" style="font-family: Terminus; position:relative; height:auto; width:auto; overflow-x:scroll; white-space: nowrap ; overflow-y:auto;background:#000000; color:#4EF44E; line-height:1.2; padding: 3px; font-size: 1rem; max-height: 60vh">list=$(wget --quiet -O - &quot;ht<span>tp://www.iana.org/assignments/ipv4-address-space/ipv4-address-space.csv</span>&quot; |sed -rn &quot;/$BAN_CONT/s~^0*([0-9]+)/([0-9]+).*~\1.0.0.0/\2~p&quot;)</div><br />это без мусора, молча.</p>]]></content>
			<author>
				<name><![CDATA[drBatty]]></name>
				<uri>https://linuxforum.ru/profile.php?id=86</uri>
			</author>
			<updated>2014-03-03T13:49:28Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=397951#p397951</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Как в CentOS забанить все китайские ip?]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=397950#p397950" />
			<content type="html"><![CDATA[<p>Теперь вроде без ошибок<br /></p><div class="codebox"><pre><code>./banall
--2014-03-03 15:45:55--  http://www.iana.org/assignments/ipv4-address-space/ipv4-address-space.csv
Распознаётся www.iana.org... 192.0.32.8, 2620:0:2d0:200::8
Устанавливается соединение с www.iana.org|192.0.32.8|:80... соединение установлено.
Запрос HTTP послан, ожидается ответ... 200 OK
Длина: нет информации [text/csv]
Saving to: «STDOUT»

    [  &lt;=&gt;                                                                                                                                                 ] 13.125      35,5K/s   в 0,4s     

2014-03-03 15:45:56 (35,5 KB/s) - written to stdout [13125]</code></pre></div><div class="codebox"><pre><code>Chain INPUT (policy ACCEPT)
num  target     prot opt source               destination         
1    DROP       all  --  223.0.0.0/8          anywhere            
2    DROP       all  --  222.0.0.0/8          anywhere            
3    DROP       all  --  221.0.0.0/8          anywhere            
4    DROP       all  --  softbank220000000000.bbtec.net/8  anywhere            
5    DROP       all  --  softbank219000000000.bbtec.net/8  anywhere            
6    DROP       all  --  218.0.0.0/8          anywhere            
7    DROP       all  --  211.0.0.0/8          anywhere            
8    DROP       all  --  210.0.0.0/8          anywhere            
9    DROP       all  --  203.0.0.0/8          anywhere            
10   DROP       all  --  202.0.0.0/8          anywhere            
11   DROP       all  --  201-0-0-0.dsl.telesp.net.br/8  anywhere            
12   DROP       all  --  200.0.0.0/8          anywhere            
13   DROP       all  --  197.0.0.0/8          anywhere            
14   DROP       all  --  196.0.0.0/8          anywhere            
15   DROP       all  --  191.0.0.0/8          anywhere            
16   DROP       all  --  190.0.0.0/8          anywhere            
17   DROP       all  --  ip-189-0-0-0.user.vivozap.com.br/8  anywhere            
18   DROP       all  --  187.0.0.0/8          anywhere            
19   DROP       all  --  pei-186-0-o-o.une.net.co/8  anywhere            
20   DROP       all  --  183.0.0.0/8          anywhere            
21   DROP       all  --  182.0.0.0/8          anywhere            
22   DROP       all  --  host0.181-0-0.telecom.net.ar/8  anywhere            
23   DROP       all  --  180.0.0.0/8          anywhere            
24   DROP       all  --  179.0.0.0/8          anywhere            
25   DROP       all  --  177.0.0.0/8          anywhere            
26   DROP       all  --  175.0.0.0/8          anywhere            
27   DROP       all  --  171.0.0.0/8          anywhere            
28   DROP       all  --  163.0.0.0/8          anywhere            
29   DROP       all  --  154.0.0.0/8          anywhere            
30   DROP       all  --  153.0.0.0/8          anywhere            
31   DROP       all  --  150.0.0.0/8          anywhere            
32   DROP       all  --  133.0.0.0/8          anywhere            
33   DROP       all  --  softbank126000000000.bbtec.net/8  anywhere            
34   DROP       all  --  ppp-net.infoweb.ne.jp/8  anywhere            
35   DROP       all  --  124.0.0.0/8          anywhere            
36   DROP       all  --  UNKNOWN-123-0-0-X.yahoo.com/8  anywhere            
37   DROP       all  --  122.0.0.0/8          anywhere            
38   DROP       all  --  nip-121-0-0-0.onqnetworks.net/8  anywhere            
39   DROP       all  --  120.0.0.0/8          anywhere            
40   DROP       all  --  119.0.0.0/8          anywhere            
41   DROP       all  --  118.0.0.0/8          anywhere            
42   DROP       all  --  localhost/8          anywhere            
43   DROP       all  --  116.0.0.0/8          anywhere            
44   DROP       all  --  115.0.0.0/8          anywhere            
45   DROP       all  --  114.0.0.0/8          anywhere            
46   DROP       all  --  113.0.0.0/8          anywhere            
47   DROP       all  --  112.0.0.0/8          anywhere            
48   DROP       all  --  111.0.0.0/8          anywhere            
49   DROP       all  --  110.0.0.0/8          anywhere            
50   DROP       all  --  106.0.0.0/8          anywhere            
51   DROP       all  --  105.0.0.0/8          anywhere            
52   DROP       all  --  103.0.0.0/8          anywhere            
53   DROP       all  --  102.0.0.0/8          anywhere            
54   DROP       all  --  101.0.0.0/8          anywhere            
55   DROP       all  --  61.0.0.0/8           anywhere            
56   DROP       all  --  60.0.0.0/8           anywhere            
57   DROP       all  --  59.0.0.0/8           anywhere            
58   DROP       all  --  ppp-net.infoweb.ne.jp/8  anywhere            
59   DROP       all  --  49.0.0.0/8           anywhere            
60   DROP       all  --  43.0.0.0/8           anywhere            
61   DROP       all  --  42.0.0.0/8           anywhere            
62   DROP       all  --  41.0.0.0/8           anywhere            
63   DROP       all  --  39.0.0.0/8           anywhere            
64   DROP       all  --  36.0.0.0/8           anywhere            
65   DROP       all  --  27.0.0.0/8           anywhere            
66   DROP       all  --  14.0.0.0/8           anywhere            
67   DROP       all  --  1.0.0.0/8            anywhere            </code></pre></div>]]></content>
			<author>
				<name><![CDATA[kerogaz]]></name>
				<uri>https://linuxforum.ru/profile.php?id=28257</uri>
			</author>
			<updated>2014-03-03T13:46:52Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=397950#p397950</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Как в CentOS забанить все китайские ip?]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=397942#p397942" />
			<content type="html"><![CDATA[<p><strong>kerogaz</strong>, <br /></p><div class="codebox"><pre><code>list=$(wget -O - &quot;http://www.iana.org/assignments/ipv4-address-space/ipv4-address-space.csv&quot; |sed -rn &quot;/$BAN_CONT/s~^0*([0-9]+)/([0-9]+).*~\1.0.0.0/\2~p&quot;)</code></pre></div><p>fixed</p>]]></content>
			<author>
				<name><![CDATA[drBatty]]></name>
				<uri>https://linuxforum.ru/profile.php?id=86</uri>
			</author>
			<updated>2014-03-03T13:35:21Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=397942#p397942</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Как в CentOS забанить все китайские ip?]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=397935#p397935" />
			<content type="html"><![CDATA[<p>Остальное вроде забанилось. Cпасибо <img src="https://linuxforum.ru/img/smilies/az.gif" alt="az" /> <br /></p><div class="codebox"><pre><code>Chain INPUT (policy ACCEPT)
num  target     prot opt source               destination         
1    DROP       all  --  223.0.0.0/8          anywhere            
2    DROP       all  --  222.0.0.0/8          anywhere            
3    DROP       all  --  221.0.0.0/8          anywhere            
4    DROP       all  --  softbank220000000000.bbtec.net/8  anywhere            
5    DROP       all  --  softbank219000000000.bbtec.net/8  anywhere            
6    DROP       all  --  218.0.0.0/8          anywhere            
7    DROP       all  --  211.0.0.0/8          anywhere            
8    DROP       all  --  210.0.0.0/8          anywhere            
9    DROP       all  --  203.0.0.0/8          anywhere            
10   DROP       all  --  202.0.0.0/8          anywhere            
11   DROP       all  --  201-0-0-0.dsl.telesp.net.br/8  anywhere            
12   DROP       all  --  200.0.0.0/8          anywhere            
13   DROP       all  --  197.0.0.0/8          anywhere            
14   DROP       all  --  196.0.0.0/8          anywhere            
15   DROP       all  --  191.0.0.0/8          anywhere            
16   DROP       all  --  190.0.0.0/8          anywhere            
17   DROP       all  --  ip-189-0-0-0.user.vivozap.com.br/8  anywhere            
18   DROP       all  --  187.0.0.0/8          anywhere            
19   DROP       all  --  pei-186-0-o-o.une.net.co/8  anywhere            
20   DROP       all  --  183.0.0.0/8          anywhere            
21   DROP       all  --  182.0.0.0/8          anywhere            
22   DROP       all  --  host0.181-0-0.telecom.net.ar/8  anywhere            
23   DROP       all  --  180.0.0.0/8          anywhere            
24   DROP       all  --  179.0.0.0/8          anywhere            
25   DROP       all  --  177.0.0.0/8          anywhere            
26   DROP       all  --  175.0.0.0/8          anywhere            
27   DROP       all  --  171.0.0.0/8          anywhere            
28   DROP       all  --  163.0.0.0/8          anywhere            
29   DROP       all  --  154.0.0.0/8          anywhere            
30   DROP       all  --  153.0.0.0/8          anywhere            
31   DROP       all  --  150.0.0.0/8          anywhere            
32   DROP       all  --  133.0.0.0/8          anywhere            
33   DROP       all  --  softbank126000000000.bbtec.net/8  anywhere            
34   DROP       all  --  ppp-net.infoweb.ne.jp/8  anywhere            
35   DROP       all  --  124.0.0.0/8          anywhere            
36   DROP       all  --  UNKNOWN-123-0-0-X.yahoo.com/8  anywhere            
37   DROP       all  --  122.0.0.0/8          anywhere            
38   DROP       all  --  nip-121-0-0-0.onqnetworks.net/8  anywhere            
39   DROP       all  --  120.0.0.0/8          anywhere            
40   DROP       all  --  119.0.0.0/8          anywhere            
41   DROP       all  --  118.0.0.0/8          anywhere            
42   DROP       all  --  localhost/8          anywhere            
43   DROP       all  --  116.0.0.0/8          anywhere            
44   DROP       all  --  115.0.0.0/8          anywhere            
45   DROP       all  --  114.0.0.0/8          anywhere            
46   DROP       all  --  113.0.0.0/8          anywhere            
47   DROP       all  --  112.0.0.0/8          anywhere            
48   DROP       all  --  111.0.0.0/8          anywhere            
49   DROP       all  --  110.0.0.0/8          anywhere            
50   DROP       all  --  106.0.0.0/8          anywhere            
51   DROP       all  --  105.0.0.0/8          anywhere            
52   DROP       all  --  103.0.0.0/8          anywhere            
53   DROP       all  --  102.0.0.0/8          anywhere            
54   DROP       all  --  101.0.0.0/8          anywhere            
55   DROP       all  --  49.0.0.0/8           anywhere            
56   DROP       all  --  48.0.0.0/8           anywhere            
57   DROP       all  --  35.0.0.0/8           anywhere            
58   DROP       all  --  34.0.0.0/8           anywhere            
59   DROP       all  --  33.0.0.0/8           anywhere            
60   DROP       all  --  30.0.0.0/8           anywhere            
61   DROP       all  --  a23-0-0-0.deploy.static.akamaitechnologies.com/8  anywhere            
62   DROP       all  --  12.0.0.0/8           anywhere            
63   DROP       all  --  1.0.0.0/8            anywhere            
64   DROP       all  --  anywhere             anywhere            source IP range 163.0.0.0-163.255.255.255 
65   DROP       all  --  anywhere             anywhere            source IP range 61.0.0.0-61.255.255.255 
66   fail2ban-SSH  tcp  --  anywhere             anywhere            tcp dpt:ssh 
67   DROP       all  --  anywhere             anywhere            source IP range 222.0.0.0-222.255.255.255 
68   DROP       all  --  anywhere             anywhere            source IP range 120.0.0.0-120.255.255.255 
69   DROP       all  --  anywhere             anywhere            source IP range 204.93.0.0-204.93.255.255 
70   DROP       all  --  anywhere             anywhere            source IP range 175.119.0.0-175.119.255.255 
71   fail2ban-SSH  tcp  --  anywhere             anywhere            tcp dpt:ssh 
72   DROP       all  --  anywhere             anywhere            source IP range 60.223.236.0-60.223.236.255 
73   DROP       all  --  anywhere             anywhere            source IP range 202.85.208.0-202.85.223.255 
74   fail2ban-SSH  tcp  --  anywhere             anywhere            tcp dpt:ssh 
75   fail2ban-SSH  tcp  --  anywhere             anywhere            tcp dpt:ssh 
76   fail2ban-SSH  tcp  --  anywhere             anywhere            tcp dpt:ssh 
77   fail2ban-SSH  tcp  --  anywhere             anywhere            tcp dpt:ssh 
78   fail2ban-SSH  tcp  --  anywhere             anywhere            tcp dpt:ssh 
79   fail2ban-SSH  tcp  --  anywhere             anywhere            tcp dpt:ssh 
80   fail2ban-SSH  tcp  --  anywhere             anywhere            tcp dpt:ssh 
81   fail2ban-SSH  tcp  --  anywhere             anywhere            tcp dpt:ssh 
82   fail2ban-SSH  tcp  --  anywhere             anywhere            tcp dpt:ssh 
83   fail2ban-SSH  tcp  --  anywhere             anywhere            tcp dpt:ssh 
84   fail2ban-SSH  tcp  --  anywhere             anywhere            tcp dpt:ssh 
85   fail2ban-SSH  tcp  --  anywhere             anywhere            tcp dpt:ssh 
86   fail2ban-SSH  tcp  --  anywhere             anywhere            tcp dpt:ssh 
87   fail2ban-SSH  tcp  --  anywhere             anywhere            tcp dpt:ssh 
88   fail2ban-SSH  tcp  --  anywhere             anywhere            tcp dpt:ssh 
89   fail2ban-SSH  tcp  --  anywhere             anywhere            tcp dpt:ssh 
90   fail2ban-SSH  tcp  --  anywhere             anywhere            tcp dpt:ssh 
91   fail2ban-SSH  tcp  --  anywhere             anywhere            tcp dpt:ssh 
92   fail2ban-SSH  tcp  --  anywhere             anywhere            tcp dpt:ssh 
93   fail2ban-SSH  tcp  --  anywhere             anywhere            tcp dpt:ssh 
94   fail2ban-SSH  tcp  --  anywhere             anywhere            tcp dpt:ssh 
95   fail2ban-SSH  tcp  --  anywhere             anywhere            tcp dpt:ssh 
96   fail2ban-SSH  tcp  --  anywhere             anywhere            tcp dpt:ssh 
97   fail2ban-SSH  tcp  --  anywhere             anywhere            tcp dpt:ssh 
98   fail2ban-SSH  tcp  --  anywhere             anywhere            tcp dpt:ssh 
99   fail2ban-SSH  tcp  --  anywhere             anywhere            tcp dpt:ssh 
100  fail2ban-SSH  tcp  --  anywhere             anywhere            tcp dpt:ssh 
101  fail2ban-SSH  tcp  --  anywhere             anywhere            tcp dpt:ssh 
102  fail2ban-SSH  tcp  --  anywhere             anywhere            tcp dpt:ssh 
103  fail2ban-SSH  tcp  --  anywhere             anywhere            tcp dpt:ssh 
104  fail2ban-SSH  tcp  --  anywhere             anywhere            tcp dpt:ssh 
105  fail2ban-SSH  tcp  --  anywhere             anywhere            tcp dpt:ssh 
106  fail2ban-SSH  tcp  --  anywhere             anywhere            tcp dpt:ssh 
107  fail2ban-SSH  tcp  --  anywhere             anywhere            tcp dpt:ssh 
108  fail2ban-SSH  tcp  --  anywhere             anywhere            tcp dpt:ssh 
109  fail2ban-SSH  tcp  --  anywhere             anywhere            tcp dpt:ssh 
110  fail2ban-SSH  tcp  --  anywhere             anywhere            tcp dpt:ssh 
111  fail2ban-SSH  tcp  --  anywhere             anywhere            tcp dpt:ssh </code></pre></div>]]></content>
			<author>
				<name><![CDATA[kerogaz]]></name>
				<uri>https://linuxforum.ru/profile.php?id=28257</uri>
			</author>
			<updated>2014-03-03T12:48:16Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=397935#p397935</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Как в CentOS забанить все китайские ip?]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=397934#p397934" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>./banall
--2014-03-03 14:43:41--  http://www.iana.org/assignments/ipv4-address-space/ipv4-address-space.csv
Распознаётся www.iana.org... 192.0.32.8, 2620:0:2d0:200::8
Устанавливается соединение с www.iana.org|192.0.32.8|:80... соединение установлено.
Запрос HTTP послан, ожидается ответ... 200 OK
Длина: нет информации [text/csv]
Saving to: «STDOUT»

    [  &lt;=&gt;                                                                                                                                                 ] 13.125      33,4K/s   в 0,4s     

2014-03-03 14:43:42 (33,4 KB/s) - written to stdout [13125]

iptables v1.4.7: host/network `039.0.0.0&#039; not found
Try `iptables -h&#039; or &#039;iptables --help&#039; for more information.
iptables v1.4.7: host/network `049.0.0.0&#039; not found
Try `iptables -h&#039; or &#039;iptables --help&#039; for more information.
iptables v1.4.7: host/network `058.0.0.0&#039; not found
Try `iptables -h&#039; or &#039;iptables --help&#039; for more information.
iptables v1.4.7: host/network `059.0.0.0&#039; not found
Try `iptables -h&#039; or &#039;iptables --help&#039; for more information</code></pre></div>]]></content>
			<author>
				<name><![CDATA[kerogaz]]></name>
				<uri>https://linuxforum.ru/profile.php?id=28257</uri>
			</author>
			<updated>2014-03-03T12:44:35Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=397934#p397934</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Как в CentOS забанить все китайские ip?]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=397923#p397923" />
			<content type="html"><![CDATA[<p>попробуйте такую строку<br /></p><div class="codebox"><pre><code>list=$(wget -O - &quot;http://www.iana.org/assignments/ipv4-address-space/ipv4-address-space.csv&quot; |sed -rn &quot;/$BAN_CONT/s~^([0-9]+)/([0-9]+).*~\1.0.0.0/\2~p&quot;)</code></pre></div><p>да, вначале надо написать<br /></p><div class="codebox"><pre><code>#/bin/bash</code></pre></div>]]></content>
			<author>
				<name><![CDATA[drBatty]]></name>
				<uri>https://linuxforum.ru/profile.php?id=86</uri>
			</author>
			<updated>2014-03-03T11:04:51Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=397923#p397923</id>
		</entry>
</feed>
