Listen block for IPv6 with UnrealIRCd4.0.18

If you hit any installation issues or cannot connect to your freshly installed UnrealIRCd then this forum is for you.

Moderator: Supporters

Locked
Paul DK
Posts: 12
Joined: Sat Feb 24, 2018 12:33 am

Listen block for IPv6 with UnrealIRCd4.0.18

Post by Paul DK »

So I've googled all over the place and I've looked on this forum and for the life of me, I can't figure out what I've messed up here.

I've never used IPv6 before so this is, admittedly, completely new territory for me but this is what I've done:
  • At domain registrar, added AAA records for the IPv6 addresses of each server
  • Configured the RDNS at each server to reflect the correct subdomain.domain.tld
  • Added the following line to each unrealircd.conf file, appropriate for each server:

Code: Select all

listen {
	ip xxx.xxx.xxx.xxx;
	port 6667-6670;
};

listen {
	ip [0x00:0x00::x00x:00xx:xx00:00xx]:6667-6670;
};

listen {
	ip xxx.xxx.xxx.xxx;
	port 6697;
	options { ssl; };
};

listen {
	ip [0x00:0x00::x00x:00xx:xx00:00xx]:6697;
	options { ssl; };
};
After /rehash'ing the servers, each report the following errors:

Code: Select all

[02:23:06] -subdomain.domain.com- from subdomain.domain.com: Paul is remotely rehashing server config file
[02:23:07] -subdomain.domain.com- Loading IRCd configuration..
[02:23:07] -subdomain.domain.com- error: /home/user/unrealircd/conf/unrealircd.conf:99: listen: illegal listen::ip ([0x00:0x00::x00x:00xx:xx00:00xx]:6667-6670). Must be either '*' or contain a valid IP.
[02:23:07] -subdomain.domain.com- error: /home/user/unrealircd/conf/unrealircd.conf:109: listen: illegal listen::ip ([0x00:0x00::x00x:00xx:xx00:00xx]:6697). Must be either '*' or contain a valid IP.
[02:23:07] -subdomain.domain.com- error: 2 errors encountered
[02:23:07] -subdomain.domain.com- error: IRCd configuration failed to pass testing
I know I've missed something here, probably to do with how the config is for Unrealircd4 compared to the 3 branch. But however much I look, I can't find any help. As I've said, I'm probably missing something really obvious.

Anyway, I'd really appreciate any help.

Thanks

Paul
Paul DK
Posts: 12
Joined: Sat Feb 24, 2018 12:33 am

Re: Listen block for IPv6 with UnrealIRCd4.0.18

Post by Paul DK »

Ok, so its too late to delete my post now lol.

Just wanted to say, I'm an idiot!! ... correct block is below :roll:

Code: Select all

listen {
	ip xxx.xxx.xxx.xxx;
	port 6667-6670;
};

listen {
	ip 0x00:0x00::x00x:00xx:xx00:00xx; /* No [] square brackets */
	port 6667-6670; /* Ports on separate line */
};

listen {
	ip xxx.xxx.xxx.xxx;
	port 6697;
	options { ssl; };
};

listen {
	ip [0x00:0x00::x00x:00xx:xx00:00xx; /* No [] square brackets */
	port 6697; /* Ports on separate line */
	options { ssl; };
};
Just thought I'd update this with what I did to fix it, incase anyone else does what I did :oops:
Locked