View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update | 
|---|---|---|---|---|---|
| 0002741 | unreal | documentation | public | 2006-01-06 20:31 | 2006-05-17 07:35 | 
| Reporter | montarotech | Assigned To | |||
| Priority | normal | Severity | text | Reproducibility | always | 
| Status | closed | Resolution | no change required | ||
| Platform | i386 | OS | FreeBSD | OS Version | 6.0-STABLE | 
| Product Version | 3.2.3 | ||||
| Summary | 0002741: listen *:port on IPv6 enabled UnrealIRCd only listens on INET6 | ||||
| Description | When 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 Reproduce | add to unrealircd.conf: listen *:6667; or any other port IPv6-enabled UnrealIRCd only  | ||||
| Tags | No tags attached. | ||||
| 3rd party modules | |||||
| 
		 | 
	
	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...).  | 
| 
		 | 
	
	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?  | 
| 
		 | 
	
	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?  | 
| 
		 | 
	
	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.  | 
| 
		 | 
	
	Yes this was definately the solution. All is now working as it should be. :)  | 
| 
		 | 
	Thanks montarotech, that's probably something we should document/mention somewhere then ;). | 
| 
		 | 
	
	:) Glad i could help  | 
| 
		 | 
	Ok, faq entry added at http://www.vulnscan.org/UnrealIRCd/faq/98 | 
| 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 |