<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/css" href="/stylesheets/rss.css"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>Cooper's blog: Category Linux</title>
    <link>http://cooper.ezlibrary.com/articles/category/linux</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description>&#1055;&#1088;&#1086;&#1075;&#1088;&#1072;&#1084;&#1084;&#1080;&#1088;&#1086;&#1074;&#1072;&#1085;&#1080;&#1077;, &#1073;&#1083;&#1086;&#1075;&#1075;&#1080;&#1085;&#1075;, online money making: &#1089;&#1086;&#1073;&#1099;&#1090;&#1080;&#1103;, &#1092;&#1072;&#1082;&#1090;&#1099;, &#1083;&#1080;&#1095;&#1085;&#1099;&#1081; &#1086;&#1087;&#1099;&#1090;</description>
    <item>
      <title>&#1053;&#1040;&#1057;&#1058;&#1056;&#1054;&#1049;&#1050;&#1040; IPTABLES. &#1047;&#1072;&#1097;&#1080;&#1090;&#1072; &#1086;&#1090; &#1087;&#1072;&#1088;&#1072;&#1079;&#1080;&#1090;&#1085;&#1086;&#1075;&#1086; &#1090;&#1088;&#1072;&#1092;&#1080;&#1082;&#1072;</title>
      <description>&lt;p&gt;&#1040;&#1085;&#1072;&#1083;&#1080;&#1079;&#1080;&#1088;&#1091;&#1103; &#1080;&#1085;&#1092;&#1086;&#1088;&#1084;&#1072;&#1094;&#1080;&#1102; &#1086; &#1089;&#1090;&#1072;&#1090;&#1080;&#1089;&#1090;&#1080;&#1082;&#1077; &#1080;&#1089;&#1087;&#1086;&#1083;&#1100;&#1079;&#1086;&#1074;&#1072;&#1085;&#1080;&#1103; &#1084;&#1086;&#1077;&#1075;&#1086; &#1073;&#1083;&#1086;&#1075;&#1072;, &#1103; &#1086;&#1073;&#1085;&#1072;&#1088;&#1091;&#1078;&#1080;&#1083;, &#1095;&#1090;&#1086; &#1077;&#1078;&#1077;&#1076;&#1085;&#1077;&#1074;&#1085;&#1086; &#1089; &#1082;&#1086;&#1085;&#1082;&#1088;&#1077;&#1090;&#1085;&#1099;&#1093; &#1093;&#1086;&#1089;&#1090;&#1086;&#1074; &#1087;&#1088;&#1086;&#1080;&#1089;&#1093;&#1086;&#1076;&#1080;&#1090; &#1087;&#1086;&#1076;&#1086;&#1079;&#1088;&#1080;&#1090;&#1077;&#1083;&#1100;&#1085;&#1086; &#1073;&#1091;&#1088;&#1085;&#1072;&#1103; &#1072;&#1082;&#1090;&#1080;&#1074;&#1085;&#1086;&#1089;&#1090;&#1100;, &#1093;&#1072;&#1088;&#1072;&#1082;&#1090;&#1077;&#1088;&#1085;&#1072;&#1103; &#1089;&#1082;&#1086;&#1088;&#1077;&#1077; &#1076;&#1083;&#1103; &lt;strong&gt;&#1088;&#1086;&#1073;&#1086;&#1090;&#1086;&#1074;&lt;/strong&gt; &#1080;&#1083;&#1080; &lt;strong&gt;&#1087;&#1072;&#1091;&#1082;&#1086;&#1074;&lt;/strong&gt; &#1095;&#1077;&#1084; &#1076;&#1083;&#1103; &#1088;&#1077;&#1072;&#1083;&#1100;&#1085;&#1099;&#1093; &#1087;&#1086;&#1083;&#1100;&#1079;&#1086;&#1074;&#1072;&#1090;&#1077;&#1083;&#1077;&#1081;. &lt;/p&gt;

&lt;p&gt;&#1050;&#1088;&#1086;&#1084;&#1077; &#1090;&#1086;&#1075;&#1086;, &#1095;&#1090;&#1086; &#1101;&#1090;&#1072; &#1080;&#1085;&#1092;&#1086;&#1088;&#1084;&#1072;&#1094;&#1080;&#1103; &#1080;&#1089;&#1082;&#1072;&#1078;&#1072;&#1083;&#1072; &#1086;&#1073;&#1097;&#1080;&#1077; &#1076;&#1072;&#1085;&#1085;&#1099;&#1077; &#1089;&#1090;&#1072;&#1090;&#1080;&#1089;&#1090;&#1080;&#1082;&#1080; &#1080;&#1089;&#1087;&#1086;&#1083;&#1100;&#1079;&#1086;&#1074;&#1072;&#1085;&#1080;&#1103; &#1088;&#1077;&#1089;&#1091;&#1088;&#1089;&#1072;, &#1082; &#1090;&#1086;&#1084;&#1091; &#1078;&#1077; &#1103; &#1087;&#1086;&#1083;&#1091;&#1095;&#1072;&#1083; &#1087;&#1088;&#1080;&#1083;&#1080;&#1095;&#1085;&#1099;&#1081; &#1086;&#1073;&#1098;&#1077;&#1084; &#1079;&#1072;&#1088;&#1091;&#1073;&#1077;&#1078;&#1085;&#1086;&#1075;&#1086; &#1090;&#1088;&#1072;&#1092;&#1080;&#1082;&#1072;, &#1079;&#1072; &#1082;&#1086;&#1090;&#1086;&#1088;&#1099;&#1081; &#1087;&#1088;&#1080; &#1086;&#1087;&#1088;&#1077;&#1076;&#1077;&#1083;&#1077;&#1085;&#1085;&#1099;&#1093; &#1091;&#1089;&#1083;&#1086;&#1074;&#1080;&#1103;&#1093; &#1087;&#1088;&#1080;&#1093;&#1086;&#1076;&#1080;&#1090;&#1089;&#1103; &#1087;&#1083;&#1072;&#1090;&#1080;&#1090;&#1100; &#1086;&#1090;&#1076;&#1077;&#1083;&#1100;&#1085;&#1086;.&lt;/p&gt;

&lt;p&gt;&lt;div style="" class="lightboxplugin"&gt;&lt;a href="/files/hosts_l.gif" rel="lightbox" title=""&gt;&lt;img src="/files/hosts_tmb.gif" alt="" title=""/&gt;&lt;/a&gt;&lt;/div&gt;&lt;/p&gt;

&lt;p&gt;&#1071; &#1088;&#1077;&#1096;&#1080;&#1083; &#1085;&#1072;&#1081;&#1090;&#1080; &#1087;&#1088;&#1086;&#1089;&#1090;&#1086;&#1077; &#1080; &#1076;&#1077;&#1081;&#1089;&#1090;&#1074;&#1077;&#1085;&#1085;&#1086;&#1077; &#1089;&#1088;&#1077;&#1076;&#1089;&#1090;&#1074;&#1086; &#1079;&#1072;&#1097;&#1080;&#1090;&#1099; &#1086;&#1090; &#1087;&#1072;&#1088;&#1072;&#1079;&#1080;&#1090;&#1085;&#1086;&#1075;&#1086; &#1090;&#1088;&#1072;&#1092;&#1080;&#1082;&#1072;, &#1082;&#1086;&#1090;&#1086;&#1088;&#1086;&#1077;, &#1087;&#1086; &#1074;&#1086;&#1079;&#1084;&#1086;&#1078;&#1085;&#1086;&#1089;&#1090;&#1080;, &#1076;&#1086;&#1083;&#1078;&#1085;&#1086;  &#1073;&#1072;&#1079;&#1080;&#1088;&#1086;&#1074;&#1072;&#1090;&#1100;&#1089;&#1103; &#1085;&#1072; &#1089;&#1090;&#1072;&#1085;&#1076;&#1072;&#1088;&#1090;&#1085;&#1099;&#1093; &#1091;&#1090;&#1080;&#1083;&#1080;&#1090;&#1072;&#1093; &lt;em&gt;LINUX&lt;/em&gt;.  &#1044;&#1083;&#1103; &#1089;&#1077;&#1073;&#1103; &#1103; &#1074;&#1099;&#1076;&#1077;&#1083;&#1080;&#1083; &#1085;&#1077;&#1089;&#1082;&#1086;&#1083;&#1100;&#1082;&#1086; &#1087;&#1086;&#1076;&#1093;&#1086;&#1076;&#1086;&#1074;: &lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;&#1041;&#1083;&#1086;&#1082;&#1080;&#1088;&#1086;&#1074;&#1072;&#1090;&#1100; &amp;#8220;&#1087;&#1083;&#1086;&#1093;&#1080;&#1077;&amp;#8221; &#1093;&#1086;&#1089;&#1090;&#1099; &#1085;&#1072; &#1091;&#1088;&#1086;&#1074;&#1085;&#1077; &#1087;&#1088;&#1080;&#1083;&#1086;&#1078;&#1077;&#1085;&#1080;&#1103;;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&#1048;&#1089;&#1087;&#1086;&#1083;&#1100;&#1079;&#1086;&#1074;&#1072;&#1090;&#1100; &#1089;&#1090;&#1072;&#1085;&#1076;&#1072;&#1088;&#1090;&#1085;&#1099;&#1077; &#1089;&#1088;&#1077;&#1076;&#1089;&#1090;&#1074;&#1072; &#1074;&#1101;&#1073;-&#1089;&#1077;&#1088;&#1074;&#1077;&#1088;&#1072; Apache &#1080;&#1083;&#1080; lighttpd;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&#1053;&#1072;&#1089;&#1090;&#1088;&#1086;&#1080;&#1090;&#1100; &lt;strong&gt;&#1087;&#1088;&#1072;&#1074;&#1080;&#1083;&#1072; &#1091;&#1090;&#1080;&#1083;&#1080;&#1090;&#1099; iptables&lt;/strong&gt;, &#1082;&#1086;&#1090;&#1086;&#1088;&#1072;&#1103; &#1087;&#1088;&#1080;&#1089;&#1091;&#1090;&#1089;&#1090;&#1074;&#1091;&#1077;&#1090; &#1074;&#1086; &#1074;&#1089;&#1077;&#1093; &lt;em&gt;LINUX&lt;/em&gt; &#1076;&#1080;&#1089;&#1090;&#1088;&#1080;&#1073;&#1091;&#1090;&#1080;&#1074;&#1072;&#1093;, &#1073;&#1072;&#1079;&#1080;&#1088;&#1091;&#1102;&#1097;&#1080;&#1093;&#1089;&#1103; &#1085;&#1072; &#1103;&#1076;&#1088;&#1072;&#1093; 2.4.x &#1080;&#1083;&#1080; 2.6.x &lt;/p&gt;

&lt;p&gt;&#1055;&#1077;&#1088;&#1074;&#1099;&#1077; &#1076;&#1074;&#1072; &#1089;&#1087;&#1086;&#1089;&#1086;&#1073;&#1072; &#1073;&#1099;&#1083;&#1080; &#1080;&#1089;&#1082;&#1083;&#1102;&#1095;&#1077;&#1085;&#1099; &#1080;&#1079; &#1088;&#1072;&#1089;&#1089;&#1084;&#1086;&#1090;&#1088;&#1077;&#1085;&#1080;&#1103;, &#1087;&#1086;&#1089;&#1082;&#1086;&#1083;&#1100;&#1082;&#1091; &#1079;&#1076;&#1077;&#1089;&#1100; &#1089;&#1091;&#1097;&#1077;&#1089;&#1090;&#1074;&#1091;&#1077;&#1090; &#1086;&#1087;&#1088;&#1077;&#1076;&#1077;&#1083;&#1105;&#1085;&#1085;&#1072;&#1103; &#1087;&#1088;&#1080;&#1074;&#1103;&#1079;&#1082;&#1072; &#1082; &#1087;&#1088;&#1080;&#1083;&#1086;&#1078;&#1077;&#1085;&#1080;&#1102; &#1080;&#1083;&#1080; &#1082; &#1082;&#1086;&#1085;&#1082;&#1088;&#1077;&#1090;&#1085;&#1086;&#1084;&#1091; web-&#1089;&#1077;&#1088;&#1074;&#1077;&#1088;&#1091;. &#1048; &#1077;&#1089;&#1083;&#1080;, &#1085;&#1072;&#1087;&#1088;&#1080;&#1084;&#1077;&#1088;, Apache &#1073;&#1091;&#1076;&#1077;&#1090; &#1079;&#1072;&#1084;&#1077;&#1085;&#1105;&#1085; &#1085;&#1072; ngnix, &#1087;&#1088;&#1080;&#1076;&#1077;&#1090;&#1089;&#1103; &#1079;&#1072;&#1085;&#1086;&#1074;&#1086; &#1087;&#1088;&#1086;&#1087;&#1080;&#1089;&#1099;&#1074;&#1072;&#1090;&#1100; &#1073;&#1083;&#1086;&#1082;&#1080;&#1088;&#1091;&#1102;&#1097;&#1080;&#1077; &#1087;&#1088;&#1072;&#1074;&#1080;&#1083;&#1072;.  &#1050; &#1090;&#1086;&#1084;&#1091; &#1078;&#1077;, &#1087;&#1072;&#1088;&#1072;&#1079;&#1080;&#1090;&#1085;&#1099;&#1077; &#1087;&#1072;&#1082;&#1077;&#1090;&#1099; &#1073;&#1091;&#1076;&#1091;&#1090; &#1076;&#1086;&#1093;&#1086;&#1076;&#1080;&#1090;&#1100; &#1076;&#1086; &#1074;&#1101;&#1073; &#1089;&#1077;&#1088;&#1074;&#1077;&#1088;&#1072; &#1080; &#1087;&#1088;&#1080;&#1083;&#1086;&#1078;&#1077;&#1085;&#1080;&#1103;, &#1076;&#1086;&#1087;&#1086;&#1083;&#1085;&#1080;&#1090;&#1077;&#1083;&#1100;&#1085;&#1086; &#1079;&#1072;&#1075;&#1088;&#1091;&#1078;&#1072;&#1103; &#1080;&#1093;.&lt;/p&gt;

&lt;p&gt;&#1048;&#1089;&#1087;&#1086;&#1083;&#1100;&#1079;&#1091;&#1103; &lt;strong&gt;&#1091;&#1090;&#1080;&#1083;&#1080;&#1090;&#1091; iptables&lt;/strong&gt; &#1076;&#1086;&#1089;&#1090;&#1072;&#1090;&#1086;&#1095;&#1085;&#1086; &#1087;&#1088;&#1086;&#1089;&#1090;&#1086;  &#1084;&#1086;&#1078;&#1085;&#1086; &#1085;&#1072;&#1089;&#1090;&#1088;&#1086;&#1080;&#1090;&#1100; &#1085;&#1072;&#1073;&#1086;&#1088; &#1087;&#1088;&#1072;&#1074;&#1080;&#1083; &#1076;&#1083;&#1103; &#1073;&#1083;&#1086;&#1082;&#1080;&#1088;&#1086;&#1074;&#1072;&#1085;&#1080;&#1103;, &#1072; &#1090;&#1072;&#1082;&#1078;&#1077; &#1087;&#1086;&#1083;&#1091;&#1095;&#1080;&#1090;&#1100; &#1089;&#1088;&#1077;&#1076;&#1089;&#1090;&#1074;&#1086; &#1076;&#1083;&#1103; &#1085;&#1072;&#1082;&#1086;&#1087;&#1083;&#1077;&#1085;&#1080;&#1103; &#1080; &#1087;&#1088;&#1086;&#1089;&#1084;&#1086;&#1090;&#1088;&#1072; &#1089;&#1090;&#1072;&#1090;&#1080;&#1089;&#1090;&#1080;&#1082;&#1080; &#1087;&#1086; &#1089;&#1086;&#1079;&#1076;&#1072;&#1085;&#1085;&#1099;&#1084; &#1087;&#1088;&#1072;&#1074;&#1080;&#1083;&#1072;&#1084;.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;&#1053;&#1072;&#1089;&#1090;&#1088;&#1086;&#1081;&#1082;&#1072; &#1087;&#1088;&#1072;&#1074;&#1080;&#1083; iptables&lt;/h2&gt;

&lt;p&gt;&#1055;&#1088;&#1086;&#1094;&#1077;&#1089;&#1089; &#1085;&#1072;&#1089;&#1090;&#1088;&#1086;&#1081;&#1082;&#1080; &#1076;&#1086;&#1089;&#1090;&#1072;&#1090;&#1086;&#1095;&#1085;&#1086; &#1087;&#1088;&#1086;&#1089;&#1090;&#1086;&#1081; &#1080; &#1079;&#1072;&#1085;&#1080;&#1084;&#1072;&#1077;&#1090; &#1085;&#1077;&#1089;&#1082;&#1086;&#1083;&#1100;&#1082;&#1086; &#1084;&#1080;&#1085;&#1091;&#1090;. &#1053;&#1072;&#1076;&#1086; &#1079;&#1072;&#1084;&#1077;&#1090;&#1080;&#1090;&#1100;, &#1095;&#1090;&#1086; &#1042;&#1099; &#1076;&#1086;&#1083;&#1078;&#1085;&#1099; &#1079;&#1072;&#1081;&#1090;&#1080; &#1085;&#1072; &#1089;&#1077;&#1088;&#1074;&#1077;&#1088; &#1082;&#1072;&#1082; &lt;em&gt;root &#1087;&#1086;&#1083;&#1100;&#1079;&#1086;&#1074;&#1072;&#1090;&#1077;&#1083;&#1100;&lt;/em&gt; &#1080;&#1083;&#1080; &#1080;&#1089;&#1087;&#1086;&#1083;&#1100;&#1079;&#1086;&#1074;&#1072;&#1090;&#1100; &#1082;&#1086;&#1084;&#1072;&#1085;&#1076;&#1091; &lt;em&gt;sudo&lt;/em&gt; &#1076;&#1083;&#1103; &#1076;&#1086;&#1073;&#1072;&#1074;&#1083;&#1077;&#1085;&#1080;&#1103; &#1087;&#1088;&#1072;&#1074;&#1080;&#1083;.&lt;/p&gt;

&lt;p&gt;&#1048;&#1090;&#1072;&#1082;, &#1091; &#1085;&#1072;&#1089; &#1077;&#1089;&#1090;&#1100; &#1082;&#1086;&#1085;&#1082;&#1088;&#1077;&#1090;&#1085;&#1099;&#1081; &#1093;&#1086;&#1089;&#1090; (crawler.bloglines.com, IP=65.214.44.29) &#1080; &#1094;&#1077;&#1083;&#1072;&#1103; &#1087;&#1086;&#1076;&#1089;&#1077;&#1090;&#1100; (84.110.0.0), &#1082;&#1086;&#1090;&#1086;&#1088;&#1099;&#1077; &#1085;&#1072;&#1076;&#1086; &#1079;&#1072;&#1073;&#1072;&#1085;&#1080;&#1090;&#1100;. &#1055;&#1088;&#1072;&#1074;&#1080;&#1083;&#1072; &#1074;&#1099;&#1075;&#1083;&#1103;&#1076;&#1103;&#1090; &#1090;&#1072;&#1082;:&lt;/p&gt;

&lt;pre&gt;
#Crawler bloglines 
/sbin/iptables -A INPUT -s 65.214.44.29 -p tcp -m multiport --dports 80 -j DROP

#bzq-*.red.bezeqint.net
/sbin/iptables -A INPUT -s 84.110.0.0/255.255.0.0 -p tcp -m multiport --dports 80 -j DROP
&lt;/pre&gt;

&lt;p&gt;&#1044;&#1083;&#1103; &#1076;&#1088;&#1091;&#1075;&#1080;&#1093; &#1093;&#1086;&#1089;&#1090;&#1086;&#1074; &#1080;&#1083;&#1080; &#1087;&#1086;&#1076;&#1089;&#1077;&#1090;&#1077;&#1081; &#1074; &lt;strong&gt;&#1087;&#1088;&#1072;&#1074;&#1080;&#1083;&#1072;&#1093; iptables&lt;/strong&gt;, &#1084;&#1077;&#1085;&#1103;&#1077;&#1090;&#1089;&#1103; &#1090;&#1086;&#1083;&#1100;&#1082;&#1086; IP &#1080;&#1089;&#1090;&#1086;&#1095;&#1085;&#1080;&#1082;&#1072; (&#1087;&#1072;&#1088;&#1072;&#1084;&#1077;&#1090;&#1088; -s). &lt;/p&gt;

&lt;h2&gt;&#1055;&#1088;&#1086;&#1089;&#1084;&#1086;&#1090;&#1088; &#1089;&#1090;&#1072;&#1090;&#1080;&#1089;&#1090;&#1080;&#1082;&#1080; iptables&lt;/h2&gt;

&lt;p&gt;&#1047;&#1072;&#1087;&#1091;&#1089;&#1082;&#1072;&#1077;&#1084; &lt;strong&gt;iptables &#1089; &#1087;&#1072;&#1088;&#1072;&#1084;&#1077;&#1090;&#1088;&#1072;&#1084;&#1080; -L &#1080; -v&lt;/strong&gt; &#1076;&#1083;&#1103; &#1087;&#1088;&#1086;&#1089;&#1084;&#1086;&#1090;&#1088;&#1072; &#1089;&#1090;&#1072;&#1090;&#1080;&#1089;&#1090;&#1080;&#1082;&#1080;.
 &#1054;&#1087;&#1094;&#1080;&#1103; &lt;em&gt;-L&lt;/em&gt; &#1086;&#1087;&#1088;&#1077;&#1076;&#1077;&#1083;&#1103;&#1077;&#1090; &#1074;&#1099;&#1074;&#1086;&#1076; &#1089;&#1090;&#1072;&#1090;&#1080;&#1089;&#1090;&#1080;&#1082;&#1080; &#1076;&#1083;&#1103; &#1094;&#1077;&#1087;&#1086;&#1095;&#1082;&#1080; (chain). &#1045;&#1089;&#1083;&#1080; &#1082;&#1086;&#1085;&#1082;&#1088;&#1077;&#1090;&#1085;&#1072;&#1103; &#1094;&#1077;&#1087;&#1086;&#1095;&#1082;&#1072; &#1085;&#1077; &#1079;&#1072;&#1076;&#1072;&#1085;&#1072;, &#1090;&#1086; &#1076;&#1083;&#1103; &#1074;&#1089;&#1077;&#1093;.&lt;/p&gt;

&lt;p&gt;&#1054;&#1087;&#1094;&#1080;&#1103; &lt;em&gt;-v&lt;/em&gt;  &#1079;&#1072;&#1076;&#1072;&#1077;&#1090; &#1088;&#1072;&#1089;&#1096;&#1080;&#1088;&#1077;&#1085;&#1085;&#1099;&#1081; &#1074;&#1099;&#1074;&#1086;&#1076;, &#1074;&#1082;&#1083;&#1102;&#1095;&#1072;&#1102;&#1097;&#1080;&#1081; &#1074; &#1089;&#1077;&#1073;&#1103; &#1089;&#1095;&#1077;&#1090;&#1095;&#1080;&#1082;&#1080; &#1087;&#1072;&#1082;&#1077;&#1090;&#1086;&#1074; &#1080; &#1073;&#1072;&#1081;&#1090;. &lt;/p&gt;

&lt;p&gt;&#1054;&#1095;&#1077;&#1085;&#1100; &#1095;&#1072;&#1089;&#1090;&#1086; &#1076;&#1086;&#1073;&#1072;&#1074;&#1083;&#1103;&#1077;&#1090;&#1089;&#1103; &#1087;&#1072;&#1088;&#1072;&#1084;&#1077;&#1090;&#1088; -n, &#1082;&#1086;&#1090;&#1086;&#1088;&#1099;&#1081; &#1075;&#1086;&#1074;&#1086;&#1088;&#1080;&#1090; &lt;strong&gt;&#1082;&#1086;&#1084;&#1072;&#1085;&#1076;&#1077; iptables&lt;/strong&gt; &#1086; &#1090;&#1086;&#1084;, &#1095;&#1090;&#1086; &#1085;&#1077; &#1085;&#1072;&#1076;&#1086; &#1086;&#1073;&#1088;&#1072;&#1097;&#1072;&#1090;&#1100;&#1089;&#1103; &#1082; DNS &#1076;&#1083;&#1103; &#1088;&#1072;&#1079;&#1088;&#1077;&#1096;&#1077;&#1085;&#1080;&#1103; IP &#1072;&#1076;&#1088;&#1077;&#1089;&#1086;&#1074; &#1080; &#1074;&#1099;&#1074;&#1086;&#1076;&#1072; &#1080;&#1093; &#1074; &#1074;&#1080;&#1076;&#1077; &#1076;&#1086;&#1084;&#1077;&#1085;&#1085;&#1099;&#1093; &#1080;&#1084;&#1077;&#1085;. &#1069;&#1090;&#1086; &#1079;&#1085;&#1072;&#1095;&#1080;&#1090;&#1077;&#1083;&#1100;&#1085;&#1086; &#1091;&#1084;&#1077;&#1085;&#1100;&#1096;&#1072;&#1077;&#1090; &#1074;&#1088;&#1077;&#1084;&#1103; &#1085;&#1072; &#1074;&#1099;&#1076;&#1072;&#1095;&#1091; &#1088;&#1077;&#1079;&#1091;&#1083;&#1100;&#1090;&#1072;&#1090;&#1086;&#1074; &#1080; &#1087;&#1086;&#1079;&#1074;&#1086;&#1083;&#1103;&#1077;&#1090; &#1091;&#1084;&#1077;&#1085;&#1100;&#1096;&#1080;&#1090;&#1100; &#1085;&#1072;&#1075;&#1088;&#1091;&#1079;&#1082;&#1091; &#1085;&#1072; &#1089;&#1077;&#1088;&#1074;&#1077;&#1088;.&lt;/p&gt;

&lt;p&gt;&#1044;&#1083;&#1103; &#1076;&#1086;&#1087;&#1086;&#1083;&#1085;&#1080;&#1090;&#1077;&#1083;&#1100;&#1085;&#1086;&#1075;&#1086; &#1091;&#1076;&#1086;&#1073;&#1089;&#1090;&#1074;&#1072; &#1089;&#1087;&#1080;&#1089;&#1086;&#1082; &#1087;&#1088;&#1072;&#1074;&#1080;&#1083; &#1084;&#1086;&#1078;&#1077;&#1090; &#1073;&#1099;&#1090;&#1100; &#1087;&#1088;&#1086;&#1085;&#1091;&#1084;&#1077;&#1088;&#1086;&#1074;&#1072;&#1085;. &#1044;&#1083;&#1103; &#1101;&#1090;&#1086;&#1075;&#1086; &#1080;&#1089;&#1087;&#1086;&#1083;&#1100;&#1079;&#1091;&#1077;&#1090;&#1089;&#1103; &#1086;&#1087;&#1094;&#1080;&#1103; &lt;em&gt;&amp;#8211;line-numbers&lt;/em&gt;.&lt;/p&gt;

&lt;pre&gt;
/sbin/iptables -L -v --line-numbers
&lt;/pre&gt;

&lt;p&gt;&lt;img src="/files/iptables_list1.gif" /&gt;&lt;/p&gt;

&lt;h2&gt;&#1057;&#1086;&#1093;&#1088;&#1072;&#1085;&#1077;&#1085;&#1080;&#1077; &#1087;&#1088;&#1072;&#1074;&#1080;&#1083; &#1080; &#1089;&#1090;&#1072;&#1090;&#1080;&#1089;&#1090;&#1080;&#1082;&#1080;&lt;/h2&gt;

&lt;p&gt;&#1045;&#1089;&#1083;&#1080; &#1087;&#1077;&#1088;&#1077;&#1079;&#1072;&#1075;&#1088;&#1091;&#1079;&#1080;&#1090;&#1100; &#1082;&#1086;&#1084;&#1087;&#1100;&#1102;&#1090;&#1077;&#1088; &#1080;&#1083;&#1080; &#1091;&#1076;&#1072;&#1083;&#1080;&#1090;&#1100; &lt;strong&gt;iptables kernel modules&lt;/strong&gt; &#1074;&#1089;&#1103; &#1080;&#1085;&#1092;&#1086;&#1088;&#1084;&#1072;&#1094;&#1080;&#1103; &#1086; &#1089;&#1086;&#1073;&#1088;&#1072;&#1085;&#1085;&#1086;&#1081; &#1089;&#1090;&#1072;&#1090;&#1080;&#1089;&#1090;&#1080;&#1082;&#1077; &#1080; &#1076;&#1086;&#1073;&#1072;&#1074;&#1083;&#1077;&#1085;&#1085;&#1099;&#1093; &#1087;&#1088;&#1072;&#1074;&#1080;&#1083;&#1072;&#1093; &#1073;&#1091;&#1076;&#1077;&#1090; &#1091;&#1090;&#1077;&#1088;&#1103;&#1085;&#1072;. &#1063;&#1090;&#1086;&#1073;&#1099; &#1087;&#1088;&#1077;&#1076;&#1086;&#1090;&#1074;&#1088;&#1072;&#1090;&#1080;&#1090;&#1100; &#1087;&#1086;&#1090;&#1077;&#1088;&#1102; &#1076;&#1072;&#1085;&#1085;&#1099;&#1093; &#1085;&#1077;&#1086;&#1073;&#1093;&#1086;&#1076;&#1080;&#1084;&#1086; &#1076;&#1077;&#1083;&#1072;&#1090;&#1100; &#1073;&#1101;&#1082;&#1072;&#1087; &#1087;&#1086;&#1089;&#1083;&#1077; &#1082;&#1072;&#1078;&#1076;&#1086;&#1075;&#1086; &#1080;&#1079;&#1084;&#1077;&#1085;&#1077;&#1085;&#1080;&#1103; &#1074; &#1089;&#1087;&#1080;&#1089;&#1082;&#1077; &#1087;&#1088;&#1072;&#1074;&#1080;&#1083;. &#1044;&#1083;&#1103; &#1101;&#1090;&#1086;&#1075;&#1086; &#1089;&#1083;&#1091;&#1078;&#1080;&#1090;&#1100; &lt;strong&gt;&#1091;&#1090;&#1080;&#1083;&#1080;&#1090;&#1072; iptables-save&lt;/strong&gt;. &#1053;&#1072;&#1087;&#1088;&#1080;&#1084;&#1077;&#1088;:&lt;/p&gt;

&lt;pre&gt;
iptables-save -c &gt; /root/iptables-backup.txt
&lt;/pre&gt;

&lt;p&gt;&#1042;&#1086;&#1089;&#1089;&#1090;&#1072;&#1085;&#1086;&#1074;&#1080;&#1090;&#1100; &#1076;&#1072;&#1085;&#1085;&#1099;&#1077; &#1080;&#1079; &#1073;&#1101;&#1082;&#1072;&#1087;&#1072; &#1084;&#1086;&#1078;&#1085;&#1086; &#1080;&#1089;&#1087;&#1086;&#1083;&#1100;&#1079;&#1091;&#1103; &lt;strong&gt;&#1082;&#1086;&#1084;&#1072;&#1085;&#1076;&#1091; iptables-restore&lt;/strong&gt;. &#1054;&#1073;&#1099;&#1095;&#1085;&#1086; &#1101;&#1090;&#1086; &#1076;&#1077;&#1083;&#1072;&#1077;&#1090;&#1089;&#1103; &#1087;&#1086;&#1089;&#1083;&#1077; &#1087;&#1077;&#1088;&#1077;&#1079;&#1072;&#1075;&#1088;&#1091;&#1079;&#1082;&#1080; &#1074; &#1086;&#1076;&#1085;&#1086;&#1084; &#1080;&#1079; &#1089;&#1082;&#1088;&#1080;&#1087;&#1090;&#1086;&#1074; &#1080;&#1085;&#1080;&#1094;&#1080;&#1072;&#1083;&#1080;&#1079;&#1072;&#1094;&#1080;&#1080;, &#1085;&#1072;&#1087;&#1088;&#1080;&#1084;&#1077;&#1088; &#1074; &lt;em&gt;/etc/rc.d/rc.local&lt;/em&gt; &#1076;&#1083;&#1103; &lt;em&gt;Red Hat Linux&lt;/em&gt;.  &lt;/p&gt;

&lt;pre&gt;
iptables-restore -c &lt; /root/iptables-backup.txt
&lt;/pre&gt;

&lt;p&gt;&lt;br/&gt;
&lt;em&gt;&#1041;&#1080;&#1073;&#1083;&#1080;&#1086;&#1075;&#1088;&#1072;&#1092;&#1080;&#1103;:&lt;/em&gt;
&lt;noindex&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="http://www.amazon.com/gp/product/1584503963?ie=UTF8&amp;tag=coosblo-20&amp;linkCode=as2&amp;camp=1789&amp;creative=9325&amp;creativeASIN=1584503963"&gt;Linux Network Security (Administrator&amp;#8217;s Advantage Series)&lt;/a&gt;&lt;img src="http://www.assoc-amazon.com/e/ir?t=coosblo-20&amp;l=as2&amp;o=1&amp;a=1584503963" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href="http://www.amazon.com/gp/product/0764540483?ie=UTF8&amp;tag=coosblo-20&amp;linkCode=as2&amp;camp=1789&amp;creative=9325&amp;creativeASIN=0764540483"&gt;Firewalls for Dummies, Second Edition&lt;/a&gt;&lt;img src="http://www.assoc-amazon.com/e/ir?t=coosblo-20&amp;l=as2&amp;o=1&amp;a=0764540483" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;noindex&gt;&lt;/p&gt;</description>
      <pubDate>Tue, 28 Nov 2006 19:14:00 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:0018d1e8-7925-4ad7-975d-1e1cdefbdcf9</guid>
      <author>Cooper</author>
      <link>http://cooper.ezlibrary.com/articles/2006/11/28/iptables_against_malicious_traffic</link>
      <category>Linux</category>
      <category>firewall</category>
      <category>iptables</category>
      <category>crawler</category>
      <category>malicious traffic</category>
      <category>save</category>
      <category>restore</category>
      <category>robots</category>
      <enclosure length="3717" type="image/gif" url="http://cooper.ezlibrary.com/files/iptables_list1.gif"/>
    </item>
    <item>
      <title>HowTo Install typo on Red Hat EL3</title>
      <description>&lt;p&gt;Here is a typo installation guide based on the folowing: 
&lt;noindex&gt;
&lt;a rel="nofollow" href="http://www.typosphere.org/trac/wiki/TypoOnFreebsd"&gt; 
http://www.typosphere.org/trac/wiki/TypoOnFreebsd&lt;/a&gt;&lt;/noindex&gt;&lt;/p&gt;

&lt;h2&gt;1. Install Ruby 1.8.4&lt;/h2&gt;

&lt;p&gt;Download and install ruby from the stable release 1.8.4
&lt;noindex&gt;&lt;a href="http://www.ruby-lang.org/en/20020102.html"&gt; http://www.ruby-lang.org/en/20020102.html&lt;/a&gt;&lt;/noindex&gt;&lt;/p&gt;

&lt;h2&gt;2. Install gems&lt;/h2&gt;

&lt;pre&gt;
$cd
$wget http://rubyforge.org/frs/download.php/5207/rubygems-0.8.11.tgz
$tar xvzf rubygems-0.8.11.tgz
$cd rubygems-0.8.11
$ruby setup.rb
&lt;/pre&gt;

&lt;h2&gt;3. Install Rails&lt;/h2&gt;

&lt;pre&gt;
$gem update
$gem install rails --include-dependencies 
&lt;/pre&gt;

&lt;h2&gt;4. Download and install FastCGI Development Kit&lt;/h2&gt;

&lt;pre&gt;
$ wget fastcgi.com/dist/fcgi-2.4.0.tar.gz | tar xfz -
$ copy fcgi-2.4.0 /usr/local/src/fcgi-2.4.0
$ cd /usr/local/src/fcgi-2.4.0
$ ./configure
$ make
$ sudo make install
&lt;/pre&gt;

&lt;h2&gt;5.  Install FCGI bindings for Ruby&lt;/h2&gt;

&lt;pre&gt;
$ sudo gem install fcgi
&lt;/pre&gt;

&lt;h2&gt;6. Download and Install typo&lt;/h2&gt;

&lt;pre&gt;
# /usr/sbin/adduser typo_user
# passwd typo_user 
$ svn checkout svn://leetsoft.com/typo/trunk typo
$ cp -R typo /home/typo_user/websites/www.mysite.com
&lt;/pre&gt;

&lt;h2&gt;7. Configuring Typo&lt;/h2&gt;

&lt;p&gt;Replace &lt;/p&gt;

&lt;div class="typocode"&gt;&lt;pre&gt;&lt;code class="typocode_default "&gt;/usr/bin/env ruby &lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;with &lt;/p&gt;

&lt;div class="typocode"&gt;&lt;pre&gt;&lt;code class="typocode_default "&gt;/usr/local/bin/ruby &lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;in &lt;div class="typocode"&gt;&lt;pre&gt;&lt;code class="typocode_default "&gt;public/dispatch.fcgi&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt; and &lt;div class="typocode"&gt;&lt;pre&gt;&lt;code class="typocode_default "&gt;public/dispatch.rb&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;.&lt;/p&gt;

&lt;h2&gt;8. Database&lt;/h2&gt;

&lt;h3&gt;8.1 Install Ruby/MySQL&lt;/h3&gt;

&lt;p&gt;&lt;noindex&gt;(http://www.tmtm.org/en/mysql/ruby/)&lt;/noindex&gt;&lt;/p&gt;

&lt;h3&gt;8.2 Create database in MySQL&lt;/h3&gt;

&lt;pre&gt;
mysql -p
create database typo_user_typo CHARACTER SET utf8;
grant all on typo_user_typo.* to 'typo_user'@'localhost' \
identified by 'typo_password';
flush privileges;
use typo_user_typo;
source /home/typo_user/websites/www.mysite.com/db/schema.mysql.sql;
&lt;/pre&gt;

&lt;p&gt;Edit config/database.yml:&lt;/p&gt;

&lt;pre&gt;
login: &amp;login
  adapter: mysql
  host: localhost
  username: typo_user
  password: typo_password
  socket: /var/lib/mysql/mysql.sock
  encoding: utf8

development:
  database: typo_user_typo
  &lt;&lt;: *login

test:
  database: typo_user_typo
  &lt;&lt;: *login

production:
  database: typo_user_typo
  &lt;&lt;: *login
&lt;/pre&gt;

&lt;h3&gt;8.3 Update the database-schema&lt;/h3&gt;

&lt;pre&gt;
$rake migrate
&lt;/pre&gt;

&lt;h2&gt;9. Lighttpd&lt;/h2&gt;

&lt;p&gt;Download from 
&lt;noindex&gt;&lt;a href="http://www.lighttpd.net/download/lighttpd-1.4.11.tar.gz"&gt;
http://www.lighttpd.net/download/lighttpd-1.4.11.tar.gz&lt;/a&gt;&lt;/noindex&gt;
Extract to /usr/local/src/lighttpd-1.4.11&lt;/p&gt;

&lt;pre&gt;
$ cd /usr/local/src/lighttpd-1.4.11
$ ./configure
$ make
$ su -
# make install
# exit
&lt;/pre&gt;

&lt;p&gt;Copy config-file from /home/typo_user/websites/www.mysite.com/config to  /etc/lighttpd/lighttpd.conf and then edit:&lt;/p&gt;

&lt;pre&gt;
server.pid-file             = "/var/run/typo-typo_user.pid"
server.port                 = 3000
server.bind                 = "127.0.0.1"
#server.event-handler        = "freebsd-kqueue"
server.name                 = "www.mysite.com"

server.modules              = ( "mod_rewrite", "mod_fastcgi", "mod_accesslog" )
server.indexfiles           = ( "dispatch.fcgi" )
server.document-root        = "/home/typo_user/websites/www.mysite.com/public"
server.error-handler-404    = "/dispatch.fcgi"
server.errorlog             = "/home/typo_user/websites/www.mysite.com/log/error.log"
accesslog.filename          = "/home/typo_user/websites/www.mysite.com/log/access.log"

url.rewrite = ( "^/$" =&gt; "index.html", "^([^.]+)$" =&gt; "$1.html" )

#### fastcgi module
fastcgi.server =  (
   ".fcgi" =&gt; (
        "typo" =&gt; (
               "min-procs" =&gt; 4,
               "max-procs" =&gt; 4,
               "socket" =&gt; "/home/typo_user/websites/www.mysite.com/tmp/typo-typo_user.socket",
               "bin-path" =&gt; "/home/typo_user/websites/www.mysite.com/public/dispatch.fcgi",
               "bin-environment" =&gt; ("RAILS_ENV" =&gt; "production" ),
               "idle-timeout" =&gt; 120
                )
           )
&lt;/pre&gt;

&lt;p&gt;Copy /usr/local/src/lighttpd-1.4.11/doc/rc.lighttpd.redhat to /etc/rc.d/init.d/lighttpd. 
Replace the line&lt;/p&gt;

&lt;p&gt;lighttpd=&amp;#8221;/usr/sbin/lighttpd&amp;#8221; &lt;/p&gt;

&lt;p&gt;with&lt;/p&gt;

&lt;p&gt;lighttpd=&amp;#8221;/usr/local/sbin/lighttpd&amp;#8221; &lt;/p&gt;

&lt;p&gt;Start lighttpd server  /etc/rc.d/init.d/lighttpd start&lt;/p&gt;</description>
      <pubDate>Tue, 04 Jul 2006 14:52:00 -0500</pubDate>
      <guid isPermaLink="false">urn:uuid:58b61e48-29f9-4b3e-9694-e370616ade2d</guid>
      <author>Cooper</author>
      <link>http://cooper.ezlibrary.com/articles/2006/07/04/typo_on_RHEL3</link>
      <category>Typo</category>
      <category>Ruby</category>
      <category>Linux</category>
      <category>typo</category>
      <category>ruby</category>
      <category>linux</category>
      <category>redhat</category>
    </item>
  </channel>
</rss>
