LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
楼主: viogus

ebuild for 西厢计划(west-chamber)

[复制链接]
发表于 2010-3-16 09:14:07 | 显示全部楼层
Post by ak47wj;2075676
确认内核中那几个要求的模块已选中,内核自动加载模块选项已选中,编译内核后重启一遍电脑试试?

内核中那几个要求的模块已选中,重启过还是不行。

不过我用的ipset是ipset-2.4.7,升级到4.2后,出现:

ipset vroot@localhost~# /etc/init.d/west-chamber restart
* Stoping West Chamber ...
ipset v4.2: Kernel ip_set module is of protocol version 2.I'm of protocol version 4.
Please upgrade your kernel and/or ipset(8) utillity.
ipset v4.2: Kernel ip_set module is of protocol version 2.I'm of protocol version 4.
Please upgrade your kernel and/or ipset(8) utillity.
ipset v4.2: Kernel ip_set module is of protocol version 2.I'm of protocol version 4.
Please upgrade your kernel and/or ipset(8) utillity.

请问该怎么解决?

我的Kernel:
sys-kernel/linux-headers-2.6.30-r1
kernel 2.6.31-gentoo-r10 (AMD64)
回复 支持 反对

使用道具 举报

发表于 2010-3-16 09:45:47 | 显示全部楼层
Post by SDE;2075578
  1. include/linux/mm.h:454:63: warning: "NR_PAGEFLAGS" is not defined
复制代码


eselect kernel set 到2.6.31的版本再编译试试
回复 支持 反对

使用道具 举报

发表于 2010-3-16 10:45:32 | 显示全部楼层
教育网测试成功!!!!
看来局域网不能用的问题,还是要看你用的什么路由或者交换机阿!!
回复 支持 反对

使用道具 举报

发表于 2010-3-16 11:33:37 | 显示全部楼层
Post by nainaide;2075081
tor 用户密切关注中!

在天朝不戴套"都"没法工作,工程师像嫖客,逼良为娼!


同感!我也关注&收藏,万一TOR失效,这个后补。
回复 支持 反对

使用道具 举报

发表于 2010-3-16 12:11:17 | 显示全部楼层
卸载再加载ip_set模块,或者干脆重起机器

Post by qingxiaojin;2075683
内核中那几个要求的模块已选中,重启过还是不行。

不过我用的ipset是ipset-2.4.7,升级到4.2后,出现:

ipset vroot@localhost~# /etc/init.d/west-chamber restart
* Stoping West Chamber ...
ipset v4.2: Kernel ip_set module is of protocol version 2.I'm of protocol version 4.
Please upgrade your kernel and/or ipset(8) utillity.
ipset v4.2: Kernel ip_set module is of protocol version 2.I'm of protocol version 4.
Please upgrade your kernel and/or ipset(8) utillity.
ipset v4.2: Kernel ip_set module is of protocol version 2.I'm of protocol version 4.
Please upgrade your kernel and/or ipset(8) utillity.

请问该怎么解决?

我的Kernel:
sys-kernel/linux-headers-2.6.30-r1
kernel 2.6.31-gentoo-r10 (AMD64)
回复 支持 反对

使用道具 举报

发表于 2010-3-16 12:55:17 | 显示全部楼层
Post by zhllg;2075715
卸载再加载ip_set模块,或者干脆重起机器


可以了,Thanks!
但是为什么还是上不去youtube和facebook?还要额外设置什么吗?
回复 支持 反对

使用道具 举报

发表于 2010-3-16 13:06:36 | 显示全部楼层
有啥办法?

我没有net.wlan0, 我是用linux做的拨号服务器:


net.eth0   -------Linux  Host  -----net.eth1- net.ppp0 --ADSL Modem


$  sudo /etc/init.d/west-chamber start
* Starting West Chamber...
iptables: No chain/target/match by that name.
iptables: No chain/target/match by that name.
iptables: No chain/target/match by that name.                             [ !! ]
* ERROR: west-chamber failed to start


也许是个bug,
回复 支持 反对

使用道具 举报

发表于 2010-3-16 13:32:02 | 显示全部楼层
Post by qingxiaojin;2075718
可以了,Thanks!
但是为什么还是上不去youtube和facebook?还要额外设置什么吗?


facebook肯定上不去啊
都没加facebook的ip

前面的贴子你看了没?
你是直接连外网的,还是在局域网里
回复 支持 反对

使用道具 举报

发表于 2010-3-16 13:34:21 | 显示全部楼层
我也是2.6.33的内核,64位系统;安装过了,能用,但youtube没有连上.
这里说一下安装过程中遇到的问题:
1. 没有使用west-chamber的ipset包,而是使用portage里的ipset,方法是
/etc/make.conf里加入两行时改一下,
XTABLES_ADDONS="cui gfw zhang " (去掉ipset)
2.安装时显示CONFIG_NF_CONNTRACK_MARK: is not set when it should be.
需要设置下内核,位置是:
Networking support  --->   
Networking options  --->   
  • Network packet filtering framework (Netfilter)  --->
    Core Netfilter Configuration  --->   
    <*> Netfilter connection tracking support   
    --
  •    Connection mark tracking support   
    3.emerge 时 FEATURES="-sandbox" , 同时安装好ipset和iptables包
    4.根据楼主的步骤配置好,ipset和iptables
    这样就算完成了。
    但我这里没有见到什么 /etc/init.d/west-chamber 文件。可能是我的内核设置成自动加载了。

    最后.我把配置好的ipset和iptablesip内容保存起来,重启后bzcat YOUTUBE.bz2 | ipset -R 等步骤做的内容会清除掉,所以先保存起来比较方便
    ipset -S > ipset.rules
    itables-save > iptables.rules

    重启机器,用倆个命令把事先保存的来个文件导入就行了
    ipset -R < ipset.rules
    itables-restore < iptables.rules
    echo nameserver 8.8.8.8 > /etc/resolv.conf
  • 回复 支持 反对

    使用道具 举报

    发表于 2010-3-16 13:40:08 | 显示全部楼层
    提醒下:

    ipset 规则要依序添加。

    自己有配置 iptables 规则的,要保证新添加的规则排在已有规则前。
    可以用 -I 替换 -A 反序添加规则。

    配置无误,依然无效的,试试换 dns。
    不用 dns relay server 或 dnsmasq 情况下,网通环境 8.8.8.8 8.8.4.4 报废。
    小强貌似会检查时序关联连接。
    回复 支持 反对

    使用道具 举报

    您需要登录后才可以回帖 登录 | 注册

    本版积分规则

    快速回复 返回顶部 返回列表