<?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>评论：vps中的iptables规则设置范例</title>
	<atom:link href="http://www.xiaozhou.net/ittech/linux-ittech/vps_iptables_setting_example-2010-02-26.htm/feed" rel="self" type="application/rss+xml" />
	<link>http://www.xiaozhou.net/ittech/linux-ittech/vps_iptables_setting_example-2010-02-26.htm</link>
	<description>君看一叶舟，出没风波里</description>
	<lastBuildDate>Tue, 07 Sep 2010 12:06:12 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>来自：Timothy</title>
		<link>http://www.xiaozhou.net/ittech/linux-ittech/vps_iptables_setting_example-2010-02-26.htm/comment-page-1#comment-1373</link>
		<dc:creator>Timothy</dc:creator>
		<pubDate>Wed, 24 Mar 2010 15:56:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.xiaozhou.net/?p=543#comment-1373</guid>
		<description>感觉是有些区别的，有些命令Redhat有，但是debian没有。不过我也只是个Linux初学者，以前一直被Windows毒太久。有空多交流，链接回头我加上。</description>
		<content:encoded><![CDATA[<p>感觉是有些区别的，有些命令Redhat有，但是debian没有。不过我也只是个Linux初学者，以前一直被Windows毒太久。有空多交流，链接回头我加上。</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：Blinux</title>
		<link>http://www.xiaozhou.net/ittech/linux-ittech/vps_iptables_setting_example-2010-02-26.htm/comment-page-1#comment-1371</link>
		<dc:creator>Blinux</dc:creator>
		<pubDate>Wed, 24 Mar 2010 13:38:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.xiaozhou.net/?p=543#comment-1371</guid>
		<description>Hi,Timothy.
Sorry,我发现我在留言中有个地方写错了,RH系保存iptables规则是#service iptables save.
关于/etc/init.d .RH系需要做软链接到指定运行级别的目录.chkconfig就是做这个工作.
另外我查了下debian系下iptables,原来其中一种比较好的方式就是你blog提到的.
看来RH系和Debian系还是有一点小差别的.
PS:对你的blog内容比较感兴趣,做个友链吧,done.</description>
		<content:encoded><![CDATA[<p>Hi,Timothy.<br />
Sorry,我发现我在留言中有个地方写错了,RH系保存iptables规则是#service iptables save.<br />
关于/etc/init.d .RH系需要做软链接到指定运行级别的目录.chkconfig就是做这个工作.<br />
另外我查了下debian系下iptables,原来其中一种比较好的方式就是你blog提到的.<br />
看来RH系和Debian系还是有一点小差别的.<br />
PS:对你的blog内容比较感兴趣,做个友链吧,done.</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：Timothy</title>
		<link>http://www.xiaozhou.net/ittech/linux-ittech/vps_iptables_setting_example-2010-02-26.htm/comment-page-1#comment-1368</link>
		<dc:creator>Timothy</dc:creator>
		<pubDate>Tue, 23 Mar 2010 01:55:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.xiaozhou.net/?p=543#comment-1368</guid>
		<description>@Blinux: 好像是有点差别，Ubuntu中我用apt-get install装的iptables，系统好像没有把它作为一个服务来安装。 /sbin/iptables save 会提示无效的参数。
刚把VPS重启了一次，用/sbin/iptables -L -n 命令，发现iptables的规则确实生效了，说明脚本放/etc/init.d确实被执行了

root@vps:/home/timothy# /sbin/iptables -L -n
Chain INPUT (policy DROP)
target     prot opt source               destination         
ACCEPT     all  --  0.0.0.0/0            0.0.0.0/0           
ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           tcp dpt:20 
ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           tcp dpt:21 
ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           tcp dpt:25 
ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           tcp dpt:80 
ACCEPT     all  --  0.0.0.0/0            0.0.0.0/0           state RELATED,ESTABLISHED 
DROP       all  --  0.0.0.0/0            0.0.0.0/0           state INVALID,NEW</description>
		<content:encoded><![CDATA[<p>@Blinux: 好像是有点差别，Ubuntu中我用apt-get install装的iptables，系统好像没有把它作为一个服务来安装。 /sbin/iptables save 会提示无效的参数。<br />
刚把VPS重启了一次，用/sbin/iptables -L -n 命令，发现iptables的规则确实生效了，说明脚本放/etc/init.d确实被执行了</p>
<p>root@vps:/home/timothy# /sbin/iptables -L -n<br />
Chain INPUT (policy DROP)<br />
target     prot opt source               destination<br />
ACCEPT     all  &#8212;  0.0.0.0/0            0.0.0.0/0<br />
ACCEPT     tcp  &#8212;  0.0.0.0/0            0.0.0.0/0           tcp dpt:20<br />
ACCEPT     tcp  &#8212;  0.0.0.0/0            0.0.0.0/0           tcp dpt:21<br />
ACCEPT     tcp  &#8212;  0.0.0.0/0            0.0.0.0/0           tcp dpt:25<br />
ACCEPT     tcp  &#8212;  0.0.0.0/0            0.0.0.0/0           tcp dpt:80<br />
ACCEPT     all  &#8212;  0.0.0.0/0            0.0.0.0/0           state RELATED,ESTABLISHED<br />
DROP       all  &#8212;  0.0.0.0/0            0.0.0.0/0           state INVALID,NEW</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：Blinux</title>
		<link>http://www.xiaozhou.net/ittech/linux-ittech/vps_iptables_setting_example-2010-02-26.htm/comment-page-1#comment-1329</link>
		<dc:creator>Blinux</dc:creator>
		<pubDate>Mon, 22 Mar 2010 14:21:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.xiaozhou.net/?p=543#comment-1329</guid>
		<description>似乎这种方法不是很明智.
1.iptables写完规则后用 /sbin/iptables save 就可以保存的,不必如此麻烦.iptables也是一个服务.
chkconfig iptables on   . 这样,iptables就会每次都起来.
2.直接将脚本放到 /etc/init.d 是不会开机随之启动的吧.需要做软链接的吧,或者用chkconfig --add

PS:当然你用的是Ubuntu,我的方法是redhat系的,难道有差别?</description>
		<content:encoded><![CDATA[<p>似乎这种方法不是很明智.<br />
1.iptables写完规则后用 /sbin/iptables save 就可以保存的,不必如此麻烦.iptables也是一个服务.<br />
chkconfig iptables on   . 这样,iptables就会每次都起来.<br />
2.直接将脚本放到 /etc/init.d 是不会开机随之启动的吧.需要做软链接的吧,或者用chkconfig &#8211;add</p>
<p>PS:当然你用的是Ubuntu,我的方法是redhat系的,难道有差别?</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：Timothy</title>
		<link>http://www.xiaozhou.net/ittech/linux-ittech/vps_iptables_setting_example-2010-02-26.htm/comment-page-1#comment-774</link>
		<dc:creator>Timothy</dc:creator>
		<pubDate>Sat, 27 Feb 2010 14:39:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.xiaozhou.net/?p=543#comment-774</guid>
		<description>@淘宝网首页: 呵呵，Linux折腾起来确实有意思。</description>
		<content:encoded><![CDATA[<p>@淘宝网首页: 呵呵，Linux折腾起来确实有意思。</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：Timothy</title>
		<link>http://www.xiaozhou.net/ittech/linux-ittech/vps_iptables_setting_example-2010-02-26.htm/comment-page-1#comment-773</link>
		<dc:creator>Timothy</dc:creator>
		<pubDate>Sat, 27 Feb 2010 14:38:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.xiaozhou.net/?p=543#comment-773</guid>
		<description>@ZWWOOOOO: 嗯，还是单独的输入法好。</description>
		<content:encoded><![CDATA[<p>@ZWWOOOOO: 嗯，还是单独的输入法好。</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：Timothy</title>
		<link>http://www.xiaozhou.net/ittech/linux-ittech/vps_iptables_setting_example-2010-02-26.htm/comment-page-1#comment-772</link>
		<dc:creator>Timothy</dc:creator>
		<pubDate>Sat, 27 Feb 2010 14:38:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.xiaozhou.net/?p=543#comment-772</guid>
		<description>@久酷: 嗯，打算单独装个输入法</description>
		<content:encoded><![CDATA[<p>@久酷: 嗯，打算单独装个输入法</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：淘宝网首页</title>
		<link>http://www.xiaozhou.net/ittech/linux-ittech/vps_iptables_setting_example-2010-02-26.htm/comment-page-1#comment-769</link>
		<dc:creator>淘宝网首页</dc:creator>
		<pubDate>Sat, 27 Feb 2010 10:51:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.xiaozhou.net/?p=543#comment-769</guid>
		<description>不错，很强</description>
		<content:encoded><![CDATA[<p>不错，很强</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：zwwooooo</title>
		<link>http://www.xiaozhou.net/ittech/linux-ittech/vps_iptables_setting_example-2010-02-26.htm/comment-page-1#comment-767</link>
		<dc:creator>zwwooooo</dc:creator>
		<pubDate>Sat, 27 Feb 2010 10:40:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.xiaozhou.net/?p=543#comment-767</guid>
		<description>看来你已经开始上手了，云输入还不成熟，还是直接安装输入法吧</description>
		<content:encoded><![CDATA[<p>看来你已经开始上手了，云输入还不成熟，还是直接安装输入法吧</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：久酷</title>
		<link>http://www.xiaozhou.net/ittech/linux-ittech/vps_iptables_setting_example-2010-02-26.htm/comment-page-1#comment-763</link>
		<dc:creator>久酷</dc:creator>
		<pubDate>Sat, 27 Feb 2010 01:18:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.xiaozhou.net/?p=543#comment-763</guid>
		<description>还是不要用云输入法了吧,毕竟与网速之类有关,不如直接安装的好.....呼呼</description>
		<content:encoded><![CDATA[<p>还是不要用云输入法了吧,毕竟与网速之类有关,不如直接安装的好&#8230;..呼呼</p>
]]></content:encoded>
	</item>
</channel>
</rss>
