[cgiirc-general] Need help with CGI:IRC
Brought to you by:
dgl
From: Ivan D. <iv...@gm...> - 2008-04-21 19:49:52
|
Hi guys... I recently had the idea of putting up our favorite hockey team's channel on IRC on the Internet, in the hopes of having more people show up and hang with us during games, etc. I have installed and done everything properly, however, when people connect to IRC using the site (which is PensChat.com), everyone on there has the exact same host. Thus, if any trolls or dummies sign up and try to spam the channel, there would be no way for me to ban them from the channel without banning everyone else who logs on through the site. If you log in through this site - http://webchat.xs4all.nl/ - the host for each person is different (I think the IP address is encoded). This is what I want for PensChat.com. Also, I would like to be able to customize the log in page on PensChat.com (where people type their nick), but that's not as important right now. I have gone through the advanced settings page on the CGI:IRC site, but I can't figure out how to do it. >From http://cgiirc.org/docs/advanced.php > identd.p > The identd lets a user be idented to a hex encoded version of their IP > address eg: c0a80202@your.host (this decodes to 192.168.2.2), you can use > the included decode.pl to decode an IP address (or work out the hex yourself > :). It makes banning on the host possible at channel and server level, which > makes it much easier to allow more unrestricted access to CGI:IRC. To set-up > the identd.pl you need root access to the system where you have installed > CGI:IRC. The identd.pl requires you to be using an inetd, i have used it > with inetd but people report it works with xinetd too. > > To install it, copy the identd.pl file to /usr/local/sbin (or any other > suitable location). Make sure it is set chmod 755 and the path to perl is > correct, add the following to /etc/inetd.conf: > ident stream tcp nowait nobody /usr/local/sbin/identd.pl > You might also need to change nobody to the user CGI scripts run as on the > server - this provides slight protection from local spoofing by checking the > user is correct. You can check it's set-up correctly by running telnet > localhost 113 - press enter and it should print something like INVALID > PORT. > This should work, but no other identd lookups will work - you can change > the reply variable in identd.pl to enable other lookups. Set to reply:textit would ident all other requests as "text" (similar to nullidentd). > linuxproc simply uses /proc/net/tcp to do full ident lookups on linux. > forward:port forwards to the identd running on a different local port; > this apparently works well with oidentd running with the proxy option. I don't know what most of that means. I don't know where the /usr/local/sbin directory is supposed to be. I don't know where the path to perl is. Same for /etc/inetd.conf... I'm completely lost. I'm very new to most of this, but since I've already done so many things for the site and would really like to set this up, I want to finish the site so it can work for years to come. If anyone can help me out, I would really appreciate it. Just e-mail me back or reply through the mailing list. Or you can IM me through Yahoo (my username is ivand67), or MSN (iv...@ho...). Thank you, Ivan |