当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 1 篇帖子 ] 
作者 内容
1 楼 
 文章标题 : [问题]IRC 服务器设置问题 请达人帮忙!谢谢!!
帖子发表于 : 2008-03-14 22:36 

注册: 2007-10-24 21:32
帖子: 2
送出感谢: 0 次
接收感谢: 0 次
如题. 用源码装的apache 2.28
,apt-get 装的IRCD ,
源码装的cgi irc0.59
apache 正常工作。
cgi 放到 /usr/local/apache2/cgi-bin/webcgi/下也可以正常访问。
机器在内网。80口和6667口由路由器映射到本机上。
由路由器自动拔的花生壳。把joyhouirc.5166.info与路由器IP作DNS

通过WEB的CGI上连接IRC服时status提示:
代码:
*** Welcome to CGI:IRC 0.5.9 (2006/06/06)
*** Looking up joyhouirc.5166.info
*** Connecting to joyhouirc.5166.info [58.244.29.245] port 6667
-58.244.29.245- *** Looking up your hostname
-58.244.29.245- *** Checking Ident
-58.244.29.245- *** Couldn't look up your hostname
***  Your username is invalid.
***  Connect with your real username, in lowercase.
***  If your mail address were foo@bar.com, your username would be foo.
*** Closing Link  CGI124 by joyhouirc.5166.info (USER: Bad username)
*** Disconnected from IRC (click to reconnect)


cgiirc.conf如下
代码:
# This is the full access CGI:IRC 0.5 config file
# It will allow access to *all* servers and channels
# See http://cgiirc.sourceforge.net/docs/config.php for help editing it.

# -----
# These are the default settings to show on the login form

# default server(s) to connect to, more than one server can
# be entered as a comma seperated list
default_server = www.hounx.cn
default_port = 6667

# default channel(s), again this can be a comma seperated list
default_channel = #cgiirc

# Realname to use (in /whois)
default_name = CGI:IRC User

# default nickname, a ? is replaced with a random number
default_nick = CGI???

# The default username to send, this will only be sent if
# encoded_ip (below) is set to 1 or less and will have no affect
# if the system is running identd.
default_user = cgiirc

# Default quit message
#quit_message = CGI:IRC
# Quit prefix added to EOF messages and other quits not from /quit
#quit_prefix = CGI:IRC

# -----
# System setup options

# You can change the default locations of the scripts with these
# settings, generally they don't need to be changed
script_nph = nph-irc.cgi
script_form = client-perl.cgi
script_login = irc.cgi


image_path = images


socket_prefix = /tmp/cgiirc-

encoded_ip = 2

allow_non_default = 1

# This is regular experssion that sets what channels access should
# be allowed to.
access_channel = .*

# This is regular experssion that sets what servers access should
# be allowed to.
access_server = .*

# This is regular experssion that sets what ports access should
# be allowed to.
access_port = .*

format = default


ircd.conf如下:
代码:
# M-Line
M:joyhouirc.5166.info:192.168.1.103:这是我的个人聊天室:)::1

# A-Line
A:ADMINISTRATOR is joyhou :Please edit your ircd.conf file:Contact <h.shmily@gmail.com> in case of questions

# Y-Lines
Y:1:90:0:200:100000 # for users
Y:2:90:300:10:9000000 # for servers

# I-Line
I:Resolved::*@localhost::2
I:*@*:2:Unresolved::1
I:Resolved::*@*::1

# P-Line
P::::6667

#F-Lines - Configuration things
F:HUB:TRUE
F:RANDOM_SEED:1598745896321459
F:MAXCHANNELSPERUSER:15

F:MPATH:/etc/ircd/ircd.motd
F:RPATH:/etc/ircd/remote.motd

# set log levels and priorities
F:LOG:SYSTEM:FACILITY:USER
F:LOG:CONFIG:FACILITY:USER
F:LOG:OPERMODE:FACILITY:USER
F:LOG:GLINE:FACILITY:USER
F:LOG:JUPE:FACILITY:USER
F:LOG:WHO:FACILITY:USER
F:LOG:NETWORK:FACILITY:USER
F:LOG:OPERKILL:FACILITY:USER
F:LOG:SERVKILL:FACILITY:USER
F:LOG:OPER:FACILITY:USER
F:LOG:SOCKET:FACILITY:USER

# Set log file
F:LOG:SYSTEM:FILE:/var/log/ircd/critical.log
F:LOG:CONFIG:FILE:/var/log/ircd/critical.log
F:LOG:OPERMODE:FILE:/var/log/ircd/info.log
F:LOG:GLINE:FILE:/var/log/ircd/info.log
F:LOG:JUPE:FILE:/var/log/ircd/notices.log
F:LOG:WHO:FILE:/var/log/ircd/info.log
F:LOG:NETWORK:FILE:/var/log/ircd/critical.log
F:LOG:OPERKILL:FILE:/var/log/ircd/info.log
F:LOG:SERVKILL:FILE:/var/log/ircd/info.log
F:LOG:OPER:FILE:/var/log/ircd/info.log
F:LOG:SOCKET:FILE:/var/log/ircd/info.log

# set log levels
F:LOG:SYSTEM:LEVEL:CRIT
F:LOG:CONFIG:LEVEL:CRIT
F:LOG:OPERMODE:LEVEL:INFO
F:LOG:GLINE:LEVEL:INFO
F:LOG:JUPE:LEVEL:NOTICE
F:LOG:WHO:LEVEL:INFO
F:LOG:NETWORK:LEVEL:CRIT
F:LOG:OPERKILL:LEVEL:INFO
F:LOG:SERVKILL:LEVEL:INFO
F:LOG:OPER:LEVEL:INFO
F:LOG:SOCKET:LEVEL:INFO
F:LOG:USER:LEVEL:DEBUG
F:LOG:RESOLVER:LEVEL:DEBUG
F:LOG:DEBUG:LEVEL:DEBUG

请达人才忙!!!
谢谢。


页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 1 篇帖子 ] 

当前时区为 UTC + 8 小时


在线用户

正在浏览此版面的用户:没有注册用户 和 2 位游客


不能 在这个版面发表主题
不能 在这个版面回复主题
不能 在这个版面编辑帖子
不能 在这个版面删除帖子
不能 在这个版面提交附件

前往 :  
本站点为公益性站点,用于推广开源自由软件,由 DiaHosting VPSBudgetVM VPS 提供服务。
我们认为:软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
简体中文语系由 王笑宇 翻译