Page 1 of 1

Services Not Linked.

Posted: Tue Sep 02, 2008 8:50 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:246: 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
when i convert my ipv4 into ipv6 the config file run ok, but when i run services to connect to my server, it said;

Code: Select all

Link denied for services.myserver.org([email protected]) (Server is in link block but IP/host didn't match) [@0:0:0:0:0:ffff:69.147.0.0.52255]
FYI: at services conf file, i set IPV6 for ircd server .....

how to solve this ???

Re: Services Not Linked.

Posted: Tue Sep 02, 2008 2:25 pm
by T-rexke
remove the autoconnect; in your link block if you are linking services :)

Re: Services Not Linked.

Posted: Tue Sep 02, 2008 3:44 pm
by maxisgsm
i remove the autocoonect, but services wont connect ... here the logs

Code: Select all

[Sep 02 10:42:37 2008] Every UserKey must be different. It's for YOUR safety! Remember that!
[Sep 02 10:42:37 2008] Loading IRCD Protocol Module: [unreal32]
[Sep 02 10:42:37 2008] status: [0][Module, Okay - No Error]
[Sep 02 10:42:37 2008] Loading Encryption Module: [enc_none]
[Sep 02 10:42:37 2008] status: [0][Module, Okay - No Error]
[Sep 02 10:42:37 2008] Anope 1.7.19 (1247) (ircd protocol: UnrealIRCd 3.2+) starting up
[Sep 02 10:42:37 2008] ms_rsend requested unload...
[Sep 02 10:42:37 2008] debug: trying to load core module [ms_rsend]
[Sep 02 10:42:37 2008] debug: status: [6][Module Error, Error during load time or module returned MOD_STOP]
[Sep 02 10:42:37 2008] MySQL: has been disabled.
[Sep 02 10:42:37 2008] Databases loaded
[Sep 02 10:42:37 2008] Info: Reflecting database records.
[Sep 02 10:42:37 2008] FATAL: Can't connect to server: No such file or directory

Re: Services Not Linked.

Posted: Tue Sep 02, 2008 8:08 pm
by zEkE
maxisgsm wrote: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:246: 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
when i convert my ipv4 into ipv6 the config file run ok, but when i run services to connect to my server, it said;

Code: Select all

Link denied for services.myserver.org([email protected]) (Server is in link block but IP/host didn't match) [@0:0:0:0:0:ffff:69.147.0.0.52255]
FYI: at services conf file, i set IPV6 for ircd server .....

how to solve this ???
Let me confirm things here:
- Your IRCd is compiled as IPv6
- Your IRCd has a link block for services
- Your link block for services is using an IPv4 address
- Your services server is configured to connect to an IPv6 address

Are these all correct statements?

Re: Services Not Linked.

Posted: Tue Sep 02, 2008 11:55 pm
by maxisgsm
zEkE wrote: Let me confirm things here:
- Your IRCd is compiled as IPv6
- Your IRCd has a link block for services
- Your link block for services is using an IPv4 address
- Your services server is configured to connect to an IPv6 address

Are these all correct statements?
1. I not remember i compiled IRCD in IPV6 or IPV4 because the IRCD already 2 month up.
2. Yeap
3. I set my link block using IPV6, because when i use IPV4 it gave me an error
4. I set my service config file IP using IPV6

How to check my server compiled in IPV 6 /4 ?? Have a commands ??

Re: Services Not Linked.

Posted: Wed Sep 03, 2008 4:01 am
by zEkE
maxisgsm wrote:
zEkE wrote: Let me confirm things here:
- Your IRCd is compiled as IPv6
- Your IRCd has a link block for services
- Your link block for services is using an IPv4 address
- Your services server is configured to connect to an IPv6 address

Are these all correct statements?
1. I not remember i compiled IRCD in IPV6 or IPV4 because the IRCD already 2 month up.
2. Yeap
3. I set my link block using IPV6, because when i use IPV4 it gave me an error
4. I set my service config file IP using IPV6

How to check my server compiled in IPV 6 /4 ?? Have a commands ??
1. If it is erroring using an IPv4 address, it is an IPv6 compile.
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;
};
};
From an earlier post, that shows as an IPv4 address in the link block for the services. This should be an IPv6 style IP for an IPv4 address: eg, ::ffff:69.147.0.0

In services, I don't recall anope's IP version capabilities, but chances are it doesn't support IPv6 addresses, so your services should still be connecting like an IPv4 - that is, giving it an IPv4 style address: 69.147.0.0.

So in summary, your link block should have the IPv4 address written IPv6 style IE ::ffff:69.147.0.0, and your services config should just have an IPv4 address, 69.147.0.0.

Does this make sense?

Re: Services Not Linked.

Posted: Wed Sep 03, 2008 8:42 am
by maxisgsm
i use http://www.subnetonline.com for convert my IPV4 into IPV6, so i get this format ( 2002:0:0:0:0:0:4593:ed4a )

how to convert into IE format ??