Re: Problem with setup jabberd2 to working with ipv4 and ipv6
W dniu 2012-01-13 21:36, Christof Meerwald pisze: Looks like the kernel got a bit more strict recently - with 2.6.32 you can create an AF_INET socket and bind it to an AF_INET6 "::" address, but with 3.0 the kernel now complains with EAFNOSUPPORT. Indeed, i'm using kernel 3.1. I guess as a quick and dirty workaround you might be able to set s2s->origin_ip = NULL; in s2s/main.c, line 126 Workarround seems to work for me. I don't have such messages anymore. Thank you for the tip.
Re: Problem with setup jabberd2 to working with ipv4 and ipv6
On Fri, Jan 13, 2012 at 08:46:04PM +0100, Marcin Mirosław wrote: > W dniu 2012-01-13 20:24, Christof Meerwald pisze: > >On Fri, Jan 13, 2012 at 05:14:59PM +0100, Marcin Mirosław wrote: > >>I've found information i should set local/ip to :: (double colon), done. > > > >What's the setting of net.ipv6.bindv6only (sysctl > >net.ipv6.bindv6only)? > # cat /proc/sys/net/ipv6/bindv6only > 0 Looks like the kernel got a bit more strict recently - with 2.6.32 you can create an AF_INET socket and bind it to an AF_INET6 "::" address, but with 3.0 the kernel now complains with EAFNOSUPPORT. I guess as a quick and dirty workaround you might be able to set s2s->origin_ip = NULL; in s2s/main.c, line 126 Christof -- http://cmeerw.org sip:cmeerw at cmeerw.org mailto:cmeerw at cmeerw.org xmpp:cmeerw at cmeerw.org
Re: Problem with setup jabberd2 to working with ipv4 and ipv6
W dniu 2012-01-13 20:24, Christof Meerwald pisze: On Fri, Jan 13, 2012 at 05:14:59PM +0100, Marcin Mirosław wrote: I've found information i should set local/ip to :: (double colon), done. What's the setting of net.ipv6.bindv6only (sysctl net.ipv6.bindv6only)? Hi Christof, # cat /proc/sys/net/ipv6/bindv6only 0 # netstat -lptun|grep s2s tcp6 0 0 :::5269 :::* LISTEN 47761/s2s $ telnet 127.0.0.1 5269 Trying 127.0.0.1... Connected to 127.0.0.1. Escape character is '^]'. asd version='1.0'>xmlns:stream='http://etherx.jabber.org/streams'>xmlns='urn:ietf:params:xml:ns:xmpp-streams'/>xmlns='urn:ietf:params:xml:ns:xmpp-streams'>syntax errorConnection closed by foreign host. $ telnet :: 5269 Trying ::... Connected to ::. Escape character is '^]'. asd version='1.0'>xmlns:stream='http://etherx.jabber.org/streams'>xmlns='urn:ietf:params:xml:ns:xmpp-streams'/>xmlns='urn:ietf:params:xml:ns:xmpp-streams'>syntax errorConnection closed by foreign host. S2s is accepting connetcion on both ipv4 and ipv6 protos. Regards.
Re: Problem with setup jabberd2 to working with ipv4 and ipv6
On Fri, Jan 13, 2012 at 05:14:59PM +0100, Marcin Mirosław wrote: > I've found information i should set local/ip to :: (double colon), done. What's the setting of net.ipv6.bindv6only (sysctl net.ipv6.bindv6only)? Christof -- http://cmeerw.org sip:cmeerw at cmeerw.org mailto:cmeerw at cmeerw.org xmpp:cmeerw at cmeerw.org
Re: Problem with setup jabberd2 to working with ipv4 and ipv6
W dniu 2012-01-13 18:18, Tomasz Sterna pisze: Looks like https://bugs.launchpad.net/jabberd2/+bug/374687 bug. Hi Tomasz, yes, it looks simillary. I can see patch is included in jabberd-2.2.14, on linux it still doesn't solve problem. I'm guessing this bug have low priority? Thanks.
Re: Problem with setup jabberd2 to working with ipv4 and ipv6
Dnia 2012-01-13, pią o godzinie 17:14 +0100, Marcin Mirosław pisze: > I've found information i should set local/ip to :: (double colon), > done. > Local resolver listens on both ip families, > cat /etc/resolv.conf > search . > nameserver 127.0.0.1 > nameserver ::1 > > But it doesn't work as i expect. I can't connect to anyone Looks like https://bugs.launchpad.net/jabberd2/+bug/374687 bug.
Problem with setup jabberd2 to working with ipv4 and ipv6
Hello. I've found information i should set local/ip to :: (double colon), done. Local resolver listens on both ip families, cat /etc/resolv.conf search . nameserver 127.0.0.1 nameserver ::1 But it doesn't work as i expect. I can't connect to anyone, s2s debug log throws: Fri Jan 13 17:03:23 2012 router.c:34 want read Fri Jan 13 17:03:23 2012 out.c:1831 deleting out packet queue for mejor.pl/marcel.pl Fri Jan 13 17:03:23 2012 out.c:1029 dns response for gmail.com@0x7fae91f59ff0: A alt1.xmpp-server.l.google.com 1 (300) Fri Jan 13 17:03:23 2012 out.c:1037 dns response for gmail.com@0x7fae91f59ff0: A alt1.xmpp-server.l.google.com[0] 209.85.175.125/5269 Fri Jan 13 17:03:23 2012 out.c:739 dns result added for gmail.com@0x7fae91f59ff0: 209.85.175.125/5269 (20/0/300) Fri Jan 13 17:03:23 2012 out.c:1077 dns ttl for gmail.com@0x7fae91f59ff0 limited to 900 Fri Jan 13 17:03:23 2012 out.c:1088 dns request for gmail.com@0x7fae91f59ff0: A alt4.xmpp-server.l.google.com Fri Jan 13 17:03:23 2012 out.c:815 dns response for jabster.pl@0x7fae91f71c50: SRV _xmpp-server._tcp.jabster.pl 1 (300) Fri Jan 13 17:03:23 2012 out.c:822 dns response for jabster.pl@0x7fae91f71c50: SRV _xmpp-server._tcp.jabster.pl[0] lb1-hap.jabbim.cz/5269 (1/0) Fri Jan 13 17:03:23 2012 out.c:793 dns host added for jabster.pl@0x7fae91f71c50: lb1-hap.jabbim.cz/5269 (1/0/300) Fri Jan 13 17:03:23 2012 out.c:1077 dns ttl for jabster.pl@0x7fae91f71c50 limited to 300 Fri Jan 13 17:03:23 2012 out.c:1088 dns request for jabster.pl@0x7fae91f71c50: A lb1-hap.jabbim.cz Fri Jan 13 17:03:23 2012 main.c:583 read action on fd 5 Fri Jan 13 17:03:23 2012 out.c:1029 dns response for jabster.pl@0x7fae91f71c50: A lb1-hap.jabbim.cz 1 (1819) Fri Jan 13 17:03:23 2012 out.c:1037 dns response for jabster.pl@0x7fae91f71c50: A lb1-hap.jabbim.cz[0] 88.86.102.50/5269 Fri Jan 13 17:03:23 2012 out.c:739 dns result added for jabster.pl@0x7fae91f71c50: 88.86.102.50/5269 (1/0/300) Fri Jan 13 17:03:23 2012 out.c:1105 dns requests for jabster.pl@0x7fae91f71c50 complete: 1 (300) Fri Jan 13 17:03:23 2012 [notice] dns lookup for jabster.pl returned 1 result (ttl 300) Fri Jan 13 17:03:23 2012 out.c:1885 flushing 2 packets for 'mejor.pl/jabster.pl' to out_packet Fri Jan 13 17:03:23 2012 out.c:403 trying to find connection for 'jabster.pl' Fri Jan 13 17:03:23 2012 out.c:406 connection for 'jabster.pl' not found Fri Jan 13 17:03:23 2012 out.c:208 selecting DNS result for 'jabster.pl' Fri Jan 13 17:03:23 2012 out.c:275 host '88.86.102.50/5269' IPv4 Fri Jan 13 17:03:23 2012 out.c:281 reset prio list, using prio 1 Fri Jan 13 17:03:23 2012 out.c:289 added host with weight 0 (16), running weight 16 Fri Jan 13 17:03:23 2012 out.c:340 using IPv4 hosts, total weight 16 Fri Jan 13 17:03:23 2012 out.c:344 random number 13 Fri Jan 13 17:03:23 2012 out.c:348 selected host '88.86.102.50/5269', running weight 16 Fri Jan 13 17:03:23 2012 out.c:514 initiating connection to 88.86.102.50/5269 Fri Jan 13 17:03:23 2012 [notice] [-1] [88.86.102.50, port=5269] mio_connect error: Address family not supported by protocol (97) Fri Jan 13 17:03:23 2012 out.c:403 trying to find connection for 'jabster.pl' Fri Jan 13 17:03:23 2012 out.c:406 connection for 'jabster.pl' not found Fri Jan 13 17:03:23 2012 out.c:208 selecting DNS result for 'jabster.pl' Fri Jan 13 17:03:23 2012 out.c:230 host '88.86.102.50/5269' bad Fri Jan 13 17:03:23 2012 out.c:357 using bad hosts, allow_bad=0 Fri Jan 13 17:03:23 2012 out.c:125 queueing packet for 'mejor.pl/jabster.pl' sx (chain.c:106) calling nad write chain sx (io.c:406) queueing for write: 50 sx (io.c:429) tag 6 event 1 data 0x0 and the same for other domains. When i set local/ip to 0.0.0.0 i have no such problem. Am i doing something wrong? Jabberd-2.2.14, gentoo. Thanks for help.