Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Mar 2020 22:15:56 +0700
From:      Victor Sudakov <vas@sibptus.ru>
To:        freebsd-questions@freebsd.org
Cc:        freebsd-net@freebsd.org
Subject:   IPv6 in jails
Message-ID:  <20200318151556.GA64871@admin.sibptus.ru>

next in thread | raw e-mail | index | archive | help

--gKMricLos+KVdGMg
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Dear Colleagues,

Is IPv6 in jails supposed to work? Does not work for me, what am I doing
wrong?

Here is a test jail:

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";
}

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  =
   =20
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).


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

--gKMricLos+KVdGMg
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQEcBAEBAgAGBQJecjssAAoJEA2k8lmbXsY00J4H+wdUu662JaOYQBHyt1d6ioDE
QRjKaBQPJXP0OEvZhH1PfyShiPSCYTpLyi1QTTE9xAbd8WoZ4Crn7VSjZIgY2+/y
4eR6eR8hlXLOS+ZwqSqJhlTdwhKoZrR2DLmD7N54vZOCZbEqp+LHSl4O3YvTPyx9
TzUioH93sNxNFRODV+3C5ibJbaNIvpPDV866tqLCL+uZQJe513vugsjUEY+gVcdE
qGNCoTcMLMxjqTLOVXN0bCjGDERNej5gW1q/TawVpk7PTIEIJrHqvKCqRNlomEot
XvjQoCwiwDr2cn3skBktvAwqfV+PgObgoZOG1L9sOU1QSx6uochA+m7OFaVPEZo=
=V3cQ
-----END PGP SIGNATURE-----

--gKMricLos+KVdGMg--



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