Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 21 Mar 2020 13:52:37 +0100
From:      Jan Behrens <jbe-mlist@magnetkern.de>
To:        Victor Sudakov <vas@sibptus.ru>
Cc:        freebsd-net@freebsd.org, "Bjoern A. Zeeb" <bzeeb-lists@lists.zabbadoz.net>
Subject:   Re: IPv6 in jails
Message-ID:  <20200321135237.12c09875dc0d695bdc99349d@magnetkern.de>
In-Reply-To: <20200321043502.GA51499@admin.sibptus.ru>
References:  <20200318151556.GA64871@admin.sibptus.ru> <2dd539ed-0ee3-079b-27b2-28126056c69a@quip.cz> <20200318155046.GD65497@admin.sibptus.ru> <4CA69535-0F6C-40FC-83CF-5000FD728C2D@lists.zabbadoz.net> <20200319184502.02545d3a849fd60fe63a717f@magnetkern.de> <20200321043502.GA51499@admin.sibptus.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 21 Mar 2020 11:35:02 +0700
Victor Sudakov <vas@sibptus.ru> wrote:

> Jan Behrens wrote:
> > 
> > > Can you then do a jexec test4 and run service sshd restart and see if it 
> > > starts working?
> > 
> > I experienced the same problem as discussed in this thread when I set
> > up IPv6 with my server. Strangely, when I rebooted the host system and
> > simply started the jails one after the other (with a freshly booted
> > host system), the problem didn't occur, but maybe that was just random.
> > 
> > A "service sshd restart" inside the jail always seemed to help, which
> > is why I also assumed there was some sort of race condition. But maybe
> > it is related to some addresses being in use yet when restarting a jail?
> 
> Does this happen only with IPv6 jail addresses?

Yes, I did not notice any problem with the IPv4 addresses. When I do
"jexec -l <jailname> csh -l" and then enter "netstat -an", I see that
sometimes sshd does not listen on the configured IPv6 address but on the
configured IPv4 address.

Whenever this happens, I can solve it with "service sshd restart"
inside the jail.

It also does not seem to happen when I reboot the host system and start
the jails for the first time. In that case, sshd listens on both IPv4
and IPv6 (at least when I last tried, I'm not sure if this always
works).

> -- 
> Victor Sudakov,  VAS4-RIPE, VAS47-RIPN
> 2:5005/49@fidonet http://vas.tomsk.ru/

-- Jan



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20200321135237.12c09875dc0d695bdc99349d>