IPV6 Compiled but not able to connect

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:

IPV6 Compiled but not able to connect

Post by ShArDiCk »

Hi,
i've compiled Unreal3.2.1 with IPV6 and in the conf put
listen [ipv6]:port;
But, when i go to connect with a ipv6 client it returns "Connection Refused."

What's the problem?

Thanx.
w00t
Posts: 1136
Joined: Thu Mar 25, 2004 3:31 am
Location: Nowra, Australia

Post by w00t »

I'm no expert with IPv6, but are ports specified that way?
-ChatSpike IRC Network [http://www.chatspike.net]
-Denora Stats [http://denora.nomadirc.net]
-Omerta [http://www.barafranca.com]
ShArDiCk
Posts: 39
Joined: Tue Jun 01, 2004 7:10 pm
Location: Italy
Contact:

Post by ShArDiCk »

Surely.

I've specified [ipv6]:port in the conf at c\n lines.
Dukat
Posts: 1083
Joined: Tue Mar 16, 2004 5:44 pm
Location: Switzerland

Post by Dukat »

ShArDiCk wrote:I've specified [ipv6]:port in the conf at c\n lines.
Uuuhh... there are no c/n-Lines... :shock:
What exactly are you trying to do?
It's about clients unable to connect to the server, right?

Anyway...
It's correct, the IP has to be enclosed in brackets for IPv6.


Are you behind a firewall/router/nat/etc...?
codemastr
Former UnrealIRCd head coder
Posts: 811
Joined: Sat Mar 06, 2004 8:47 pm
Location: United States
Contact:

Post by codemastr »

Can you paste your actual listen line?
-- codemastr
ShArDiCk
Posts: 39
Joined: Tue Jun 01, 2004 7:10 pm
Location: Italy
Contact:

Post by ShArDiCk »

Here it is:
listen [2001:470:1f01:ffff::1df]:5555;
ShArDiCk
Posts: 39
Joined: Tue Jun 01, 2004 7:10 pm
Location: Italy
Contact:

Post by ShArDiCk »

I've solved the problem of "connection refused."

But now, my question is: i have to link this IRCD on IPV6 Compile with another that's IPV6 Compile.

It's possibile?

Another question.... i can set the LISTEN on an IPV6 ip on port 6667 on one ircd and on another ircd put an IPV4 ip on port 6667 on LISTEN?.

Thanx
Dukat
Posts: 1083
Joined: Tue Mar 16, 2004 5:44 pm
Location: Switzerland

Post by Dukat »

Please tell us how you solved the problem.
Maybe you help future users with the same issue.


About Linking:
Why should it not be possible? Just do it! :D
(Follow the Howto if you are unsure: http://forums.unrealircd.com/viewtopic.php?t=329 )

About the listen-port:
As long as these are two different IPs, that shouldn't be a problem.
ShArDiCk
Posts: 39
Joined: Tue Jun 01, 2004 7:10 pm
Location: Italy
Contact:

Post by ShArDiCk »

Dont worry. Was my fault.
I didnt bind ipv6 addr on eth0 :P

However... ive problem on listening port...

i have two ircd on a server.

ipv4 ircd: binded on 6667 on ipv4 ip
ipv6 ircd: binded on 6667 on ipv6 ip.

When i run ipv6 ircd returns this error:
Error binding stream socket to IP 2001:618:4db::1 port 6667 - v6.irclab.net[]:Address already in use

I dont understand how....

If you want my listen line or link lines say me. im going crazy
Dukat
Posts: 1083
Joined: Tue Mar 16, 2004 5:44 pm
Location: Switzerland

Post by Dukat »

Please post all listen blocks/lines of both IRCds.
ShArDiCk
Posts: 39
Joined: Tue Jun 01, 2004 7:10 pm
Location: Italy
Contact:

Post by ShArDiCk »

LISTEN on ipv6 ircd:
listen ipv4:5556;
listen [2001:618:4db::1]:6667;
Listening on ipv4:5556 is needed to link with the hub via ipv4.

LISTEN ON ipv4 ircd:
listen ipv4:6667
codemastr
Former UnrealIRCd head coder
Posts: 811
Joined: Sat Mar 06, 2004 8:47 pm
Location: United States
Contact:

Post by codemastr »

listen ipv4:5556;
Well, I'm assuming you actually have an ipv4 IP there, not the word "ipv4"? But anyway, that's still not correct. In IPv6 mode, you need to inform the system that it is a v4 IP. You do this through v4 mapping:

listen [::ffff:127.0.0.1]:5556;

That would listen on port 5556 of the IPv4 IP 127.0.0.1.
-- codemastr
ShArDiCk
Posts: 39
Joined: Tue Jun 01, 2004 7:10 pm
Location: Italy
Contact:

Post by ShArDiCk »

I havent problem on listening on 5556 on v4 ip.
Surely, i havent "ipv4" word in listen block :)

I have problem on listening on 6667 on v6 ip.

Error binding stream socket to IP 2001:618:4db::1 port 6667 - v6.irclab.net[]:Address already in use
ShArDiCk
Posts: 39
Joined: Tue Jun 01, 2004 7:10 pm
Location: Italy
Contact:

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?

Thanx
Post Reply