Date: Wed, 18 Mar 2020 17:48:36 +0100 From: Jacques Foucry <jacques+freebsd@foucry.net> To: Victor Sudakov <vas@sibptus.ru> Cc: freebsd-questions@freebsd.org, freebsd-net@freebsd.org Subject: Re: IPv6 in jails Message-ID: <20200318164836.GO25617@foucry.net> In-Reply-To: <20200318151556.GA64871@admin.sibptus.ru> References: <20200318151556.GA64871@admin.sibptus.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
Le mercredi 18 mars 2020 à 22:15:56 (+0700), Victor Sudakov à écrit:
> Dear Colleagues,
Hello Victor,
>
> Is IPv6 in jails supposed to work? Does not work for me, what am I doing
> wrong?
Suppose to work, and work for me.
>
> Here is a test jail:
>
> test4 {
> path = /d02/jails/test4 ;
> mount.devfs;
> ip4 = new;
> ip6 = new;
> ip4.addr = 192.168.4.204/24;
> ip6.addr = 2001:470:ecba:3::4/64;
> host.hostname = test4.vas.sibptus.ru ;
> interface = re1 ;
> allow.raw_sockets = true ;
> exec.start = "/bin/sh /etc/rc";
> exec.stop = "/bin/sh /etc/rc.shutdown";
> }
Well there is a difference between your config and mine:
ip6.addr="em0|2a01:4f9:4a:1fd8::16/64";
In my config there is the interface to use (em0 in my case, re1 should be in
yours)
>
> However when I look from inside the jail, I see the daemons listening
> only on IPv4:
>
> root@test4:/ # sockstat -l
> USER COMMAND PID FD PROTO LOCAL ADDRESS FOREIGN ADDRESS
> root sendmail 17178 3 tcp4 192.168.4.204:25 *:*
> root sshd 17175 3 tcp4 192.168.4.204:22 *:*
> root syslogd 17110 5 udp4 192.168.4.204:514 *:*
>
> If I "ssh 2001:470:ecba:3::4" from outside, I get into the host instead
> of the jail (because 2001:470:ecba:3::4 *is* assigned to re1, but not
> available inside the jail).
Hope my small experience can help you.
--
Jacques Foucry
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
iHUEAREIAB0WIQRd29C9s3PtOgNIX2tkcaT/7DX1XwUCXnJQ5AAKCRBkcaT/7DX1
X3f9AQCW6HReI88HfgHdKpGHxZGJax+txDbgcmWJEzv+oaYn3gD+I9iaz7011d7z
GSvQfy1AmpRrgAVF81AER+XphppPLJw=
=VyTr
-----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20200318164836.GO25617>
