Cgi::irc and Ubuntu
Thursday, April 26th, 2007
***Access Denied: No connections allowed
I tried to find an error log somewhere on the system but there wasn’t one. Eventually I grepped the source for “No connections allowed” and found it on line 715 of nph-irc.cgi. This is in the code to handle ip access restrictions. So I go to the config file and find a file called “ipaccess” which only contains a rule to allow connections from 127.0.0.1. This was the problem. I didn’t care about ip restrictions, so I went to the main config file and commented out the line:
ip_access_file = ipaccess
Now I can log in to my cgi::irc no problem. I could also have added more rules to “ipaccess”, but I didn’t want to fiddle with it, and I’d probably end up with the same situation as I have now.
It’s important to note that the default Ubuntu (7.04 Feisty Fawn) cgi::irc package comes configured like this and doesn’t tell you that you have to change it in order to make it useful. Maybe this should have a configuration prompt on installation as is done with packages like Postfix.