Date: Thu, 19 Mar 2020 09:22:24 +0700 From: Victor Sudakov <vas@sibptus.ru> To: freebsd-questions@freebsd.org, freebsd-net@freebsd.org Subject: Re: IPv6 in jails Message-ID: <20200319022224.GB80800@admin.sibptus.ru> In-Reply-To: <20200318164836.GO25617@foucry.net> References: <20200318151556.GA64871@admin.sibptus.ru> <20200318164836.GO25617@foucry.net>
next in thread | previous in thread | raw e-mail | index | archive | help
--lEGEL1/lMxI0MVQ2 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Jacques Foucry wrote: >=20 > >=20 > > Is IPv6 in jails supposed to work? Does not work for me, what am I doing > > wrong? >=20 > Suppose to work, and work for me. > >=20 > > Here is a test jail: > >=20 > > test4 {=20 > > path =3D /d02/jails/test4 ; > > mount.devfs; > > ip4 =3D new; > > ip6 =3D new; > > ip4.addr =3D 192.168.4.204/24; > > ip6.addr =3D 2001:470:ecba:3::4/64; > > host.hostname =3D test4.vas.sibptus.ru ; > > interface =3D re1 ; > > allow.raw_sockets =3D true ; > > exec.start =3D "/bin/sh /etc/rc"; > > exec.stop =3D "/bin/sh /etc/rc.shutdown"; > > } >=20 >=20 > Well there is a difference between your config and mine: >=20 > ip6.addr=3D"em0|2a01:4f9:4a:1fd8::16/64"; >=20 > In my config there is the interface to use (em0 in my case, re1 should be= in > yours) I have a more generic "interface =3D re1" statement, but replacing it with ip6.addr =3D "re1|2001:470:ecba:3::4" did not produce any effect on the jailed daemons. Of course the IPv6 address is present on re1 in both cases (my syntax and your syntax). When the jail is stopped, the address goes away. --=20 Victor Sudakov, VAS4-RIPE, VAS47-RIPN 2:5005/49@fidonet http://vas.tomsk.ru/ --lEGEL1/lMxI0MVQ2 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEcBAEBAgAGBQJectdgAAoJEA2k8lmbXsY0MrcIAIOFYa/VorAia25ilVXaQEWp dSnCcgznS0/UzmZoR1shW13u3M+t2LwZ8X7048IQspTb8tS8PhBN7Mg+/+PGM92P TyQkwZmkOsFYud/2Jt6Y+lvmWzikzdAw5ADPkirRELdTQ/BbWUfiRuGRYMEJY3iE WU1/H5NUfgFBRCOp6PUJtA2pbGImoZNh4f8/lPUBpeGRfIk5nejg6OeytFXUpGKb c4B+QwtPrSJowRcF1N2yMVU07FH0CfqReSEOSYDFWW78zUyZvZDyy6QWn/H+XkLD ZcBA+sfPTrpL9iUQKruTntdACvivQSRoMBwj4aEBGrpBada9HGqSfJSWLCWuWHw= =gMoW -----END PGP SIGNATURE----- --lEGEL1/lMxI0MVQ2--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20200319022224.GB80800>