Date: Thu, 6 Jun 2019 17:47:30 +0100 From: Matthew Seaman <matthew@FreeBSD.org> To: freebsd-questions@freebsd.org Subject: Re: to jail or not to jail Message-ID: <e98eeb28-fcda-06a3-97dc-14ff0797bb7b@FreeBSD.org> In-Reply-To: <CAPORhP410HKPOmqXJ-0VPo%2BpO7GY_vd3b0WHtkRJKXiXR=vozw@mail.gmail.com> References: <CAPORhP4pbfCC96PXOeErJgswX_2dh%2BmXcBb1TrH6F0f5oN-wDw@mail.gmail.com> <20190603101917.GA76784@home.lan> <CAPORhP410HKPOmqXJ-0VPo%2BpO7GY_vd3b0WHtkRJKXiXR=vozw@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 06/06/2019 05:41, David Mehler wrote: > 1. how do I divide the /64 ipv6 address so that each jail can have an > ipv6 address as well as an ipv4 address. Just assign IPv6 addresses in much the same way as you'ld assign IPv4 addresses. The syntax in /etc/rc.conf or /etc/jail.conf is very similar to the IPv4 case, and pretty clearly explained in the man pages. For traditional jails, you will need to assign addresses manually, but for vimage jails you should be able to use SLAAC. The hard part about assigning IPv6 addresses is that you have so many to choose from. There are many different schemes for IPv6 address assignment out there, but the one I like is just 'choose an address at random out of the /64 range.' I wrote a small perl script to do just that many moons ago: http://www.infracaninophile.co.uk/articles/hotchpotch/#rand-aaaa.pl Cheers, Matthew
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?e98eeb28-fcda-06a3-97dc-14ff0797bb7b>