jail

  1. D

    PF Correct way to open ports for jail to jail communication in pf

    I am currently learning a bit about FreeBSD with the goal of moving my server from Debian to FreeBSD. Currently I am working on running some applications (e.g. Nextcloud) in jails. Services that are needed by multiple applications I want to outsource to own Jails, an example would be Redis. I...
  2. HL1234

    Some questions about make package-recursive

    I have search for an answer but didn't find it. first, a short description: I would like to build ports in a jail. From an example and the handbook suggestion, I have mounted the ports tree (ro) into the jail and have set "WRKDIRPREFIX=/tmp" etc. ... for places that must be writable. Result...
  3. U

    Solved Running jails from /etc/jail.conf.d?

    Hi all, On a clean install of 13.1-RELEASE, I have noticed that there is now a "/etc/jail.conf.d" folder. As this would make automated jail management easier for me, I would like to make use of it. I made a simple test configuration in /etc/jail.conf.d/test.conf, and tried starting the jail...
  4. HL1234

    portupgrade: ruby-gems fails to install in a jail with a linked port system.

    Hello, I have the same problem, like its described in two Bugs: "Bug 249083" "Bug 251667". Description: In my jail I want to install ports-mgmt/portupgrade. This port need the port devel/ruby-gems. devel/ruby-gems could be build without any error, but the install fails: ===> Installing for...
  5. U

    Solved Difficulty upgrading Jails

    Hi All, I upgraded my server from 13.0-RELEASE-p4 to 13.0-RELEASE-p13, and when I tried to run python3.9 in a jail I got the following error: ld-elf.so.1: /lib/libc.so.7: version FBSD_1.7 required by /usr/local/lib/libpython3.9.so.1.0 not found So I search on the forum and find this...
  6. A

    Solved netgraph vnet jail not getting ip address via DHCP

    Any netgraph gurus out there? I created two vnet jails with the help of the devin teske's jng scipts and example jail.conf under /usr/share/examples/jails/. I can enter either jail using jexec However, I cannot ping any targets from inside the jails. The jails do not appear to have ip...
  7. C

    Solved Accessing OpenVPN Client network from jail

    Hello. I have question. I have FreeBSD Host with one JAIL. On Host i setup OpenVPN client and i get routing to 192.168.0.1/24 over 10.4.44.109. From host i can ping 192.168.0.1 and that works fine. But from JAIL, i cant ping 192.168.0.1 and even 10.4.44.110 (my end of openVPN tunnel) Can i ask...
  8. spmzt

    ocserv in jail: cannot open /dev/tun

    Hi, I installed net/ocserv 1.1.3 on Freebsd 13.1 in jail. and I can create tun interface inside the jail. The problem is the net/ocserv try to access the /dev/tun inside my jail and it obviously fails. Here is my configuration: /etc/devfs.conf: [devfsrules_jail_overlay=5] add include...
  9. J

    Jails vs Docker performance

    I recently came across research (Bachelors thesis) that benchmarked jails against Docker. The conclusion was that, except for startup time, Docker outperformed jails in almost every category (memory - writes/sec, IO, CPU - events/sec). In some categories (read from disk), Docker outperforms by...
  10. A

    jails Jails on RPi4B as DHCP/DNS/file/web server/router

    I'm downsizing my server (an old 2006 hp ProLiant 19" rack monster with 41 disks) for a Raspberry Pi 4B 8GB as the electricity here in southern Sweden has become absurdly expensive. (The whole thing draws about €70 worth per year, now it is looking more like €4000...) While I'm redoing...
  11. epopen

    MTU of jail vimage by netgraph

    Hi All I have a question about MTU of jail vimage by netgraph. Please reference illustration of running system as follows. Running routing mode with gateway_enable="YES" @ /etc/rc.conf. Connect Jail of ssh from netif msk0(internet) via ssh. Log in is OK, but disconnect unexpected when high...
  12. rafael_grether

    Solved TOP Command & Jail

    Hi guys, Is there a way to TOP command shows username inside jail? USER_A in my host has UID 2001. USER_B in my Jail also has UID 2001. A process executed by USER_B shows to me that is executed by USER_A, when top is executed on my host. Since "top -j" brings up the JID, I think it should also...
  13. D

    Solved Jailed ping(8) can not resolve names using hosts unbound(8), but host(1) and drill(1) can

    EFFECT drill resolves r0.z201 correctly to 192.168.201.1. host resolves r0.z201 correctly to 192.168.201.1. ping works when given argument 192.168.201.1. ping doesn't work when given argument r0.z201. (fails to resolve) OBSERVATIONS When using truss I can see that ping does...
  14. K

    Single sqlserver jail+ZFS for other jails, but how?

    Greetings. I have few jails running nginx on my FreeBSD 13.1 host. I'd like to create another jail for their SQL database needs. I'd like to create ZFS dataset for this purpose (for MySQL jail) but should I create it on host? If the dataset is created within the host, could the Jail access it...
  15. L

    Migrated JAILs from TrueNAS 11.3 to JAILS over FreeBSD 13 with VNET and now IPFW inside JAIL not work: kldload ipfw - not permitted

    In jail under TrueNAS 11, was mail server that can block IPs by IPFW rules. Now I move JAIL to FreeBSD 13.1, and detect that same JAIL with same settings, not allow to load IPFW inside jail. kldload ipfw kldload: can't load ipfw: Operation not permitted For JAILs managemnt use iocage...
  16. I

    jails Mounting an image file inside a jail

    I am trying to mount a Raspberry Pi FreeBSD image file in my "dev" jail for I can modify it. I had to make a few tweaks to my jail configuration to allow access to /dev/md* devices. I am able to intialize the image with mdconfig. The image gets assigned to /dev/md0, but when I try to run mount...
  17. A

    devfs_ruleset is broken

    Setting it to anything other than the default value disables all restrictions. Any idea why? Am I doing it wrong perhaps? { // devfs_ruleset=(rule number); mount.devfs; // }
  18. A

    jails can't access internet from within jails

    /etc/jails.conf: firefox { path = "/root/jails/firefox"; ip4.addr = "10.0.0.201"; host.hostname = "firefox"; interface = "wlan0"; mount.devfs; allow.raw_sockets; exec.clean; exec.start = "/bin/sh /etc/rc"; exec.stop = "/bin/sh /etc/rc.shutdown"; } /root/jails/firefox/etc/resolv.conf...
  19. HL1234

    IPFW jail with IPFW connection on private IP not working with /etc/rc.firewall workstation

    Because in between things have changed and I got no answer from the Forum, I like to try a new post. What do I have? -FreeBSD 13.0 -A jail with a running webserver -I'm using the firewall IPFW with NAT settings to connect to the jail from outside the host and from inside to outside. Now this...
  20. D

    VLAN bridge networking issue

    Hi there ! I am new to this board and relatively new to freebsd, so please be kind if i have done something wrong. I am learning :) I have 2 physical FreeBSD Hosts in my Network. Both of them are running several jails. Also i have multiple VLANs in my Network. The Jails are connected to...
Back
Top