Anope IRC Services

Please login or register.

Login with username, password and session length
Advanced search  

News:

Pages: [1]   Go Down

Author Topic: Linking problem between Unreal and Anope  (Read 5722 times)

0 Members and 1 Guest are viewing this topic.

gridiron123

  • Guest
Linking problem between Unreal and Anope
« on: January 16, 2008, 02:01:57 AM »

Hey guys, I've got a little bit of Shell and IRCD experience, not a lot but some. I had a nice config at my old shell host but they are closing and I've had to relocate, consequently reconfigure everything. Heres the scoop.

I've got the IRCd running (Unreal 3.2.7) without any hitches, I'm idling in a channel on it right now actually. I believe I have Anope configured with everything I need, but when I go to start the services with the debug -nofork command I get this error:


Quote

[Jan 15 18:27:44.388242 2008] debug: Link denied (No matching link configuration) [@66.252.1.214.38611]
[Jan 15 18:27:44.388284 2008] Error: Your IRCD's link block may not setup correctly, please check unrealircd.conf
[Jan 15 18:27:44.388541 2008] debug: Received: ERROR :Closing Link: [66.252.1.214] (Link denied (No matching link configuration))
[Jan 15 18:27:44.388589 2008] debug: Closing Link: [66.252.1.214] (Link denied (No matching link configuration))
[Jan 15 18:27:44.388623 2008] Error: Your IRCD's link block may not setup correctly, please check unrealircd.conf
[Jan 15 18:27:44.388700 2008] debug: Emitting event "db_saving" (1 args)
[Jan 15 18:27:44.388778 2008] [hs_request] Succesfully saved database



I've went back through and checked, and re-checked the listen, and link portion of the unreal config file and can't find anything that sticks out. Same for the anope services.conf file. Here is a portion of the Unreal listen and link section:


Quote

/* NOTE ON SSL PORTS: SSL ports are pretty non-standardized,
 * besides numerous high-SSL ports, some people say you should run
 * it at 994 because that's the official SSL port.. but that
 * requires root! Besides, port 194 is the official irc port and
 * have you ever seen an ircd running on that?
 * So, our suggestion is to use port 6697 for SSL, this is used by
 * quite some networks and is recognized by for example StunTour.
 * You are free to open up as many SSL ports as you want, but
 * by (also) using 6697 you help the world standardize a bit ;).
 */
listen         66.252.1.214:6667;


/* NOTE: If you are on an IRCd shell with multiple IP's you are
 *       likely to get 'Address already in use' errors in your log
 *       and the ircd won't start. This means you MUST bind
 *       to a specific IP instead of '*', so for example:
 *       listen 1.2.3.4:6667;
 *       Obviously, replace the IP with the IP that was assigned to you.
 */

/*
 * NEW: link {}
 * OLD: C/N:Lines
 * This defines an okay for a server connection.
 * NOTE: BOTH SERVERS NEED A LINK {} SETTING TO CONNECT PROPERLY!
 * Syntax is as follows:
 * link (server name)
 * {
 *   username   (username, * works too);
 *    hostname   (ip number/hostmask);
 *   bind-ip      (What IP to bind to when connecting, or *);
 *   port      (port to connect to, if any);
 *   hub (If this is a hub, * works, or servermasks it may bring in);
 *   [or leaf *;]
 *   password-connect "(pass to send)";
 *   password-receive "(pass we should receive)";
 *   class      (class to direct servers into);
 *   options {
 *      (options here*);
 *   };
 *      /* If we use SSL, we can choose what cipher to use in SSL mode
 *       * Retrieve a list by "openssl ciphers", seperate ciphers with :'s
 *      */
 *      ciphers "DES-CBC3-MD5";
 *
 * };
*/

/*
   options:
   OLD   |   NEW
   S      ssl
   Z      zip
   N/A      autoconnect
   N/A      quarantine
   N/A      nodnscache
*/


link            services.3wheelerworld.com
{
   username   *;
   hostname    chat.3wheelerworldforums.com;
   bind-ip    66.252.1.214;
   port       6667;
   hub      *;
   hub             *.3wheelerworld.com;
   password-connect "pass";
   password-receive "pass";
   class           servers;




And for services.conf:


Quote

#     If services can't connect to the RemoteServer, they will try
#     RemoteServer2 (if defined). If they can't connect to RemoteServer2,
#     they will use RemoteServer3 (if defined).

RemoteServer    66.252.1.214 6667 "pass"



# ServiceUser <usermask>  [REQUIRED]
#     Specifies the user@host mask which should be used by the Services
#     pseudoclients.  May be overridden by the -user and -host command-line
#     options.

ServiceUser "services@3wheelerworld.com"



What exactly am I missing?
Logged

Jan Milants

  • Team
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 1372
(No subject)
« Reply #1 on: January 16, 2008, 11:11:29 AM »

your link block has 2 hub entries.. dunno what that s good for.
you didn't post it, but i do hope you names services server correctly in services.conf
my guess is though that hostname isn't correctly determined. try using hostname *; in the unrealircd.conf
Logged
If you like me donate coins to 1FBmZVT4J8WAUMHKqpWhgNVj3XXnRN1cCk :)

Jobe

  • Contributor
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 1023
    • Anope IRC Services
(No subject)
« Reply #2 on: January 16, 2008, 01:19:24 PM »

As Viper said, hostname should be either * or the IP that the IRCd sees Anope connecting FROM. From your log file that looks like 66.252.1.214

[Edited on 16-1-2008 by Jobe1986]
Logged
Your IP: ()
My IRC Status:

Come along and visit http://www.anopequotes.org/

gridiron123

  • Guest
(No subject)
« Reply #3 on: January 16, 2008, 02:24:47 PM »

Somehow I got it working, thanks guys. Anope, and the IRCd are actually both on the same box. I managed to get it working late last night so I'm not exactly sure what I changed (I believe it had to do with the double hub command that was there)
Logged
Pages: [1]   Go Up