Question regarding CGI:IRC

These are old archives. They are kept for historic purposes only.
Post Reply
Westoya
Posts: 4
Joined: Fri Nov 20, 2009 5:29 am

Question regarding CGI:IRC

Post by Westoya »

I'm trying to make unrealircd and qwebirc play together.

In my unrealircd.conf I have:

cgiirc {
type webirc;
hostname "server.somewhere.com";
password "passwd";
};

And in qwebirc's config.py I have:

IRCSERVER, IRCPORT = "server.somewhere.com", 6667
WEBIRC_MODE = "webirc"
WEBIRC_PASSWORD = "passwd"

When I try to connect to unrealircs via qwebirc, I get this error message:

ERROR: Closing Link: [z.z.z.z] (CGI:IRC -- No access)

The documentation talks about the cgiirc block in unrealircd.conf but then also mentions a cgiirc.conf. I have created cgiirc.conf and followed all of the documentation but nothing works. Now, I'm not sure if the problem is on unrealircd's end or on qwebirc's end, but I would appreciate any help that could be provided.
Jobe
Official supporter
Posts: 1180
Joined: Wed May 03, 2006 7:09 pm
Location: United Kingdom

Re: Question regarding CGI:IRC

Post by Jobe »

The hostname field of the cgiirc block needs to contain the IP or rDNS host name that UnrealIRCd sees qwebirc connecting FROM.
Your IP: Image
Your Country: Image
Westoya
Posts: 4
Joined: Fri Nov 20, 2009 5:29 am

Re: Question regarding CGI:IRC

Post by Westoya »

The IP address that is shown in the "Closing Link" error message has the appropriate reverse DNS entry. I'll try using the IP address explicitly.
Westoya
Posts: 4
Joined: Fri Nov 20, 2009 5:29 am

Re: Question regarding CGI:IRC

Post by Westoya »

Using the IP address explicitly didn't work either.
Jobe
Official supporter
Posts: 1180
Joined: Wed May 03, 2006 7:09 pm
Location: United Kingdom

Re: Question regarding CGI:IRC

Post by Jobe »

Westoya wrote:Using the IP address explicitly didn't work either.
That sounds like either A) the password is WRONG in either unrealircd.conf or config.py (or you havnt recompiled qwebirc after changing the config, see below) or B) the IP youre giving it is NOT the IP CGIIRC is connecting from.
config.py wrote:# Note that some changes to this configuration file require re-running
# compile.py and others require restarting qwebirc (and some require
# both!)
# If in doubt always re-compile and restart.
Your IP: Image
Your Country: Image
Westoya
Posts: 4
Joined: Fri Nov 20, 2009 5:29 am

Re: Question regarding CGI:IRC

Post by Westoya »

Problem solved: I put the IP address in my cgiirc block in unrealircd.conf and it works. Apparently it doesn't like to use hostnames as the IP address resolves correctly.
Post Reply