Enable ipv6

If your UnrealIRCd is up and running but you have a question about it, then use this forum.
(NOT for installation or connecting issues! Use the other forum instead.)

Moderator: Supporters

Post Reply
lowkey
Posts: 4
Joined: Sun Dec 11, 2022 2:30 pm

Enable ipv6

Post by lowkey »

Greetings :)
May I know how can I enable ipv6 connection on unrealircd.
I would like to allow client that using ipv6 to connect to my ircd server.
Thanks!
Syzop
UnrealIRCd head coder
Posts: 2112
Joined: Sat Mar 06, 2004 8:57 pm
Location: .nl
Contact:

Re: Enable ipv6

Post by Syzop »

UnrealIRCd
On the UnrealIRCd side the only that matters is if you have a listen block:

Configuration
If you have a generic listen block like this (ip *):

Code: Select all

listen {
        ip *;
..etc..
... then it will listen on both IPv4 and IPv6 and there is nothing left to do on the UnrealIRCd side. All is good.

If you don't have that and have a specific block for IPv4 like this (with your server IPv4 IP):

Code: Select all

listen {
        ip 1.2.3.4;
..etc..
...then you need to add an extra listen block for IPv6 (replace it with your server IPv6 IP of course):

Code: Select all

listen {
        ip 2a05:abcd:ef:123:1:0:0:0;
..etc..
Verification
You can verify that your UnrealIRCd is listening on both IPv4 and IPv6 by running /STATS P as an IRCOp. It will show you something like: Listener on xxxx (IPv6). If it does not then either you don't have a good listen block, or your OS does not have IPv6 enabled (quite rare nowadays).

OS
Then on the OS you need to have IPv6 enabled (this is usually the case) and you also need to have IPv6 connectivity, like your ISP or your VPS provider needs to support it. This may require some configuration, depending on the provider.

Commands like 'ifconfig' and 'ip addr' may help you figure out your IPv6 IP. Note that not all IPv6 IP's are reachable from the Internet, like those fe80:: addresses are LAN-only addresses.
lowkey
Posts: 4
Joined: Sun Dec 11, 2022 2:30 pm

Re: Enable ipv6

Post by lowkey »

Season greetings @Syzop :-)
Thanks for details, let me try it out to see if it works.
lowkey
Posts: 4
Joined: Sun Dec 11, 2022 2:30 pm

Re: Enable ipv6

Post by lowkey »

lowkey wrote: Sun Dec 25, 2022 10:05 am Season greetings @Syzop :-)
Thanks for details, let me try it out to see if it works.
It's working well, thanks! :-)
ambrose12
Posts: 1
Joined: Wed Dec 28, 2022 7:36 am

Re: Enable ipv6

Post by ambrose12 »

Interesting information
Post Reply