jail

  1. poorandunlucky

    How do you connect to a jailed server?

    This is probably really stupid, and I'm in no way a FreeBSD newb, but I'm new to jails, I used to run everything on the main OS, but now I'm trying to setup things that are going to be open to the Internet (like NextCloud, a VPN, DNS) so I want them jailed... I've setup my jails no problem...
  2. J

    Running the same service (apache, mysql) in multiple jails

    I am running a few jails via ezjail. Nginx and pf on the main host take care of routing incoming requests to the appropriate jail. Each jail needs to run different instances of the same service - Apache and MySQL. Please help me get the set up right for doing this^^. As far as I understand...
  3. B

    separation of IP cameras

    Hello All, I would like to ask more experienced users how to conceptually approach the following task. I have a subnet 192.168.1.0/24 running a file server and backup machine in iocage jails (jails' IPs are on the same subnet). I would like to install IP cameras with zoneminder again running in...
  4. bagas

    jail network interface lo

    Hello. Please tell me. I have several jails, in jails you need to raise the lo0 interface. How should I do it? My system FreeBSD 11.3.
  5. Alain De Vos

    Building kernel and world in a poudriere jail

    Can I build a kernel and world in a poudriere jail? Is there a kernel and world port ? Or how to do ?
  6. altyne

    Solved mongodb Warning: failed to start mongod

    Well, seems the message is trival but the biggest issue I encountred. It has no logs created in /var/log. 1. created a jail. (all actions took inside jail) 2. install: pkg install mongodb40 3. append /etc/rc.conf => with mongod_enable="YES" 4. service mongod start 5. Viola! Warning: failed to...
  7. alex_noxx

    I can't access the internet inside the jail on freenas

    Hi. I am trying to configure a jail in freenas inside virtualbox. The problem I am having is that I cannot access the internet inside my jail. My jail is configured without NAT. Only with VNET without DHCP. My jail's network settings are: root@reverse-proxy:~ # ifconfig lo0...
  8. P

    vm-bhyve freebsd jail

    Hi, I am trying to set a jail with vm-bhyve, so I have downloaded FreeBSD 12-1 Release dvd iso, and checked the sha256 checksums, then followed this instructions -> https://github.com/churchers/vm-bhyve Everything goes well and no errors occured. But in the end of the installation, it shows...
  9. A

    pkg -j first _jail install does not work

    Hi All, I am new to jail and am learning; I have created few jails, root@FreeBSD113:~ # jls JID IP Address Hostname Path 1 10.0.0.6 y_jail /usr/jails/y_jail 2 10.0.0.2 firts_jls...
  10. quamenzullo

    Solved Lock root account in a jail

    I've read somewhere (no reference, unfortunately) that I could use vipw to edit /etc/master.passwd and put an exclamation mark in the root line to prevent root from having a password. Like so: root:!:0:0::0:0:Charlie &:/root:/bin/csh I wonder if I should do this in my jails. I am not so sure...
  11. R

    Jails setup with the external IP address on vtnet0

    Hello, I'm trying to setup jails on a Digital Ocean droplet by following the instructions in the handbook: https://www.freebsd.org/doc/handbook/jails-ezjail.html The network configuration is like this: * vtnet0 with the external IP address, 10.10.0.5 netmask 0xffff0000 (Digital Ocean's...
  12. O

    Build kernel and world from sources and jails

    Hello, I am looking for some feedback to improve my current setup/flow. What I have: * home server, with 12.1R with ZFS * a few jails that I manage with iocage (have a template that I clone to create new) * I build world and kernel from source from now and then, following handbook steps...
  13. epopen

    IPv4 /IPv6 preferred of local resolver and modify

    Hi All. I built some jail in my system, and connect each other / from base system. So I added pair of IP address - hostname into /etc/hosts as below ... fd00::ffff:10.0.0.3 ssh.example.com 10.0.0.3 ftp.example.com ... Tried by ftp ftp.example.com and got result as below. Trying...
  14. M

    Solved Vnet jail cannot connect to services running on host

    Hello I am currently learning how to use FreeBSD to host some basic services in Jails I am trying to configure networking with jails. I noticed that if I try to connect from a jail to a web server installed on the host, the connection is blocked even if the firewall is disabled. It is a setup...
  15. Trigex

    Setting up "The Lounge" web IRC client in a Jail

    After quite a bit of playing around this setup for The Lounge (My first production-deployed jail!), I think I've got something fairly solid built up! Here's a little guide to reproduce what I've done: Install sysutils/ezjail on your target host machine, if you haven't already and go through the...
  16. icecoke

    strange behavior of setfib since FreeBSD 12.0

    Hi everyone! We are using jails in FreeBSD since years (9.x and up) without problems. Since then we have two network cards in the (xen virtualized) machines, where one is private (10.0.0.0/8) and one is public (here changed to 1.2.3.0/20). To have the routing done, we use setfib for the public...
  17. D

    host network in jail with minimal setup

    Hello, I have setup jail (FreeBSD 12.0-RELEASE, host is 12.1-RELEASE), I want to allow the jail to have access to host's outside network (em0 and wlan0, can be lo0 too). I have very basic knowledge of networking (I will really appreciate detailed answer with commands and explanation :) ), I...
  18. D

    Resource limits for jails

    I want a jail that can't allocate more than 512MB memory and ist not able to consume more than 25% of the cpu. The FreeBSD builtin jails have no options for resource limiting. Check jail.conf(5) and jail(8). I have found that you can limit resources for specific users according to 13.13...
  19. D

    jails and loopback

    Im new to freebsd and jails, please be patient. according to the freebsd documentation, one should create a cloned loopback for a jail instance. I can't get behind the purpose of creating multiple loopback interfaces. can someone explain me this? Should I create a new lo interface for each...
  20. K

    Solved Putting instances of dhcpd into jails

    I am looking to more centrally manage the IP assignments on my home network by using ISC's dhcpd to hand out fixed addresses. That way, I can still reliably run local DNS for the internal network and manage IP assignment by linking a MAC to a specific IP. However, I want to do this for both...
Top