View Issue Details

IDProjectCategoryView StatusLast Update
0002741unrealdocumentationpublic2006-05-17 07:35
ReportermontarotechAssigned To 
PrioritynormalSeveritytextReproducibilityalways
Status closedResolutionno change required 
Platformi386OSFreeBSDOS Version6.0-STABLE
Product Version3.2.3 
Target VersionFixed in Version 
Summary0002741: listen *:port on IPv6 enabled UnrealIRCd only listens on INET6
DescriptionWhen UnrealIRCd is compiled with IPv6, adding a "listen *:6667;" to unrealircd.conf will ONLY listen on INET6

Looking for a way to listen on IPv4 aswell without having to specify each address.
Steps To Reproduceadd to unrealircd.conf:

listen *:6667;

or any other port
IPv6-enabled UnrealIRCd only
TagsNo tags attached.
3rd party modules

Relationships

child of 0002748 closedsyzop 3.2.5 Release 

Activities

syztest100

2006-01-06 21:30

reporter   ~0010932

you get connection refused if telnetting to your ipv4 addr on that port? Most likely freebsd specific then I think...
maybe you need to tweak a sysctl ? (I know there's one for ipv4 to ipv6 mapping [eh, or reverse], but don't know if that's the one...).

montarotech

2006-01-06 22:21

reporter   ~0010933

If I try telnetting I get connection refused.

I attempted this with Linux, and I did not get the same problem. It seems its just a FreeBSD specific issue.

Perhaps if anyone knew of a fix for this?

montarotech

2006-01-06 22:28

reporter   ~0010934

For general interest purposes, using the same config files (listen *:6667;) :

FreeBSD:
# telnet 127.0.0.1 6667
Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: Connection refused
telnet: Unable to connect to remote host
# telnet ::1 6667
Trying ::1...
Connected to ::1
Escape character is '^]'.
:irc.xxx.xxx NOTICE AUTH :*** Found your hostname

Linux:

# telnet 127.0.0.1 6667
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
:irc.xxx.xxx NOTICE AUTH :*** Found your hostname
# telnet ::1 6667
Connected to ::1.
Escape character is '^]'.
:irc.xxx.xxx NOTICE AUTH :*** Found your hostname

Same arguements passed to ./configure
and same unrealircd.conf

so it seems its definately a freebsd related issue.

Ideas please?

montarotech

2006-01-06 22:31

reporter   ~0010936

Last edited: 2006-01-06 22:35

I think I've found a solution:

When binding to an IPv6 wildcard socket FreeBSD doesn't accept IPv4 connections on that port. This can be changed by

sudo sysctl -w net.inet6.ip6.v6only=0

or add

net.inet6.ip6.v6only=0

to /etc/sysctl.conf and reboot.

montarotech

2006-01-06 22:34

reporter   ~0010937

Yes this was definately the solution.

All is now working as it should be. :)

syzop

2006-01-07 07:33

administrator   ~0010940

Thanks montarotech, that's probably something we should document/mention somewhere then ;).

montarotech

2006-01-07 21:31

reporter   ~0010951

:)
Glad i could help

syzop

2006-05-17 07:35

administrator   ~0011720

Ok, faq entry added at http://www.vulnscan.org/UnrealIRCd/faq/98

Issue History

Date Modified Username Field Change
2006-01-06 20:31 montarotech New Issue
2006-01-06 21:30 syztest100 Note Added: 0010932
2006-01-06 22:21 montarotech Note Added: 0010933
2006-01-06 22:28 montarotech Note Added: 0010934
2006-01-06 22:31 montarotech Note Added: 0010936
2006-01-06 22:34 montarotech Note Added: 0010937
2006-01-06 22:35 montarotech Note Edited: 0010936
2006-01-07 07:33 syzop Note Added: 0010940
2006-01-07 07:33 syzop Severity block => text
2006-01-07 07:33 syzop Status new => acknowledged
2006-01-07 07:33 syzop Category ircd => documentation
2006-01-07 21:31 montarotech Note Added: 0010951
2006-01-22 08:43 syzop Relationship added child of 0002748
2006-05-17 07:35 syzop Status acknowledged => closed
2006-05-17 07:35 syzop Note Added: 0011720
2006-05-17 07:35 syzop Resolution open => no change required