FreeBSD

共692篇文章。

机房啊,机房……

Security

说说这周发生的事情。

这周初步解决了困扰很久的ssh密码扫描蠕虫的问题。习惯上我是上来就禁止口令登录的,所以这种扫描(据蜘蛛说,这是一种叫做scanssh的虫子,不过我手头没有蜜罐资源,所以也就没有捕捉样本)没什么用,不过这种虫子讨厌的地方在于它能够花费几个小时的时间去穷举你的口令,而且是不同的帐号,这会产生几百KB的日志。

阅读全文…:机房啊,机房……(本文约666字,阅读大致需要2分钟)

根据协议栈特征判断操作系统

Security

传统上判断操作系统是通过扫描进行的,例如,发一个SYN+FIN的包,看对方如何回应,由于各式各样的原因,包括性能考虑,或编程上的疏忽,这些包会留有一些特征。这类典型的应用是nmap和NetCraft。

这类方法有它的作用,对于尝试攻击的人来说,这些特征能够给他们相当多的信息,这些信息甚至足以让攻击者找到一击毙命的攻击方法(例如,发现那是一台没有打过补丁、没有防火墙的Windows)。然而,它也有一些不可避免的局限:

  • 并不是所有地区的法律都允许网络扫描行为。除此之外,这种行为通常也是不受欢迎的,至少它不是一种友好的行为(事实上,发生在互联网上的扫描行为几乎都不是友善的)。
  • 对于NAT后的服务器,它只能判断出NAT网关所用的操作系统,而无法判断其后的系统所用的操作系统。
  • 事后的「反击」或「报复」性扫描往往于事无补,在第一击的时候遏制攻击,对于安全相当重要。
阅读全文…:根据协议栈特征判断操作系统(本文约1363字,阅读大致需要3分钟)

看来还是按操作系统封比较有效

Security

之前一直有些头疼的SSH蠕虫问题,很令人吃惊地找到了一个解决方法。在扫描感染IP的TCP特征之后,发现这些机器的共同特征——他们都用的是Linux。

很幸运地,我不使用Linux,FreeBSD附带的pf提供了一项非常有意思的强大能力(这项能力源于OpenBSD的pf),即按操作系统来控制访问。其它用法还包括例如,禁止没有打补丁的Windows访问,让不同用的操作系统访问得到不同的内容等等。

考虑到Linux如此容易感染SSH蠕虫,我决定采用下述pf策略:

block in quick proto tcp from any os "Linux" to any port ssh
阅读全文…:看来还是按操作系统封比较有效(本文约442字,阅读大致需要1分钟)

When you can use a different license?

Development

To quote M. Warner Losh (with permission):

So long as there’s old code, you can’t replace the copyright,unlessthe old code that remains is not protectable by copyright any more(eg, if it is just { and } lines).If you add your own implementation of the 50 lines in question, or move them to a separate file, then you can put your own copyright/license statement on the code you wrote.

阅读全文…:When you can use a different license?(本文约153字,阅读大致需要1分钟)

ULE returned to its "experimental" state

Kernel

An internal discussion happened in -developers@ has finally decided that we put ULE scheduler back to the “experimental” state, in order to reduce the number of reports about crashes and other bad things for it.

Currently the fact that ULE is not being actively maintained is the cause of this change. We hope that we can find someone who has interest on it. Additionally, it is worthy to have a look at David Xu’s new “CORE” scheduler (a ULE fork, using Linux’s algorithm).

阅读全文…:ULE returned to its "experimental" state(本文约102字,阅读大致需要1分钟)
搜索文章…(按ESC退出)