- 论坛徽章:
- 0
|
刚刚在nb网站上看到不支持altq。
然后看到http://nedbsd.nl/~ppostma/pf/altq.html
NetBSD 3.0 supports pf, but there's no ALTQ support. The patches on this page adds support for ALTQ. The reason why this patch is not yet in -current is because it makes ALTQ dependent on pf and many NetBSD developers don't want that. The ALTQ API would need some changes to allow integration of both pf and IP Filter. The guys from KAME have promised to write a sane API since 2003/6, but nothing has happened yet. So that's why I've started to make these patches. The patches are for 3.0 and -current, for 2.0 see the PF LKM for NetBSD 2 page.
大致翻译下就是:
netbsd3.0支持pf,但是不支持ALTQ。本页的补丁加入了ALTQ支持。为什么补丁没有在发行版本中出现的原因是 该补丁导致了ALTQ依赖于pf,很多开发者都不希望这样。ALTQ API要集成在pf和IP filter需要做一些修改。2003年6月,KAME的家伙保证编一个健全的API,但是到现在还是老样子。这就是为什么我要编这些补丁的原因。这些补丁是针对3.0和当前版本的,2.0的补丁见PF LKM for NetBSD 2 page.
下面提供了大致步骤
打补丁:
# cd /usr/src/sys
# patch -p0 < /path/to/altq-netbsd-3.diff
在内核配置文件中加入option ALTQ。重新编译内核,安装新内核并用其启动。
# rm -rf /usr/include/altq/* //删掉旧的ALTQ头文件
# cd /usr/src/sys/altq
# make includes //安装新的头文件
重新编译并安装pfctl
# cd /usr/src/usr.sbin/pf/pfctl
# make cleandir && make && make install
请教在netbsd下使用pf的经验(我的试验机器是compaq evo d310。使用的是ms 6541的主板。bios和fb, ob都冲突。)
另外在NetBSD Packet Filter information中有
You can only use ALTQ by using PF as LKM and having ALTQ enabled in the kernel.
是否是说只能用LKM模块方式或者kernel配置文件中激活option ALTQ?难道OB中还有其它方式?? |
|