<?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>无色无味(杨波) 的Web Log(博客) &#187; Linux</title>
	<atom:link href="http://blog.ghitr.com/index.php/archives/category/linux/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.ghitr.com</link>
	<description>杨波,ccna,h3cse-security/Email:yangbo@ghitr.com</description>
	<lastBuildDate>Thu, 29 Jul 2010 04:16:42 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>OpenVPN and CentOS 5 Installation and Configuration Guide</title>
		<link>http://blog.ghitr.com/index.php/archives/671</link>
		<comments>http://blog.ghitr.com/index.php/archives/671#comments</comments>
		<pubDate>Tue, 09 Feb 2010 17:15:04 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[电脑网络]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[lzo]]></category>
		<category><![CDATA[openvpn]]></category>
		<category><![CDATA[release]]></category>
		<category><![CDATA[yum]]></category>
		<category><![CDATA[关怀IT人]]></category>
		<category><![CDATA[无色无味]]></category>
		<category><![CDATA[杨波]]></category>

		<guid isPermaLink="false">http://blog.ghitr.com/index.php/archives/671</guid>
		<description><![CDATA[
Many ppl found that installing VPN on linux is not that easy, the abvailable installation guides on VPN is often limited. I have tried a lot of installation guides and finally get it connected successfully.
Here are the steps to guide you installed a secure connection between your? CentOS5 and Windows with OpenVPN open source application.
&#160;



&#160;
 [...]]]></description>
		<wfw:commentRss>http://blog.ghitr.com/index.php/archives/671/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>在Linux中使用证书登录SSH.</title>
		<link>http://blog.ghitr.com/index.php/archives/445</link>
		<comments>http://blog.ghitr.com/index.php/archives/445#comments</comments>
		<pubDate>Mon, 20 Jul 2009 09:07:32 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[个人案例简汇]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[证书登录]]></category>

		<guid isPermaLink="false">http://blog.ghitr.com/?p=445</guid>
		<description><![CDATA[1.生成ssh 证书（ssh-keygen） ssh-keygen -t rsa
2.然后将私钥和公钥传输到你的电脑。
3.使用SecureCRT用证书登录SSH，奇怪SecureCRT用的是公钥做登录验证。
[ad#ad_article_2]

a) 
b) 
c) 选择publickey,并选择传输回来的公钥。回车，确定，登录成功！
3.2 使用SecureCRT生成公钥和私钥，并用之来登录。
a.先用SecureCRT生成1024位的RSA格式的密钥。
B.然后将公钥 添加到authorized_keys文件内。
C.开始登录，因为服务端禁用了密码登录，所以会提示你选择公钥。
4.让Putty使用证书登录。
1.需先将Putty Generator转换证书格式，

2.
3.选择ssh-2 rsa。然后保存转换后的私钥。
4.使用putty 连接SSH

然后在auth中选择转换后的证书。

最后登录：


如果你私钥没有加密，那么就能够直接登录进去！如果私钥有密码，还需要输入私钥的密码。
 
 
关于sshd_config的配置。
PermitEmptyPasswords no &#8216;关闭空密码登录
PasswordAuthentication  no &#8217;关闭密码验证
PubkeyAuthentication yes &#8216;开启公钥验证
AuthorizedKeysFile      .ssh/authorized_keys &#8216;设置私钥文件。

]]></description>
		<wfw:commentRss>http://blog.ghitr.com/index.php/archives/445/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux爆本地提权漏洞 请立即更新udev程序</title>
		<link>http://blog.ghitr.com/index.php/archives/436</link>
		<comments>http://blog.ghitr.com/index.php/archives/436#comments</comments>
		<pubDate>Sun, 19 Jul 2009 14:24:56 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[udev]]></category>
		<category><![CDATA[本地提权]]></category>
		<category><![CDATA[漏洞]]></category>

		<guid isPermaLink="false">http://blog.ghitr.com/?p=436</guid>
		<description><![CDATA[Linux的udev程序再爆本地提权漏洞，本地用户可以轻易获得root权限，请立即更新udev程序。（2.4内核系统不受影响）
修复方法(修复前请备份重要数据)：
debian用户请执行apt-get update ; apt-get upgrade -y
centos用户请执行yum update udev
RedHat用户请使用官方rpm包更新或者购买RedHat的satellite服务。
攻击效果展示：
1. 在LINUX目录下建立test 帐户
2.下载 a脚本 在
http://milw0rm.com/exploits/8478
3.查看UDEV的PID  方法一: 先cat /proc/net/netlink
ffff810077587400 15  364    ffffffff 0        0        0000000000000000 2
ffff810037f81000 16  0      00000000 0        0        0000000000000000 2
ffff810077078400 18  0      00000000 0        0        0000000000000000 2
那个364就是 UDEV的进程,如果出现很多不知道哪一个用方法2
方法二:
另外最好通过ps aux &#124; grep udev获取pid 为365，然后再-1，把这个参数传给A脚本
然后在test 用户的当前目录里
按以下步骤运行
[haha@localhost ~]$ id
uid=501(haha) gid=502(haha) groups=502(haha)
[haha@localhost ~]$sh a 364
（据笔者测试，这里的364可以由任意字符替代，亦可成功。）
suid.c: [...]]]></description>
		<wfw:commentRss>http://blog.ghitr.com/index.php/archives/436/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>在FreeBSD中启用IPFirewall/natd和使用Dummynet进行带宽限制</title>
		<link>http://blog.ghitr.com/index.php/archives/359</link>
		<comments>http://blog.ghitr.com/index.php/archives/359#comments</comments>
		<pubDate>Thu, 09 Jul 2009 07:36:56 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[dummynet]]></category>
		<category><![CDATA[freebsd]]></category>
		<category><![CDATA[IPfirewall]]></category>
		<category><![CDATA[kernel]]></category>
		<category><![CDATA[limit bw]]></category>
		<category><![CDATA[natd]]></category>
		<category><![CDATA[带宽限制]]></category>

		<guid isPermaLink="false">http://blog.ghitr.com/?p=359</guid>
		<description><![CDATA[1.编释内核启用IPFIREWALL和IPFIVERT
  编释内核启用DUMMYNET
2.cd /usr/src
  make buildkernel KERNCONF=ConfigName
  make installkernel KERNCONF=ConfigName
3.添加相应规则（此处添加的只为简单规则，末做安全设置）
ipfw -q add 00001 allow ip from 127.0.0.1 to 127.0.0.1 via lo0
ipfw -q add 00002 deny ip from 127.0.0.0/8 to any
ipfw -q add 00003 deny ip from any to 127.0.0.0/8
ipfw -q add 00004 deny ip from 1.1.1.0/24 to any in via rl0  
ipfw [...]]]></description>
		<wfw:commentRss>http://blog.ghitr.com/index.php/archives/359/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>自定义FreeBSD的内核</title>
		<link>http://blog.ghitr.com/index.php/archives/357</link>
		<comments>http://blog.ghitr.com/index.php/archives/357#comments</comments>
		<pubDate>Wed, 08 Jul 2009 04:30:24 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[dummynet]]></category>
		<category><![CDATA[freebsd]]></category>
		<category><![CDATA[IPfirewall]]></category>
		<category><![CDATA[ipfw]]></category>
		<category><![CDATA[kernel]]></category>
		<category><![CDATA[myKernel]]></category>
		<category><![CDATA[编释内核]]></category>
		<category><![CDATA[自定义内核]]></category>

		<guid isPermaLink="false">http://blog.ghitr.com/?p=357</guid>
		<description><![CDATA[first: cd /usr/src/sys/i386/config
       cp GENERIC MyKernel
and
    vi MyKernel
    add options or rm options
如果想要支持IPFirewall功能。需要添加以下一些options

#IPFW
options IPFIREWALL               #启用IPFW
options IPFIREWALL_VERBOSE
options IPFIREWALL_VERBOSE_LIMIT=100
options IPFIREWALL_DEFAULT_TO_ACCEPT     #让IPFW的默认规则为允许所有的包。
options IPDIVERT      [...]]]></description>
		<wfw:commentRss>http://blog.ghitr.com/index.php/archives/357/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>通过FTP方式安装 FreeBSD</title>
		<link>http://blog.ghitr.com/index.php/archives/355</link>
		<comments>http://blog.ghitr.com/index.php/archives/355#comments</comments>
		<pubDate>Wed, 08 Jul 2009 02:19:35 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[freebsd]]></category>
		<category><![CDATA[ftp方式安装]]></category>
		<category><![CDATA[installer@freebsd]]></category>

		<guid isPermaLink="false">http://blog.ghitr.com/?p=355</guid>
		<description><![CDATA[    今天准备让FreeBSD正式上线! 所以需要把系统安装到物理机中，  可是这台机器只有CDROM，而FreeBSD 6.4有3张CD。如果全下来刻盘就太浪费了，且以前我下过DVD版的。所以想通过FTP的方式来安装 。
   用3CDaemon搭建了一个FTPserver ,可以系统在安装的时候 就是不能登录！！！
   抓包一看，FreeBSD通过FTP方式安装的时候 ，使用的用户名是ftp,密码为installer@hostname
  新建一个FTP用户 密码设成它所需要的，
安装就开始跑起来了！！！

]]></description>
		<wfw:commentRss>http://blog.ghitr.com/index.php/archives/355/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>FreeBSD编释支持ipfw pipe的内核</title>
		<link>http://blog.ghitr.com/index.php/archives/353</link>
		<comments>http://blog.ghitr.com/index.php/archives/353#comments</comments>
		<pubDate>Tue, 07 Jul 2009 15:28:32 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[freebsd]]></category>
		<category><![CDATA[编释内核]]></category>

		<guid isPermaLink="false">http://blog.ghitr.com/?p=353</guid>
		<description><![CDATA[options DUMMYNET #dummynet 
添加这个！

]]></description>
		<wfw:commentRss>http://blog.ghitr.com/index.php/archives/353/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>建立并安装一个定制的内核</title>
		<link>http://blog.ghitr.com/index.php/archives/351</link>
		<comments>http://blog.ghitr.com/index.php/archives/351#comments</comments>
		<pubDate>Mon, 06 Jul 2009 16:26:21 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[freebsd]]></category>
		<category><![CDATA[kernel]]></category>

		<guid isPermaLink="false">http://blog.ghitr.com/?p=351</guid>
		<description><![CDATA[因今天在重新编释FreeBSD的内核，所以找到此篇文章，先把此文章Copy过来 备份！
稍后 会重新发表一篇我自己的内核编释过程
 

 
　首先对内核构建目录做一个快速的浏览。 这里所提到的所有目录都在 /usr/src/sys 目录中； 也可以通过 /sys 来访问它。 这里的众多子目录包含了内核的不同部分， 但对我们所要完成的任务最重要的目录是 arch/conf，您将在这里编辑定制的内核配置； 以及 compile，编译过程中的文件将放置在这里。 arch 表示 i386、 alpha、 amd64、 ia64、 powerpc、 sparc64， 或 pc98 (在日本比较流行的另一种 PC 硬件开发分支)。在特定硬件架构目录中的文件只和特定的硬件有关； 而其余代码则是与机器无关的，则所有已经或将要移植并运行 FreeBSD 的平台上都共享这些代码。 文件目录是按照逻辑组织的，所支持的硬件设备、 文件系统， 以及可选的组件通常都在它们自己的目录中。
 
　　这一章提供的例子假定您使用 i386 架构的计算机。 如果您的情况不是这样，只需对目录名作相应的调整即可。

注意: 如果您的系统中 没有 /usr/src/sys 这样一个目录， 则说明没有安装内核源代码。安装它最简单的方法是通过以 root 身份运行 sysinstall， 选择 Configure， 然后是 Distributions、 src，选中其中的 base 和 sys。 如果您不喜欢 sysinstall 并且有一张 [...]]]></description>
		<wfw:commentRss>http://blog.ghitr.com/index.php/archives/351/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>编释自己的内核并安装后的结果：Permission denied</title>
		<link>http://blog.ghitr.com/index.php/archives/347</link>
		<comments>http://blog.ghitr.com/index.php/archives/347#comments</comments>
		<pubDate>Mon, 06 Jul 2009 15:49:27 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[freebsd]]></category>
		<category><![CDATA[Permission denied]]></category>

		<guid isPermaLink="false">http://blog.ghitr.com/?p=347</guid>
		<description><![CDATA[编释自己的内核并安装后
重启  立马PING同段的机器  结果提示：Permission denied
远程 也不能SSH上去。   为了验证是不是网络问题了
so
ping 127.0.0.1  通了
ssh hostname 通了！
突然想起，我内核中启用了 ipfw，肯定是默认策略的问题
so
ipfw list
果然  里面就一条策略  还是deny any to any
丫丫的！
添加策略吧！！！
我郁闷中   

]]></description>
		<wfw:commentRss>http://blog.ghitr.com/index.php/archives/347/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>在FreeBSD中 出现Protocol not available 错误</title>
		<link>http://blog.ghitr.com/index.php/archives/344</link>
		<comments>http://blog.ghitr.com/index.php/archives/344#comments</comments>
		<pubDate>Mon, 06 Jul 2009 14:08:09 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[freebsd]]></category>
		<category><![CDATA[ipfw]]></category>
		<category><![CDATA[protocol not available]]></category>

		<guid isPermaLink="false">http://blog.ghitr.com/?p=344</guid>
		<description><![CDATA[freebsd# ipfw -q add 10 allow all from any to 127.0.0.0/8
ipfw: getsockopt(IP_FW_ADD): Protocol not available
哎，我又要重新编释内核
[ad#ad_article_2]

]]></description>
		<wfw:commentRss>http://blog.ghitr.com/index.php/archives/344/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
