Linkink Ipv6 to Ipv4

These are old archives. They are kept for historic purposes only.
Post Reply
ShArDiCk
Posts: 39
Joined: Tue Jun 01, 2004 7:10 pm
Location: Italy
Contact:

Linkink Ipv6 to Ipv4

Post 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
Dukat
Posts: 1083
Joined: Tue Mar 16, 2004 5:44 pm
Location: Switzerland

Post 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.
AngryWolf
Posts: 554
Joined: Sat Mar 06, 2004 10:53 am
Location: Hungary
Contact:

Post 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.
ShArDiCk
Posts: 39
Joined: Tue Jun 01, 2004 7:10 pm
Location: Italy
Contact:

Post 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
AngryWolf
Posts: 554
Joined: Sat Mar 06, 2004 10:53 am
Location: Hungary
Contact:

Post 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.
ShArDiCk
Posts: 39
Joined: Tue Jun 01, 2004 7:10 pm
Location: Italy
Contact:

Post by ShArDiCk »

Ok, i try.

So, that's im doing it's all correct?
maxisgsm
Posts: 5
Joined: Tue Sep 02, 2008 6:28 am

Re: Linkink Ipv6 to Ipv4

Post 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 ???
Jobe
Official supporter
Posts: 1180
Joined: Wed May 03, 2006 7:09 pm
Location: United Kingdom

Re: Linkink Ipv6 to Ipv4

Post 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.
Your IP: Image
Your Country: Image
Post Reply