I've been working on getting it to connect and reading posts here has helped a lot, but I am still having difficulties.
What I receive is this:
20 Jul 2004 16:44:16.218 | INFO | Connecting to server [127.0.0.1]:9966 ...
20 Jul 2004 16:44:16.250 | INFO | Connection established and authenticated to server [127.0.0.1]:9966.
20 Jul 2004 16:44:17.265 | NOTICE | SERVER MESSAGE (ERROR): Closing Link: [127.0.0.1] (Link denied (No matching link configuration))
20 Jul 2004 16:44:17.281 | NOTICE | SERVER MESSAGE (ERROR): Link denied (No matching link configuration) [@127.0.0.1.1046]
I have set Magick.ini up to use:
REMOTE_1 =127.0.0.1|9966|mYSecret|1|1
And in unrealircd.conf I have:
link mhq.someplace.com
{
username *;
hostname 127.0.0.1;
bind-ip *;
port 9966;
hub *;
password-connect "mYSecret";
password-receive "mYSecret";
class servers;
}
What else needs to be set?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
link mhq.someplace.com
{
username *;
hostname *;
bind-ip *;
port 9966;
hub *;
password-connect "mYSecret";
password-receive "mYSecret";
class servers;
}
Try that . Also check your magick ini for the protocol line and make sure its commented to use unreal . Make sure the unreal.conf has a listen block set to 9966 as well .
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi, yes I have the listen block set up correctly. (other whise the 20 Jul 2004 16:44:16.250 | INFO | Connection established and authenticated to server [127.0.0.1]:9966. wouldn't have worked)
I'll try changing hostname to * but wouldn't that make unreal accept connection fom anywhere on port 9966? Since Magick is running on the same computer I was trying to make it only allow connections from the localhost.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
yes it will do but unless someone there is a valid link block for it it shouldnt be a problem . Alternatively use the actual ip of the machine rather than the localhost . Some routers and firewalls can intefere with the loopback address.
My link block is set to the ip of the machine . But that is because I dont run services off my server I run it off a different machine. Using the ip may work better . The link is establishing but cuts off as the link block is invalid .
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Ok, this will still not work. :( If anyone can asssit me I'd be one happy guy!
Right now Magick.log says:
21 Jul 2004 09:46:49.718 | WARNING | Received NOTICE from irc.ls-chat.com for non-existent user AUTH.
21 Jul 2004 09:46:49.906 | WARNING | Service GlobalMSG has been killed by irc.ls-chat.com, attempting to respawn.
21 Jul 2004 09:46:49.937 | WARNING | Service ChanServ has been killed by irc.ls-chat.com, attempting to respawn.
What I'm trying to do is to set up unreal and magic on the same computer as securely as possible. There will be no links to other servers/machines since this will be for use for a load of no more than 30 simultanious connections at any time.
I will also have unreal set up to use SSL but to begins with I'll suffice with getting it to work with regular connection and I'll add the ssl part later on.
I'm pasting the relevant parts of my magick.ini along with my unrealirc.conf and hope someone will have time to look at them and help me out.
class servers
{
pingfreq 90;
maxclients 10; /* Max servers we can have linked at a time */
sendq 1000000;
connfreq 100; /* How many seconds between each connection attempt */
};
allow {
ip *@*;
hostname *@*;
class clients;
maxperip 5;
};
/* Passworded allow line */
allow {
ip *@255.255.255.255;
hostname *@*.passworded.ugly.people;
class clients;
password "f00Ness";
maxperip 1;
};
allow channel {
channel "#WarezSucks";
};
oper MyOp {
class clients;
from {
userhost myemail@somewhere.com;
};
password "f00";
flags
{
netadmin;
global;
};
};
link mhq.ls-chat.com
{
username *;
hostname 127.0.0.1;
bind-ip *;
port 9966;
hub *;
password-connect "mysecret";
password-receive "mysecret";
class servers;
options {
/* Note: You should not use autoconnect when linking
* services
*/
ssl;
zip;
};
};
drpass {
restart "I-love-to-restart";
die "die-you-stupid";
};
log "ircd.log" {
/* Delete the log file and start a new one when it reaches 2MB, leave this out to always use the
same log */
maxsize 2097152;
flags {
oper;
kline;
connects;
server-connects;
kills;
errors;
sadmin-commands;
chg-commands;
oper-override;
spamfilter;
};
};
/*
* NEW: alias {}
* OLD: N/A
* This allows you to set command aliases such as /nickserv, /chanserv etc
* FLAGS: services, stats, normal
*
* Syntax:
* alias "name" {
* nick "points to";
* type aliastype;
* };
*
* [NOTE: You could also include a pre-defined alias file here, see doc/unreal32docs.html section 2.9]
*/
alias NickServ {
nick "NickServ";
type services;
};
//alias ChanServ { type services; };
//alias StatServ { type stats; };
//alias SuperBot { type normal; };
/* Standard aliases */
alias NickServ { type services; };
alias ChanServ { type services; };
alias OperServ { type services; };
alias HelpServ { type services; };
alias StatServ { type stats; };
alias "identify" {
format "^#" {
nick "chanserv";
type services;
parameters "IDENTIFY %1-";
};
format "^[^#]" {
nick "nickserv";
type services;
parameters "IDENTIFY %1-";
};
type command;
};
/* Standard aliases */
alias "services" {
format "^#" {
nick "chanserv";
type services;
parameters "%1-";
};
format "^[^#]" {
nick "nickserv";
type services;
parameters "%1-";
};
type command;
};
alias "identify" {
format "^#" {
nick "chanserv";
type services;
parameters "IDENTIFY %1-";
};
format "^[^#]" {
nick "nickserv";
type services;
parameters "IDENTIFY %1-";
};
type command;
};
anti-flood {
nick-flood 3:60; /* 3 nickchanges per 60 seconds (the default) */
};
spamfilter {
ban-time 1d; /* default duration of a *line ban set by spamfilter */
ban-reason "Spam/Advertising"; /* default reason */
virus-help-channel "#lounge"; /* channel to use for 'viruschan' action */
/* except "#lounge"; channel to exempt from filtering */
};
};
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
i have been setting up Unreal and Magick on the same box and i was having the same problem. My configuration looked almost exactly like yours.
i was getting really frustrated, so as a last ditch attempt i configured my router to forward the services TCP port back to the box and it worked. I also monitored my software firewall to make sure it wasn't killing my services packets.
Also, I was using my DHCP address (192.xxx.x.xxx) in my configs and not localhost (127.0.0.1).
Hope that helps.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The link name in your unrealircd.conf must match the server name in magick.ini
Also, you need to change your remote line in magick.ini to have a unique numeric (last number in the line). It can not match the numeric of your IRC server (or any other server/service on your IRC network)
ie:
REMOTE_1 =127.0.0.1|9966|mYSecret|1|2
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I've been working on getting it to connect and reading posts here has helped a lot, but I am still having difficulties.
What I receive is this:
20 Jul 2004 16:44:16.218 | INFO | Connecting to server [127.0.0.1]:9966 ...
20 Jul 2004 16:44:16.250 | INFO | Connection established and authenticated to server [127.0.0.1]:9966.
20 Jul 2004 16:44:17.265 | NOTICE | SERVER MESSAGE (ERROR): Closing Link: [127.0.0.1] (Link denied (No matching link configuration))
20 Jul 2004 16:44:17.281 | NOTICE | SERVER MESSAGE (ERROR): Link denied (No matching link configuration) [@127.0.0.1.1046]
I have set Magick.ini up to use:
REMOTE_1 =127.0.0.1|9966|mYSecret|1|1
And in unrealircd.conf I have:
link mhq.someplace.com
{
username *;
hostname 127.0.0.1;
bind-ip *;
port 9966;
hub *;
password-connect "mYSecret";
password-receive "mYSecret";
class servers;
}
What else needs to be set?
(I didn't show my entire configurations to save space, there are ofcourse other settings I have changed too)
link mhq.someplace.com
{
username *;
hostname *;
bind-ip *;
port 9966;
hub *;
password-connect "mYSecret";
password-receive "mYSecret";
class servers;
}
Try that . Also check your magick ini for the protocol line and make sure its commented to use unreal . Make sure the unreal.conf has a listen block set to 9966 as well .
Hi, yes I have the listen block set up correctly. (other whise the 20 Jul 2004 16:44:16.250 | INFO | Connection established and authenticated to server [127.0.0.1]:9966. wouldn't have worked)
I'll try changing hostname to * but wouldn't that make unreal accept connection fom anywhere on port 9966? Since Magick is running on the same computer I was trying to make it only allow connections from the localhost.
yes it will do but unless someone there is a valid link block for it it shouldnt be a problem . Alternatively use the actual ip of the machine rather than the localhost . Some routers and firewalls can intefere with the loopback address.
My link block is set to the ip of the machine . But that is because I dont run services off my server I run it off a different machine. Using the ip may work better . The link is establishing but cuts off as the link block is invalid .
OK, I will try this once I get back to the machine. Thank you
Ok, this will still not work. :( If anyone can asssit me I'd be one happy guy!
Right now Magick.log says:
21 Jul 2004 09:46:49.718 | WARNING | Received NOTICE from irc.ls-chat.com for non-existent user AUTH.
21 Jul 2004 09:46:49.906 | WARNING | Service GlobalMSG has been killed by irc.ls-chat.com, attempting to respawn.
21 Jul 2004 09:46:49.937 | WARNING | Service ChanServ has been killed by irc.ls-chat.com, attempting to respawn.
What I'm trying to do is to set up unreal and magic on the same computer as securely as possible. There will be no links to other servers/machines since this will be for use for a load of no more than 30 simultanious connections at any time.
I will also have unreal set up to use SSL but to begins with I'll suffice with getting it to work with regular connection and I'll add the ssl part later on.
I'm pasting the relevant parts of my magick.ini along with my unrealirc.conf and hope someone will have time to look at them and help me out.
-------Magick.ini--------
[Startup]
SERVER_NAME =mhq.somewhere.com
SERVER_DESC =LS Services
SERVICES_USER =services
SERVICES_HOST =127.0.0.1
OWNUSER =FALSE
SETMODE =
BIND =
REMOTE_1 =127.0.0.1|9966|mYSecret|1|1
LEVEL =1
MAX_LEVEL =5
LAGTIME =15s
STOP =FALSE
[Services]
NickServ =NickServ
NickServ_Name =Nickname Service
Enforcer_Name =Nickname Enforcer
ChanServ =ChanServ
ChanServ_Name =Channel Service
MemoServ =MemoServ
MemoServ_Name =Memo/News Service
OperServ =OperServ Magick-1
OperServ_Name =Operator Service
CommServ =CommServ
CommServ_Name =Committee Service
ServMsg =GlobalMSG HelpServ DevNull
ServMsg_Name =Magick <--> User
SHOWSYNC =TRUE
QUIT_MESSAGE =Goodbye cruel world ...
[Files]
UMASK = 027
PROTOCOL =ircd/ircd.rfc1459.ini
;PIDFILE =/var/run/magick.pid
PIDFILE =magick.pid
;LOGFILE =/var/log/magick.log
LOGFILE =magick.log
VERBOSE =FALSE
LOGCHAN =
;MOTDFILE =/usr/local/share/magick/magick.motd
MOTDFILE =magick.motd
;LANGDIR =/usr/local/share/magick/lang
LANGDIR =lang
;DATABASE =/usr/local/share/magick/magick.mnd
DATABASE =magick.mnd
COMPRESSION =6
;KEYFILE =/usr/local/share/magick/magick.key
KEYFILE =magick.key
ENCRYPTION =FALSE
;PICTURE =/usr/local/share/magick/files/pic
;MEMOATTACH =/usr/local/share/magick/files/memo
;PUBLIC =/usr/local/share/magick/files/public
;TEMPDIR =/usr/local/share/magick/files/temp
PICTURE =files/pic
MEMOATTACH =files/memo
PUBLIC =files/public
TEMPDIR =files/temp
PICTURE_SIZE =0
MEMOATTACH_SIZE =0
PUBLIC_SIZE =0
TEMPDIR_SIZE =0
BLOCKSIZE =1k
TIMEOUT =2m
MIN_SPEED =0
MAX_SPEED =0
SAMPLETIME =30s
[Config]
SERVER_RELINK =5s
SQUIT_PROTECT =2m
SQUIT_CANCEL =10s
CYCLETIME =15m
SAVETIME =5m
CHECKTIME =15s
PING_FREQUENCY =30s
STARTHRESH =4
LISTSIZE =50
MAXLIST =250
MIN_THREADS =3
MAX_THREADS =25
LOW_WATER_MARK =50
HIGH_WATER_MARK =75
HEARTBEAT_TIME =5m
MSG_SEEN_TIME =30s
MSG_CHECK_TIME =1m
-------unrealircd.conf----------
loadmodule "modules/commands.dll";
loadmodule "modules/cloak.dll";
include "help.conf";
include "badwords.channel.conf";
include "badwords.message.conf";
include "badwords.quit.conf";
include "spamfilter.conf";
me
{
name "irc.somewhere.com";
info "Somewhere Server";
numeric 1;
};
admin {
"Myname";
"Mynick";
"myemail@somewhere.com";
};
class clients
{
pingfreq 90;
maxclients 500;
sendq 100000;
recvq 8000;
};
class servers
{
pingfreq 90;
maxclients 10; /* Max servers we can have linked at a time */
sendq 1000000;
connfreq 100; /* How many seconds between each connection attempt */
};
allow {
ip *@*;
hostname *@*;
class clients;
maxperip 5;
};
/* Passworded allow line */
allow {
ip *@255.255.255.255;
hostname *@*.passworded.ugly.people;
class clients;
password "f00Ness";
maxperip 1;
};
allow channel {
channel "#WarezSucks";
};
oper MyOp {
class clients;
from {
userhost myemail@somewhere.com;
};
password "f00";
flags
{
netadmin;
global;
};
};
listen *:6697
{
options
{
ssl;
clientsonly;
};
};
listen *:6667; // Clients
listen *:9966; // Services
link mhq.ls-chat.com
{
username *;
hostname 127.0.0.1;
bind-ip *;
port 9966;
hub *;
password-connect "mysecret";
password-receive "mysecret";
class servers;
options {
/* Note: You should not use autoconnect when linking
* services
*/
ssl;
zip;
};
};
ulines {
irc.somewhere.com;
mhq.somewhere.com
127.0.0.1;
localhost;
};
drpass {
restart "I-love-to-restart";
die "die-you-stupid";
};
log "ircd.log" {
/* Delete the log file and start a new one when it reaches 2MB, leave this out to always use the
same log */
maxsize 2097152;
flags {
oper;
kline;
connects;
server-connects;
kills;
errors;
sadmin-commands;
chg-commands;
oper-override;
spamfilter;
};
};
/*
* NEW: alias {}
* OLD: N/A
* This allows you to set command aliases such as /nickserv, /chanserv etc
* FLAGS: services, stats, normal
*
* Syntax:
* alias "name" {
* nick "points to";
* type aliastype;
* };
*
* [NOTE: You could also include a pre-defined alias file here, see doc/unreal32docs.html section 2.9]
*/
alias NickServ {
nick "NickServ";
type services;
};
//alias ChanServ { type services; };
//alias StatServ { type stats; };
//alias SuperBot { type normal; };
/* Standard aliases */
alias NickServ { type services; };
alias ChanServ { type services; };
alias OperServ { type services; };
alias HelpServ { type services; };
alias StatServ { type stats; };
alias "identify" {
format "^#" {
nick "chanserv";
type services;
parameters "IDENTIFY %1-";
};
format "^[^#]" {
nick "nickserv";
type services;
parameters "IDENTIFY %1-";
};
type command;
};
/* Standard aliases */
alias "services" {
format "^#" {
nick "chanserv";
type services;
parameters "%1-";
};
format "^[^#]" {
nick "nickserv";
type services;
parameters "%1-";
};
type command;
};
alias "identify" {
format "^#" {
nick "chanserv";
type services;
parameters "IDENTIFY %1-";
};
format "^[^#]" {
nick "nickserv";
type services;
parameters "IDENTIFY %1-";
};
type command;
};
/* MHQ
tld {
mask *@*.fr;
motd "ircd.motd.fr";
rules "ircd.rules.fr";
};
*/
ban nick {
mask "*C*h*a*n*S*e*r*v*";
mask "*N*i*c*k*S*e*r*v*";
reason "Reserved for Services";
};
/* MHQ
ban ip {
mask 195.86.232.81;
reason "Delinked server";
};
*/
/* MHQ
ban server {
mask eris.berkeley.edu;
reason "Get out of here.";
};
*/
/* MHQ
ban user {
mask *tirc@*.saturn.bbn.com;
reason "Idiot";
};
*/
ban realname {
mask "Myname";
reason "Server Admin";
};
// MHQ
ban realname {
mask "Myothername";
reason "Server Admin";
};
/*
except ban {
};
*/
deny dcc {
filename "*sub7*";
reason "Possible Sub7 Virus";
};
deny channel {
channel "*warez*";
reason "Warez is illegal";
};
vhost {
vhost hideit.now;
from {
userhost *@*;
};
login stskeeps;
password moocowsrulemyworld;
};
/* Network configuration */
set {
network-name "somewhere";
default-server "irc.somewhere.com";
services-server "services.somewhere.com";
stats-server "stats.somewhere.com";
help-channel "#lounge";
hiddenhost-prefix "Somwhere";
cloak-keys {
"...edited out...";
"...edited out...";
"...edited out...";
};
/* on-oper host */
hosts {
local "locop.somewhere.com";
global "ircop.somewhere.com";
coadmin "coadmin.somewhere.com";
admin "admin.somewhere.com";
servicesadmin "csops.somewhere.com";
netadmin "netadmin.somewhere.com";
host-on-oper-up "no";
};
};
/* Server specific configuration */
set {
kline-address "chat@somewhere.com";
// MHQ modes-on-connect "+ixw";
modes-on-connect "+iw";
modes-on-oper "+xwgs";
oper-auto-join "#opers";
dns {
nameserver 127.0.0.1;
timeout 2s;
retries 2;
};
options {
hide-ulines;
/* You can enable ident checking here if you want */
/* identd-check; */
show-connect-info;
};
maxchannelsperuser 15;
anti-spam-quit-message-time 10s;
oper-only-stats "okfGsMRUEelLCXzdD";
throttle {
connections 20;
period 60s;
};
anti-flood {
nick-flood 3:60; /* 3 nickchanges per 60 seconds (the default) */
};
spamfilter {
ban-time 1d; /* default duration of a *line ban set by spamfilter */
ban-reason "Spam/Advertising"; /* default reason */
virus-help-channel "#lounge"; /* channel to use for 'viruschan' action */
/* except "#lounge"; channel to exempt from filtering */
};
};
PROTOCOL =ircd/ircd.rfc1459.ini
change to unreal
PROTOCOL =ircd/ircd.unreal.ini
At the moment its not 100% compatible changing the above will make it work properly
i have exactly the same problem.
that last comment doens't change anything in this whole problem. :x
i have been setting up Unreal and Magick on the same box and i was having the same problem. My configuration looked almost exactly like yours.
i was getting really frustrated, so as a last ditch attempt i configured my router to forward the services TCP port back to the box and it worked. I also monitored my software firewall to make sure it wasn't killing my services packets.
Also, I was using my DHCP address (192.xxx.x.xxx) in my configs and not localhost (127.0.0.1).
Hope that helps.
The link name in your unrealircd.conf must match the server name in magick.ini
Also, you need to change your remote line in magick.ini to have a unique numeric (last number in the line). It can not match the numeric of your IRC server (or any other server/service on your IRC network)
ie:
REMOTE_1 =127.0.0.1|9966|mYSecret|1|2