[scholarzhang-dev] guk_server发布

6 views
Skip to first unread message

崔莺莺

unread,
Apr 16, 2010, 12:00:40 AM4/16/10
to scholarz...@googlegroups.com
USAGE:
# ./guk_server [OPTIONS]
-a <abstract_path> : listen on the specified abstract unix domain socket.
-U <unix_path> : listen on the specified unix domain socket.
-i <device> : network interface used for sending and receiving.
-f <config_file> : configuration file name.
-s <ip addr> : the source ip address of the current machine.

guk_server默认情况下listen名为gfw_url_keywords_checking_server的abstract unix
domain socket。
目前代码中包含一个client用于检查url是否触发关键词,一般情况下运行./guk_hit后每行输入一个url,输出这个url的关键词触发情况。guk_hit是bash脚本,建议阅读便于理解如何手工询问。

client向guk_server发送的消息每行包含一个询问,询问的格式是"%d %d %s", sequence_number,
type, url。type是1或2。url中不能包含"http://"前缀。
url_keywords的功能暂时还没有移植成guk_single。

关于gfwkeywords.conf中dstlist的选取,务必尽量保证所选ip:port范围内没有处于listen状态的端口。另外如果server输出大量unexpected
RESET信息请考虑增加expire_timeout。

keywords-r89代码不再维护,更名为keywords-obsolete。建议在用keywords-r89的用户使用trunk/keywords中的url_keywords。

--
You received this message because you are subscribed to "scholarzhang-dev".
To post to this group, send email to scholarz...@googlegroups.com
To unsubscribe from this group, send email to
scholarzhang-d...@googlegroups.com

崔莺莺

unread,
Apr 18, 2010, 12:00:29 AM4/18/10
to scholarz...@googlegroups.com
r99
Reply all
Reply to author
Forward
0 new messages