<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Li Yue [学习笔记] &#187; 安全</title>
	<atom:link href="http://www.liyue.org/tech/archives/tag/%e5%ae%89%e5%85%a8/feed" rel="self" type="application/rss+xml" />
	<link>http://www.liyue.org/tech</link>
	<description>技术笔记</description>
	<lastBuildDate>Sun, 18 Jul 2010 02:14:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Linux系统的hosts.allow和hosts.deny</title>
		<link>http://www.liyue.org/tech/archives/33</link>
		<comments>http://www.liyue.org/tech/archives/33#comments</comments>
		<pubDate>Thu, 07 Aug 2008 14:25:26 +0000</pubDate>
		<dc:creator>李悦</dc:creator>
				<category><![CDATA[系统]]></category>
		<category><![CDATA[安全]]></category>

		<guid isPermaLink="false">http://www.liyue.org/tech/?p=33</guid>
		<description><![CDATA[　　奥运了，各单位对信息安全特别重视，要求加强服务器安全，所有服务器统一修改密码，关闭WEB服务器除了80端口的所有端口，关闭远程控制SSH。统一使用单位的VPN服务来管理。关闭外部的所有链接，除了VPN服务器的，这样，就必须通过VPN来远程控制服务器，VPN只有管理员才有账户登录权限。 　　限制访问主机的服务。可以限制，只能是指定的IP才能访问本机的某个服务。 　　编辑/etc/hosts.allow 　　加入下面的一行，允许10.0.0.1通过ssh服务链接服务器： 　　sshd:10.0.0.1 　　编辑/etc/hosts.deny，加入： 　　ALL: ALL@ALL, PARANOID 　　拒绝其他所有的服务请求。 　　通过上述设置后，先通过登录VPN系统认证后，再使用SSH登录服务器就可以了。]]></description>
		<wfw:commentRss>http://www.liyue.org/tech/archives/33/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>优化WEB服务器防止攻击</title>
		<link>http://www.liyue.org/tech/archives/27</link>
		<comments>http://www.liyue.org/tech/archives/27#comments</comments>
		<pubDate>Thu, 07 Aug 2008 14:14:51 +0000</pubDate>
		<dc:creator>李悦</dc:creator>
				<category><![CDATA[系统]]></category>
		<category><![CDATA[安全]]></category>

		<guid isPermaLink="false">http://www.liyue.org/tech/?p=27</guid>
		<description><![CDATA[　前些天学校网站变得很慢，进行了一些调整来缓解。先把上面的动态程序移走，只保留纯html静态网页。只运行apache，问题没有解决。netstat查看有不少SYN_RECV、TIME_WAIT、FIN_WAIT_1等状态存在的链接。查看资料，可能是SYN Flood攻击.　　作如下配置来缓解： 1、增加未完成连接队列（q0)的最大长度。 echo 2048&#62;/proc/sys/net/ipv4/tcp_max_syn_backlog 2、启动SYN_cookie。 echo 1&#62;/proc/sys/net/ipv4/tcp_syncookies 这些是被动的方法，治标不治本。 把上述命令加入启动脚本 /etc/rc.d/boot.local（SUSE LINUX）/etc/rc.local(redhat linux) 3、iptables的设置，引用自CU 防止同步包洪水（Sync Flood） # iptables -A FORWARD -p tcp &#8211;syn -m limit &#8211;limit 1/s -j ACCEPT 也有人写作 #iptables -A INPUT -p tcp &#8211;syn -m limit &#8211;limit 1/s -j ACCEPT &#8211;limit 1/s 限制syn并发数每秒1次，可以根据自己的需要修改 防止各种端口扫描 # iptables -A FORWARD -p tcp &#8211;tcp-flags SYN,ACK,FIN,RST RST [...]]]></description>
		<wfw:commentRss>http://www.liyue.org/tech/archives/27/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
