IPv6 (again) Link/Listen/SSL Problems

These are old archives. They are kept for historic purposes only.
Post Reply
Darvocet
Posts: 105
Joined: Sun Jun 27, 2004 6:40 am
Location: Houston, TX
Contact:

IPv6 (again) Link/Listen/SSL Problems

Post by Darvocet »

Hello it's me again. Searching the forums for ipv6 shows like only posts from me. I was able to get ipv6 on yet another machine yesterday just fine. However, trying today on another server I've run into a dead in. Thought maybe one of you smarty-pants's would be able to help. :)

Couple problems I guess.

Server is having trouble binding to IPv4 ips. - Server starts and runs fine, and when I attempt to connect via IPv6 works just fine. But when I try to connect to the IPv4 IP I get a connection refused error. 'netstat -an' doesn't show the IPv4 IPs in there, but the IPv6 ones are.

Here is my setup:

Code: Select all

listen ::ffff:80.203.xx.xx:6660 {
        options {
                ssl;
        };
};
listen ::ffff:80.203.xx.xx:6666;
listen ::ffff:80.203.xx.xx:6667;
listen ::ffff:80.203.xx.xx:6668;
listen ::ffff:80.203.xx.xx:6669;
listen ::ffff:80.203.xx.xx:7000;

#listen [3ffe:80ee:xxxx::6667]:6660 {
#       options {
#               ssl;
#       };
#};
listen [3ffe:80ee:xxxx::6667]:6666;
listen [3ffe:80ee:xxxx::6667]:6667;
listen [3ffe:80ee:xxxx::6667]:6668;
listen [3ffe:80ee:xxxx::6667]:6669;
listen [3ffe:80ee:xxxx::6667]:7000;
I would of course like SSL on port 6660 for both IPv4 and IPv6 if possible, but for testing purposes I disabled it on the IPv6 side. This was also done because this server will be linking from that port via SSL to another server. Link block is like:

Code: Select all

link xxxxx.epicirc.net {
username *;
hostname ::ffff:212.151.xx.xx;
bind-ip *;
port 6660;
hub *;
password-connect "xxxxx";
password-receive "xxxxx" { crypt; };
class servers;
compression-level 9;
options {
autoconnect;
zip;
ssl;
};
};
I'm getting a couple errors in the log...

Code: Select all

[Fri Apr 22 03:20:40 2005] - Connect to host xxxx.epicirc.net[::ffff:212.151.xx.xx] failed: Invalid argument
[Fri Apr 22 03:21:00 2005] - Error binding stream socket to IP 3ffe:80ee:xxxx::6667 port 7000 - localserver.epicirc.net[]:Address already in use
[Fri Apr 22 03:21:11 2005] - Connect to host xxxx.epicirc.net[::ffff:212.151.xx.xx] failed: Invalid argument
Hehe.. I know what the address already in use means, but there shouldn't be anyother processes using that port. That one only comes up randomly though, and not as often as the Invalid Argument error. I assume that error is because it is unable to link to an IPv4 server when it has not bound to an IPv4 IP.

I also tried the listen blocks with [::ffff:80.214.xx.xx]:6667; it didnt make any difference.

Other server only gets the "SSL_connect(): Underlying syscall error" error.

Much thanks for your quick and helpful responses.... hehe :)
- Darvocet
Sr. Network Admin: EpicIRC.Net
Dukat
Posts: 1083
Joined: Tue Mar 16, 2004 5:44 pm
Location: Switzerland

Post by Dukat »

Do it step by step.

First, set up a listen block on ONE address.
Then add another.
Then add an ssl one.
Then the the links.


For the listen blocks, you always have to enclose the IPs in brackets. ::ffff:80.203.xx.xx:6666 is wrong, you have to use [::ffff:80.203.xx.xx]:6667.
If you don't make mistakes, you aren't really trying.
- Coleman Hawkins
Post Reply