My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
INSTALL  
instructions for installation.
Phase-Deploy
Updated Sep 12, 2011 by kiz...@gmail.com

Moved to INSTALL page in svn.

Ubuntu 用户安装可以参考这篇

Comment by ddp....@gmail.com, Mar 10, 2010

LInux,沒有windows

Comment by Sky....@gmail.com, Mar 11, 2010

mac现在也不支持?

Comment by xiuqua...@gmail.com, Mar 11, 2010

编译完成了,需要运行吗?要怎么运行呢?

Comment by huangjun.job@gmail.com, Mar 11, 2010

ubuntu 9.04 iptables 和 iptables-dev 都是1.4.1的,这样会影响编译的吗?

Comment by klzg...@gmail.com, Mar 11, 2010

删除了一些留言,作者们请见谅。碰到问题情先阅读issue list,如果没有找到答案再提出新issue。

Comment by hany...@gmail.com, Mar 11, 2010

注意一下,这里的configure参数可能不正确,请尽可能参照发行版里xtables-addons的配置。

这里实际上是写了三个内核模块,zhang, cui, gfw。 个人觉得命名上,gfw也改用拼音qiang得了。 另外,把cui当成服务器端,似乎不恰当哈。觉得崔也想见张呢,回头我再读下这段。

或者应该是gfwclien, gfwserver, gfw比较合适?当然,名字是随意的,回头要认真看前辈之前的分析文章,然后详细看前辈代码层的实现。

Comment by bati.zha...@gmail.com, Mar 11, 2010

Mac好像不行。 supports shared libraries... yes checking dynamic linker characteristics... darwin10.2.0 dyld checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no ./configure: line 10984: syntax error near unexpected token `libxtables,' ./configure: line 10984: ` PKG_CHECK_MODULES(libxtables, xtables >= 1.4.3)'

Comment by bati.zha...@gmail.com, Mar 11, 2010

下载iptables,好像只能在linux上用。make时直接出错了。 libxt_CLASSIFY.c:95: error: 'const struct xt_classify_target_info' has no member named 'priority' libxt_CLASSIFY.c:95: error: 'const struct xt_classify_target_info' has no member named 'priority' make2?: [libxt_CLASSIFY.oo] Error 1 make1?: [all-recursive] Error 1

Comment by Dhai....@gmail.com, Mar 11, 2010

from 小高子 xiaogaozi: http://blog.xiaogaozi.org/2010/03/ubuntu.html

./autogen.sh CFLAGS="" ./configure --prefix=/usr --libexecdir=/lib make && sudo make install echo make-finished cd examples/ sudo ipset -R < CHINA sudo ipset -R < GOOGLE sudo ipset -R < YOUTUBE sudo ipset -R < NOCLIP sudo iptables -A INPUT -p tcp --sport 80 --tcp-flags FIN,SYN,RST,ACK SYN,ACK -m state --state ESTABLISHED -m set --match-set NOCLIP src -j ZHANG -m comment --comment "client-side connection obfuscation" sudo iptables -A INPUT -p tcp --dport 80 --tcp-flags FIN,SYN,RST,ACK SYN -m state --state NEW -j CUI -m set --match-set CHINA src -m comment --comment "server-side connection obfuscation" sudo iptables -A INPUT -p tcp --sport 80 -m state --state ESTABLISHED -m gfw -j LOG --log-level info --log-prefix "gfw: " -m comment --comment "log gfw tcp reset" sudo iptables -A INPUT -p udp --sport 53 -m state --state ESTABLISHED -m gfw -j DROP -m comment --comment "drop gfw dns hijacks"

Comment by jnbo.w...@gmail.com, Mar 11, 2010

在configure时出现 ./configure: line 10614: syntax error near unexpected token `libxtables,' ./configure: line 10614: ` PKG_CHECK_MODULES(libxtables, xtables >= 1.4.3)' 看不太懂…是参数的问题?说尽可能参照发行版里xtables-addons的配置。话说怎么个参照法啊?请高人来指点一下……

Comment by youfor....@gmail.com, Mar 12, 2010

MAC 上面编译失败,没有 libxtables 这个包

Comment by tombowfly@gmail.com, Mar 12, 2010

In ArchLinux?, you need to do little fix.

--- ln -s /usr/libexec/xtables/libxt_ZHANG.so /usr/lib/iptables/libxt_ZHANG.so ln -s /usr/libexec/xtables/libxt_CUI.so /usr/lib/iptables/libxt_CUI.so ln -s /usr/libexec/xtables/libxt_gfw.so /usr/lib/iptables/libxt_gfw.so ---

done.

Good Job. :-)

Comment by xiaole...@gmail.com, Mar 12, 2010

急切盼望能够提供mac的解决方案。

Comment by dyno.fu, Mar 13, 2010

on Ubuntu Karmic,

1) if "ipset kernel/userspace version mismatch" try install "module-assistant" m-a a-i ipset. 2) Ubuntu is Debian, so --libexecdir=/lib.

everything else works just fine.

keep up the good work!!

Comment by 777cr...@gmail.com, Mar 14, 2010

沒有windows ?

Comment by peis...@gmail.com, Mar 14, 2010

发行一个openwrt安装包吧

Comment by bin0...@gmail.com, Mar 14, 2010

windows版本如何安装?求解

Comment by lee.e...@gmail.com, Mar 14, 2010

能做到路由器的内核中就爽了,比如楼上说的openwrt或者tomato

Comment by boundles...@gmail.com, Mar 15, 2010

我的是ubuntu 9,04 ,为啥装不了xtables-addons这个软件包阿,说是找不到软件源啊

Comment by qinyejun...@gmail.com, Mar 17, 2010

当执行sudo ipset -R < CHINA 时有错误: ipset v2.5.0: Set type nethash is of wrong protocol version 4! I'm of version 3. 有没有童鞋遇到这个问题啊。难道要升级kerlel么?

Comment by mink...@gmail.com, Mar 19, 2010

还没有支持twitter和facebook???希望也能支持啊。。。

Comment by lichenxi...@gmail.com, Mar 23, 2010

fc12, iptables=1.4.7 我的xtables.h在/usr/local/include CFLAGS="-O3" ./configure --prefix=/usr --with-xtlibdir=/lib/xtables/ --with-xtables=/usr/local/include make make install

Comment by yangy...@gmail.com, Mar 29, 2010

hello, dyno.fu: I have the "ipset kernel/userspace version mismatch" problem and I try your method. But when I input "module-assistant", there is another problem "/usr/share/modass/packages/default.sh: 1: debian/rules: not found".

I ./configure with the --libexecdir=/lib.

what should I do, thanks very much

Comment by shimingz...@gmail.com, Apr 1, 2010

>>当执行sudo ipset -R < CHINA 时有错误: ipset v2.5.0: Set type nethash is of wrong protocol >>version 4! I'm of version 3. 有没有童鞋遇到这个问题啊。难道要升级kerlel么? I have the same problem 。Because the ipset command is not the one you installed from west champer。Please make sure the ipset command you run is the one you installed from west champer source.

Comment by zengjia...@gmail.com, Apr 2, 2010

现在能用么

Comment by mink...@gmail.com, Apr 4, 2010

youtube, blogger可用,最新svn

Comment by liang...@gmail.com, Apr 8, 2010

ubuntu下做到make那步,提示没有Makefile,请问如何解决? 之前的步骤都成功,apt-get install需要的包都装好

Comment by usegt...@gmail.com, Apr 9, 2010

照着小高子的方法坐,在楼上,把他的语句分开。没有makefile,显然是configure没成功吧

Comment by googolmo, Apr 21, 2010

我都装好了..造成Google的好多网站都无法访问了..请问我如何卸载呢???

Comment by guanghui...@gmail.com, May 16, 2010

Ubuntu 10.04

./configure: line 10614: syntax error near unexpected token `libxtables,' ./configure: line 10614: ` PKG_CHECK_MODULES(libxtables, xtables >= 1.4.3)'

Comment by deafwolf...@gmail.com, Jun 10, 2010

Comment by guanghuizhg, May 16, 2010

Ubuntu 10.04

./configure: line 10614: syntax error near unexpected token libxtables,' ./configure: line 10614: PKG_CHECK_MODULES(libxtables, xtables >= 1.4.3)'

装一下pkg-config

Comment by ons...@gmail.com, Aug 24, 2010

openwrt可以用不?

Comment by Aleksand...@gmail.com, Sep 27, 2010

老大,能给个菜鸟傻瓜手把手教程不? 我用的是kubuntu10.04,之前已经用了miredo通过ipv6部分翻了,但是翻的不彻底不爽。现在安装西厢具体需要怎么做? 我按照说明的上来可是第一步./autogen.sh,就提示: ./autogen.sh: line 3: autoreconf:找不到命令

希望能得到回复,我也再研究研究,使用linux就是为了学到更多的东西,谢谢

Comment by funic...@gmail.com, Apr 22, 2011

Ubuntu 11.04,在linux kernel 2.6.38-8下编译通过,但make失败。

Comment by project member lir...@gmail.com, Jul 10, 2011

我也是用的 11.04 linux kernel 2.6.38-8, 之前 iptables 配置失败。

今天的 commit fix了这个问题,你更新代码试试看。


Sign in to add a comment
Powered by Google Project Hosting