jail questions

Chuck Musser cmusser at sonic.net
Mon Jun 1 16:41:10 PDT 2020

I am starting to experiment with jails on Dfly and I have a couple of

1. The jail(8) manpage says that "" inside the jail is mapped
to and from a localhost address(I'm assuming that means anything in the
loopback range: you pass into the jail. If you don't give a
jail a localhost address (like maybe you just give it an external one),
what happens? I found an article on FreeBSD
that makes this statement:

the loopback-address inside a jail is emulated by the system: 

 	* is an alias for the _first_ IPv4-address assigned to the
 	* ::1 is an alias for the _first_ IPv6-address assigned to the jail.

Is this true on DragonFly? I guess that if it is, it probably is best to
assign a localhost address, so you don't run into a situation where an
application binds to localhost in side of a jail and unwittingly is on
the internet. 

2. How do you install packages inside a jail. In the "full jail" I
installed, the "pkg" program wasn't available. Is the proper technique
to somehow do package installations from the "host" into the jail area? 

I was hoping to get enough experience with this stuff to satisfy my own
curiosity, and also to perhaps contribute some documentation to the
project, perhaps expand on the current section on jails in the handbook.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.dragonflybsd.org/pipermail/users/attachments/20200601/ca7817a6/attachment-0003.htm>

More information about the Users mailing list