Page 1 of 1

Linkink Ipv6 to Ipv4

Posted: Sat Jul 17, 2004 8:56 am
by ShArDiCk
I setup the LISTEN lines of ipv6 ircd on 5556 for ipv4 and 5555 for ipv6.
It starts.
listen [::ffff:127.0.0.1]:5556;
listen [2001:618:4db::1]:5555;

I have done it only to start the ipv6 ircd and try.

Now i have to link it for test to my hub, that's an ircd IPV4 Compile.

This is my c\n line on ipv6 ircd:
link myhub.myserver.net
{
username *;
hostname ::ffff:1.2.3.4;
bind-ip *;
port 5556;
hub *;
password-connect "pass";
password-receive "pass";
class servers;
options {
autoconnect;
};
};

If i use
hostname 1.2.3.4;
it returns an error:
*** Notice -- error: unrealircd.conf:358: link myhub.myserver.net has link::hostname set to '1.2.3.4' (IPv4) on a IPv6 compile, use the ::ffff:1.2.3.4 form instead

And how it advice ive done but with that c\n lines that you can see above it returns another error:
*** Couldn't connect to myhub.myserver.net.
Any ideas?

I think to have done all in the right way.... but... it doesnt run...

Thanx

Posted: Sat Jul 17, 2004 9:37 am
by Dukat
Hmm... just a wild guess (I'm not using IPv6 :( ):
Don't you have to compile IPv6 support in BOTH servers, even if it's an IPv4 server?


Oh, and: There are no C/N-Lines in UnrealIRCd.

Posted: Sat Jul 17, 2004 11:15 am
by AngryWolf
To Dukat: No, you don't have to. Otherwise you wouldn't be able to link ipv6 and ipv4 servers together, since on the IPv4 box you would get "WARNING: Your system does not support IPv6 so it will not be enabled".

To ShArDiCk: I'm missing a listen block for [:ffff:1.2.3.4]:5556 (or the IPv6 alternative of :ffff:1.2.3.4). Perhaps your IPv6 server is not listening on that address. If you are unsure, try *:5556 in the listen block, that binds to all network inferfaces / ip addresses on your box.

Posted: Sat Jul 17, 2004 1:41 pm
by ShArDiCk
To AngryWolf: The ipv6 ircd is listening on 5556 with
listen [::ffff:127.0.0.1]:5556;
and\or
listen *:5556;
I'm able to connect via ipv4 at that port.
But the link doesnt start.

same error:
-v6.irclab.net- *** Couldn't connect to blacktower.irclab.net.
To Dukat: link block once is named "c\n lines" :P

Posted: Sun Jul 18, 2004 1:36 pm
by AngryWolf
Ok, now I'm only guessing... Set snomask +j on yourself and/or enable logging of errors ('errors' flag in log::flags), this might help in getting better error messages which are normally not displayed to IRC operators.

Posted: Sun Jul 18, 2004 3:45 pm
by ShArDiCk
Ok, i try.

So, that's im doing it's all correct?

Re: Linkink Ipv6 to Ipv4

Posted: Tue Sep 02, 2008 6:37 am
by maxisgsm
hello, i also got problem with the link ....

i not sure either i compile my server using ipv6 or ipv4 ( becoz after 3 month i decide to run services )

my bind port

Code: Select all

listen         *:5050
{
	options
	{
		serversonly;
	};
};
my link block;

Code: Select all

link            services.myserver.org
{
	username	*;
	hostname     69.147.0.0;
	bind-ip 	*;
	port 		5050;
	hub             *;
	password-connect "password";
	password-receive "password";
	class           servers;
		options {
			/* Note: You should not use autoconnect when linking services ( 2002:0:0:0:0:0:4593:ed4a )*/
			autoconnect;
		};
};
when i rehash the ircd, it gave me this error

Code: Select all

Notice -- error: unrealircd.conf:238: link services.myserver.org has link::hostname set to '69.147.0.0' (IPv4) on a IPv6 compile, use the ::ffff:1.2.3.4 form instead
how to solve this ???

Re: Linkink Ipv6 to Ipv4

Posted: Tue Sep 02, 2008 8:13 am
by Jobe
You do what the error message tells you to, and please start your own thread instead of dragging up a 4 year old thread.