Netban
From NeoWiki
This has been depreciated in favor of Trevorj's Neoturbine HA svn configuration distribution model. Sahal 00:30, 5 October 2009 (UTC)
So recently, we have been getting some bots on the servers, that are slightly annoying. they join from somewhere in france, with nicks like "anna30" or "lidi25" and stay in neoturbine for 3 or 4 minutes before leaving. you may or may not have noticed them, but they should not be allowed to join the servers as they bring nothing to the community at all!
originally, they only joined neoturbine.net, but once stiv2k and i put a version ban on that server they started joining linolium.mine.nu. i got linolium to add the same version ban block on his server, and just today noticed that the bots are now joining rickb's server. this MUST stop. therefore, i have set up an rsync server for a central neoturbine net-wide ban file. this can be updated daily with cron on each server, and rehashed after each update. please help by setting this up on all neoturbine servers.
[edit] Setting Up The Cron Job
open a terminal or ssh, and become root on your irc server:
$ su # vi /etc/cron.daily/netban
copy this code into the editor:
#!/bin/sh ## written by Tim Willey aka fry ## irc://neoturbine.net #neoturbine ## remote host host='antigaprime.ath.cx' ## remote source path (file or directory) src='neoturbine.net/netban.conf' ## local destination path (directory) dest='/home/unreal/netban.conf' #my unrealircd.conf is in /home/unreal/ ## path to the unreal startup script unreal='/home/unreal/unreal' # my unreal startup script (its a shell script that comes with unrealircd) rsync -az $host::$src $dest sleep 10 chmod +r $dest ## rehash server config $unreal rehash
save the file, and then make sure it is owned by root, and that it has the proper permissions:
# chown root:root /etc/cron.daily/netban # chmod 700 /etc/cron.daily/netban
[edit] Making Unreal Include The Ban File
edit your unrealircd.conf, and add the line:
include "<absolute or relative path to>netban.conf";
save the file
[edit] Initial Rsync and Rehash
as root, run the following in a command shell:
/etc/cron.daily/netban
So there you go. hopefully we can all adopt something like this for other net-wide configurations. one thing that would be nice would be a motd and rules. i have created one of each that you might be interested in. just join my server antigaprime.ath.cx, and check them out.

