Irc Defender?

The UnrealIRCd team does not officially provide support for any services packages that you may be using or want to use. This forum is provided so the community can help each other with services issues.

Moderator: Supporters

Locked
goldrunner
Posts: 6
Joined: Wed Jan 11, 2006 3:07 am
Contact:

Irc Defender?

Post by goldrunner »

Hi,

I have tried to setup irc defender and i get this error, can someone please help thankyou :-

perl defender.pl &
[1] 12208
unitedircd@hosting [~/defender]# IRC Defender version 1.4.0 b1 (Jul 2005)

Programmed by C.J.Edwards (Brain) - irc.chatspike.net
Numerous fixes and modules by Whitewolf, typobox43, ol, Jay, Azhrarn

Loading configuration file...
Using unreal connection module (loaded OK)...

Loading modules...
Loading: Modules/Scan/fyle.pm... OK!
Loading: Modules/Scan/cgiirc.pm... OK!
Loading: Modules/Scan/regexp_akill.pm... OK!
Loading: Modules/Scan/version.pm... Missing deny_version.conf file!
readline() on closed filehandle BL at Modules/Scan/version.pm line 284.
OK!
Loading: Modules/Scan/conn_average.pm... OK!
Switching to Text logging method from now
Creating socket...
Bound to ip address: 67.159.12.148
Connecting to Defender.unitedhearts.co.uk:6667...
Logging in...
Introducing pseudoclient: Defender...
Joining channel...
ERROR received from ircd: Link denied (No matching link configuration) [@67.159.12.148.48902]
You might need to check your C/N lines or link block on the ircd, or port number you are using.

I have included my defender.conf and my unrealircd c/n line below :-

defender.conf


#!/usr/bin/perl defender.pl
# ------------------------------------------------------------------------------------ #
# #
# IRC Defender example config #
# --------------------------- #
# #
# Please read all of the config file before you run the program. Save your live config #
# file as 'defender.conf' in the same directory as the defender.pl script. #
# #
# You may use the construct %xx to insert any non-ascii character into the config #
# file, e.g. %3D inserts a literal "=" symbol. #
# You must not have spaces between the variable name, the = symbol, and its value. #
# #
# Warning! DO NOT EDIT THIS TEXT FILE IN A WINDOWS EDITOR! EDIT IT IN YOUR SHELL OR #
# IT WILL FAIL TO READ CORRECTLY AND YOU WILL GET ALL KINDS OF STRANGE ERRORS! YOU #
# HAVE BEEN WARNED! #
# #
# $Id: defender.conf.example,v 1.13 2005/07/07 12:20:34 brain Exp $
# #
# ------------------------------------------------------------------------------------ #


# ------
# Paranoia level. Set this to the maximum allowed score. It is *STRONGLY*
# recommended you leave this at the default value of 7.
# this is used by the fyle module only presently, but other modules may
# use it some day.
# ------

paranoia=7


# ------
# Client's fullname (GECOS)
# ------

fullname=Defender.unitedhearts.co.uk


# -----
# Server to connect to
# -----

server=Defender.unitedhearts.co.uk

# -----
# IP to bind socket to
# -----

bind=67.159.12.148


# -----
# Port number of server
# -----

port=6667


# -----
# Client's nickname
# -----

botnick=Defender


# -----
# secured channel to join
# -----

channel=#services


# -----
# quit message on SIGKILL
# -----

quitmsg=Defender terminating


# -----
# Data directory, defaults to current directory if not defined
# -----

datadir=/home/path/to/data/defender


# -----
# email given in /kill messages
# -----

mail=[email protected]


# -----
# url to refer to for how the system works, given in /kill messages
# -----

url=http://www.unitedhearts.co.uk/killed


# -----
# Hostname used for pseudoclient
# -----

domain=unitedhearts.co.uk


# -----
# Network name, used in kills and messages
# -----

networkname=UnitedHearts


# -----
# Which protocol module to use, server is recommended, client supports unrealircd
# -----

linktype=unreal


# -----
# Server link password, or client connect password if on a restricted I: line
# -----

password=removedforshowingonforums


# -----
# Server to connect as, you probably should U: line this if possible
# -----

servername=irc.unitedhearts.co.uk

# -----
# Server numeric for unrealircd and p10. Read the README!
# -----

numeric=200


# -----
# Server description
# -----

serverdesc=IRC Defender Server


# -----
# Auth module Type
# -----

authtype=basic


# -----
# scanning modules to load, seperated by commas. See Modules/Scan directory
# -----

modules=fyle,cgiirc,regexp_akill,version,conn_average


# -----
# Logging module name (default is Text, for logging to file)
# -----

logto=Text
logpath=/home/brain/defender/defender.log


# -----
# Parameter for conn_average module, how many connections per min counts as an alert
# -----

conn_average_max=3


# -----
# This should contain your support channel's name
# -----

supportchannel=#help


# -----
# Parameters for the flood module, how many joins/parts trigger actions and the
# size of the checking interval
# -----

flood_log=1
flood_globops=2
flood_lock=3
flood_interval=5


# -----
# Parameters for the nickflood module, how many nickchanges are a flood, and
# the size of the checking interval
# -----

nickflood_limit=3


# ------------------------ Deprecated ---------------------------
#
# These values are used only by the client module,
# and can therefore be considered deprecated. However
# if you are behind the times enough to be using the
# client module (or this is all that is available to
# you) then you MUST define these values.
#
# -----
# name to /oper as, used only by the client module
# -----
#
# opername=myoper
#
# -----
# password to use in /oper, used only by the client
# module
# -----
#
# operpass=my_password_here
#
# -----
# Nickserv password to identify to nickserv, used
# only by the client module
# -----
#
# nickserv=my_nspass
#

My unrealircd C/N Line :-
link Defender.unitedhearts.co.uk
{
username *;
hostname 67.159.12.148;
bind-ip 67.159.12.148;
port 7029;
hub *;
password-connect "pwremovedforforums";
password-receive "pwremovedforforums";
class servers;
options {

};
};
Stealth
Head of Support
Posts: 2085
Joined: Tue Jun 15, 2004 8:50 pm
Location: Chino Hills, CA, US
Contact:

Post by Stealth »

This should be in the services forum, but it won't let me move it there...
Rennyn

Post by Rennyn »

Ok.. I've never used defender.. however based on the two config files, these are the 'red flags' that I can see:

Code: Select all

# ----- 
# Server to connect to 
# ----- 

server=Defender.unitedhearts.co.uk
Wouldn't this need to connect to your UnrealIRCd server? (for example irc.unitedhearts.co.uk)

Code: Select all

# ----- 
# Server to connect as, you probably should U: line this if possible 
# ----- 

servername=irc.unitedhearts.co.uk
This to me looks like it should be the defender.unitedhearts.co.uk name.

Code: Select all

link Defender.unitedhearts.co.uk 
{ 
username *; 
hostname 67.159.12.148; 
bind-ip 67.159.12.148; 
port 7029; 
hub *; 
password-connect "pwremovedforforums"; 
password-receive "pwremovedforforums"; 
class servers; 
options { 

}; 
}; 
And this would explain the "Link Denied" error. You have the defender server connecting as irc.unitedhearts.co.uk but the name it's looking for is Defender.unitedhearts.co.uk. So, try this:

Code: Select all

# ----- 
# Server to connect to 
# ----- 

server=irc.unitedhearts.co.uk


# ----- 
# Server to connect as, you probably should U: line this if possible 
# ----- 

servername=Defender.unitedhearts.co.uk
I hope this helps solve your problem :) and good luck.
Locked