<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	>
<channel>
	<title>“ELM's log” 的评论</title>
	<atom:link href="http://blog.cost.edu.cn/wenzk/comments/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.cost.edu.cn/wenzk</link>
	<description>Just another Blog.cost.edu.cn Blogs weblog</description>
	<pubDate>Fri, 30 Jul 2010 10:49:01 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>&#187; 加强ssh服务器的安全@unixhater.com &#124; UNIX痛恨者 关于 巧用Recent模块加固Linux安全 的评论</title>
		<link>http://blog.cost.edu.cn/wenzk/archives/84/comment-page-1#comment-58</link>
		<dc:creator>&#187; 加强ssh服务器的安全@unixhater.com &#124; UNIX痛恨者</dc:creator>
		<pubDate>Tue, 13 Oct 2009 15:43:04 +0000</pubDate>
		<guid isPermaLink="false">http://blog.cost.edu.cn/wenzk/?p=84#comment-58</guid>
		<description>[...] 见http://blog.cost.edu.cn/wenzk/archives/84 [...]</description>
		<content:encoded><![CDATA[<p>[...] 见http://blog.cost.edu.cn/wenzk/archives/84 [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>unixhater.com 关于 巧用Recent模块加固Linux安全 的评论</title>
		<link>http://blog.cost.edu.cn/wenzk/archives/84/comment-page-1#comment-57</link>
		<dc:creator>unixhater.com</dc:creator>
		<pubDate>Mon, 12 Oct 2009 02:39:12 +0000</pubDate>
		<guid isPermaLink="false">http://blog.cost.edu.cn/wenzk/?p=84#comment-57</guid>
		<description>哦，明白了，谢谢</description>
		<content:encoded><![CDATA[<p>哦，明白了，谢谢</p>
]]></content:encoded>
	</item>
	<item>
		<title>wenzk 关于 巧用Recent模块加固Linux安全 的评论</title>
		<link>http://blog.cost.edu.cn/wenzk/archives/84/comment-page-1#comment-56</link>
		<dc:creator>wenzk</dc:creator>
		<pubDate>Sun, 11 Oct 2009 03:56:01 +0000</pubDate>
		<guid isPermaLink="false">http://blog.cost.edu.cn/wenzk/?p=84#comment-56</guid>
		<description>&lt;blockquote cite="#commentbody-55"&gt;
&lt;strong&gt;&lt;a href="#comment-55" rel="nofollow"&gt;unixhater.com&lt;/a&gt; :&lt;/strong&gt;
&#62;&#62;攻击停止一分钟以上自动解封
这是哪条命令实现的，也是Recent模块吗？如果我要一天后解封应该怎么做？
&lt;/blockquote&gt;
-A INPUT -m recent --update --seconds 60 --hitcount 20 --name PORTSCAN --rsource -j DROP
把60改成60*60*24就可以啦</description>
		<content:encoded><![CDATA[<blockquote cite="#commentbody-55"><p>
<strong><a href="#comment-55" rel="nofollow">unixhater.com</a> :</strong><br />
&gt;&gt;攻击停止一分钟以上自动解封<br />
这是哪条命令实现的，也是Recent模块吗？如果我要一天后解封应该怎么做？
</p></blockquote>
<p>-A INPUT -m recent &#8211;update &#8211;seconds 60 &#8211;hitcount 20 &#8211;name PORTSCAN &#8211;rsource -j DROP<br />
把60改成60*60*24就可以啦</p>
]]></content:encoded>
	</item>
	<item>
		<title>unixhater.com 关于 巧用Recent模块加固Linux安全 的评论</title>
		<link>http://blog.cost.edu.cn/wenzk/archives/84/comment-page-1#comment-55</link>
		<dc:creator>unixhater.com</dc:creator>
		<pubDate>Sat, 10 Oct 2009 21:47:35 +0000</pubDate>
		<guid isPermaLink="false">http://blog.cost.edu.cn/wenzk/?p=84#comment-55</guid>
		<description>&#62;&#62;攻击停止一分钟以上自动解封
这是哪条命令实现的，也是Recent模块吗？如果我要一天后解封应该怎么做？</description>
		<content:encoded><![CDATA[<p>&gt;&gt;攻击停止一分钟以上自动解封<br />
这是哪条命令实现的，也是Recent模块吗？如果我要一天后解封应该怎么做？</p>
]]></content:encoded>
	</item>
	<item>
		<title>wenzk 关于 巧用Recent模块加固Linux安全 的评论</title>
		<link>http://blog.cost.edu.cn/wenzk/archives/84/comment-page-1#comment-43</link>
		<dc:creator>wenzk</dc:creator>
		<pubDate>Mon, 21 Sep 2009 00:48:58 +0000</pubDate>
		<guid isPermaLink="false">http://blog.cost.edu.cn/wenzk/?p=84#comment-43</guid>
		<description>&lt;blockquote cite="#commentbody-42"&gt;
&lt;strong&gt;&lt;a href="#comment-42" rel="nofollow"&gt;duanhaixin&lt;/a&gt; :&lt;/strong&gt;
的确很强大，是不是可以用做流量限制，比如类似cisco路由器CAR的功能？
&lt;/blockquote&gt;
配合TC应该是没有问题，起到流量分类的作用。

这个模块还有一个好处就是可以在各个table中随便调用，如，某些事件可以在filter这个table中触发，然后再nat这个table中来检查。

这也是很艺术的配置：
*nat
:PREROUTING ACCEPT [0:0]
:POSTROUTING ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
&lt;code&gt;-A PREROUTING -p tcp -m tcp --dport 80 -m recent --update --seconds 60 --name SSH --rsource -j DNAT --to-destination 192.168.1.1:8080&lt;/code&gt;
COMMIT
# Completed on Mon Sep 21 08:34:56 2009
# Generated by iptables-save v1.4.0 on Mon Sep 21 08:34:56 2009
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
&lt;code&gt;-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
-A INPUT -p icmp -j ACCEPT
-A INPUT -i lo -j ACCEPT
-A INPUT -p tcp -m state --state NEW -m tcp --dport 22 -m recent --set --name SSH --rsource -j ACCEPT
-A INPUT -p tcp -m state --state NEW -m tcp --dport 80 -j ACCEPT
-A INPUT -j REJECT --reject-with icmp-host-prohibited&lt;/code&gt;
COMMIT

如果你访问该主机的80端口，默认访问的是该机器的web服务，但是在访问80端口之前先访问22端口，之后访问80端口就定向到别的机器了。</description>
		<content:encoded><![CDATA[<blockquote cite="#commentbody-42"><p>
<strong><a href="#comment-42" rel="nofollow">duanhaixin</a> :</strong><br />
的确很强大，是不是可以用做流量限制，比如类似cisco路由器CAR的功能？
</p></blockquote>
<p>配合TC应该是没有问题，起到流量分类的作用。</p>
<p>这个模块还有一个好处就是可以在各个table中随便调用，如，某些事件可以在filter这个table中触发，然后再nat这个table中来检查。</p>
<p>这也是很艺术的配置：<br />
*nat<br />
:PREROUTING ACCEPT [0:0]<br />
:POSTROUTING ACCEPT [0:0]<br />
:OUTPUT ACCEPT [0:0]<br />
<code>-A PREROUTING -p tcp -m tcp --dport 80 -m recent --update --seconds 60 --name SSH --rsource -j DNAT --to-destination 192.168.1.1:8080</code><br />
COMMIT<br />
# Completed on Mon Sep 21 08:34:56 2009<br />
# Generated by iptables-save v1.4.0 on Mon Sep 21 08:34:56 2009<br />
*filter<br />
:INPUT ACCEPT [0:0]<br />
:FORWARD ACCEPT [0:0]<br />
:OUTPUT ACCEPT [0:0]<br />
<code>-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT<br />
-A INPUT -p icmp -j ACCEPT<br />
-A INPUT -i lo -j ACCEPT<br />
-A INPUT -p tcp -m state --state NEW -m tcp --dport 22 -m recent --set --name SSH --rsource -j ACCEPT<br />
-A INPUT -p tcp -m state --state NEW -m tcp --dport 80 -j ACCEPT<br />
-A INPUT -j REJECT --reject-with icmp-host-prohibited</code><br />
COMMIT</p>
<p>如果你访问该主机的80端口，默认访问的是该机器的web服务，但是在访问80端口之前先访问22端口，之后访问80端口就定向到别的机器了。</p>
]]></content:encoded>
	</item>
	<item>
		<title>duanhaixin 关于 巧用Recent模块加固Linux安全 的评论</title>
		<link>http://blog.cost.edu.cn/wenzk/archives/84/comment-page-1#comment-42</link>
		<dc:creator>duanhaixin</dc:creator>
		<pubDate>Mon, 21 Sep 2009 00:35:06 +0000</pubDate>
		<guid isPermaLink="false">http://blog.cost.edu.cn/wenzk/?p=84#comment-42</guid>
		<description>的确很强大，是不是可以用做流量限制，比如类似cisco路由器CAR的功能？</description>
		<content:encoded><![CDATA[<p>的确很强大，是不是可以用做流量限制，比如类似cisco路由器CAR的功能？</p>
]]></content:encoded>
	</item>
	<item>
		<title>mafish 关于 OpenSSH与Putty 的评论</title>
		<link>http://blog.cost.edu.cn/wenzk/archives/58/comment-page-1#comment-41</link>
		<dc:creator>mafish</dc:creator>
		<pubDate>Mon, 14 Sep 2009 01:47:21 +0000</pubDate>
		<guid isPermaLink="false">http://blog.cost.edu.cn/wenzk/archives/58#comment-41</guid>
		<description>很详细, 谢谢楼主了.</description>
		<content:encoded><![CDATA[<p>很详细, 谢谢楼主了.</p>
]]></content:encoded>
	</item>
	<item>
		<title>wenzk 关于 arping for windows 的评论</title>
		<link>http://blog.cost.edu.cn/wenzk/archives/80/comment-page-1#comment-39</link>
		<dc:creator>wenzk</dc:creator>
		<pubDate>Sun, 16 Aug 2009 01:13:51 +0000</pubDate>
		<guid isPermaLink="false">http://blog.cost.edu.cn/wenzk/?p=80#comment-39</guid>
		<description>&lt;a href="#comment-37" rel="nofollow"&gt;@mystories&lt;/a&gt; 
I'll test on VISTA,thx a lot</description>
		<content:encoded><![CDATA[<p><a href="#comment-37" rel="nofollow">@mystories</a><br />
I&#8217;ll test on VISTA,thx a lot</p>
]]></content:encoded>
	</item>
	<item>
		<title>mystories 关于 arping for windows 的评论</title>
		<link>http://blog.cost.edu.cn/wenzk/archives/80/comment-page-1#comment-38</link>
		<dc:creator>mystories</dc:creator>
		<pubDate>Sat, 15 Aug 2009 11:54:09 +0000</pubDate>
		<guid isPermaLink="false">http://blog.cost.edu.cn/wenzk/?p=80#comment-38</guid>
		<description>My Windows is Vista</description>
		<content:encoded><![CDATA[<p>My Windows is Vista</p>
]]></content:encoded>
	</item>
	<item>
		<title>mystories 关于 arping for windows 的评论</title>
		<link>http://blog.cost.edu.cn/wenzk/archives/80/comment-page-1#comment-37</link>
		<dc:creator>mystories</dc:creator>
		<pubDate>Sat, 15 Aug 2009 11:53:16 +0000</pubDate>
		<guid isPermaLink="false">http://blog.cost.edu.cn/wenzk/?p=80#comment-37</guid>
		<description>can't use? What happened?

@echo off
:loop
ping -n 1 -w 500 %1 &#62; nul
for /f "tokens=1,2 delims=" %%i in ('arp -a') do if %%i==%1 echo Reply from %1 [%%j]
arp -d
goto loop</description>
		<content:encoded><![CDATA[<p>can&#8217;t use? What happened?</p>
<p>@echo off<br />
:loop<br />
ping -n 1 -w 500 %1 &gt; nul<br />
for /f &#8220;tokens=1,2 delims=&#8221; %%i in (&#8217;arp -a&#8217;) do if %%i==%1 echo Reply from %1 [%%j]<br />
arp -d<br />
goto loop</p>
]]></content:encoded>
	</item>
</channel>
</rss>
