Help setting up Anope!

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

Post Reply
minuano_mlr
Posts: 4
Joined: Fri Apr 21, 2023 5:53 pm

Help setting up Anope!

Post by minuano_mlr »

Have spent the last few hours painfully trying to setup Anope 2.0.12 in UnrealIRCD 6.0.7.
Please help.

Code: Select all

[Apr 21 17:51:25 2023] SERVER: services.scratchware.xyz (Scratchware Inc.) has connected to the network (uplinked to no uplink)
[Apr 21 17:51:25 2023] Anope 2.0.12 starting up
[Apr 21 17:51:25 2023] Unable to initialize languages, gettext is not installed
[Apr 21 17:51:25 2023] Loading modules...
[Apr 21 17:51:25 2023] Using IRCd protocol unreal4
[Apr 21 17:51:25 2023] Loading databases...
[Apr 21 17:51:25 2023] DB_FLATFILE: Unable to open data/anope.db for reading!
[Apr 21 17:51:25 2023] Databases loaded
[Apr 21 17:51:25 2023] Attempting to connect to uplink #1 127.0.0.1 (127.0.0.1/6900) with protocol UnrealIRCd 4+
[Apr 21 17:51:25 2023] Successfully connected to uplink #1 127.0.0.1:6900
[Apr 21 17:51:26 2023] Lost connection from uplink #1 (127.0.0.1:6900): Connection reset by peer
[Apr 21 17:51:26 2023] Unable to connect to any uplink
Uplink block (services.conf)

Code: Select all

uplink
{
	/*
	 *The IP or hostname of the IRC server you wish to connect Services to.
	 * Usually, you will want to connect Services over 127.0.0.1 (aka localhost).
	 *
	 *NOTE: On some shell providers, this will not be an option.
	 */
	 host = "127.0.0.1"
	
	/*
	 * Enable if Services should connect using IPv6.
	 */
	 ipv6 = no
	
	/*
	 * Enable if Services should connect using SSL.
	 * You must have an SSL module loaded for this to work.
	 *
	 ssl = no
	
	/*
	 * The port to connect to.
	 * The IRCD *MUST be configured to listen on this port, and to accept server connections.
	 *
	 *
	 * Refer to your IRCd documentation for how this is to be done.
	 */
	 port = 6900
	
	/*
	 * The password to send to the IRC server for authentication.
	 * This must match the link block on your IRCd.
	 *
	 * Refer to your IRCd documentation for more information on link blocks. 
	 */
	 password = "*********"
}
Listen block (unrealircd.conf)

Code: Select all

listen {
	ip *;
	port 6900;
	options {  serversonly; }
}
Link block (unrealircd.conf)

Code: Select all

link services.scratchware.xyz {
	incoming {
		mask 127.0.0.1;
	};
	outgoing {
		bind-ip *;
		hostname 127.0.0.1;
		port 6690;
	};
	password "*********";
	verify-certificate "no";
	class servers;
}
Currently not using SSL since they're both in localhost, on an AWS Debian machine.
Syzop
UnrealIRCd head coder
Posts: 2112
Joined: Sat Mar 06, 2004 8:57 pm
Location: .nl
Contact:

Re: Help setting up Anope!

Post by Syzop »

Use port = 6667 on the anope side, then it will connect to UnrealIRCd on a non-TLS port. TLS is indeed unneeded on localhost.

We also have a tutorial that would have helped you: Linking UnrealIRCd with anope
DonTCry
Posts: 50
Joined: Mon Feb 06, 2012 6:01 pm
Contact:

Re: Help setting up Anope!

Post by DonTCry »

check your link block port
you have 6900 and 6690
Syzop
UnrealIRCd head coder
Posts: 2112
Joined: Sat Mar 06, 2004 8:57 pm
Location: .nl
Contact:

Re: Help setting up Anope!

Post by Syzop »

Yeah that is indeed a bit confusing. But it's not that... actually the whole outgoing { } stuff can be removed from the link block, because link::outgoing is never used for services like anope / atheme.

I had not noticed the poster already had a 6900 correctly setup without TLS. Then it should just work, assuming you have rehashed UnrealIRCd of course ;).

As an IRCOp on the UnrealIRCd-side you should get a better error. We always recommend to be an IRCOp on the other side of the link because it can give better error messages (more detailed).
minuano_mlr
Posts: 4
Joined: Fri Apr 21, 2023 5:53 pm

Re: Help setting up Anope!

Post by minuano_mlr »

DonTCry wrote: Fri Apr 21, 2023 6:37 pm check your link block port
you have 6900 and 6690
Oh I completely missed that. Thank you so much to both of you, this is my first time setting up an IRC server for a platform that doesn't inherently use most/all IRC functions :) At the time I have everything running on Amazon Web Services, I'm not sure exactly how IRCops work or how to see what's going on as one.

Services have connected successfully, problem solved!
Syzop
UnrealIRCd head coder
Posts: 2112
Joined: Sat Mar 06, 2004 8:57 pm
Location: .nl
Contact:

Re: Help setting up Anope!

Post by Syzop »

Great, probably too late by now but I recommend checking the IRCOp guide which should get you started as an IRCOp :)
Post Reply