med-mastodon.com is one of the many independent Mastodon servers you can use to participate in the fediverse.
Medical community on Mastodon

Administered by:

Server stats:

363
active users

#vnet

0 posts0 participants0 posts today

My main webserver is running FreeBSD and I've been running my services (nginx, postgresql, exim, etc) in individual jails. Each one with a ZFS dataset for it's data.

So far, I've been using traditional jails, but now, I did successfully implement VNET jails, to give each Jail it's own ip address and make them communicate via a private network, that I've been securing with pf firewall. Very smooth experience 🙂

Christmas project for this year: Updating my server and jails to FreeBSD 14.2

So it seems that if you enable ipfw(8) when running #VNET jails on a #FreeBSD server, the following ruleset will appear in all of the jails:

65535 deny ip from any to any

This means I have to set up ipfw(8) in my VNET jails as well, because all communication (except DHCP?) is blocked.

I have tried to find information online about this behavior of ipfw(8) and VNET jails, but have found nothing. Can someone shed some light on this? 😕

I need some advise here. Getting a little dizzy of all the options in jailing systems around networks and access.

I use now appjail until I get the hang of it, not quite ready 😉

I can use a bridge with epairs / vnet / netgraph / a combination of some of them…
Dhcp on these option partially work, but not with all combinations.

Bridges/epairs are working on a different server with bastillebsd….

But now to the basic question (I know, it’s my lack of basic network skills here speaking):
It is easy the autocreate jails on a subnet interface with a new range (say 10.0.0.0) apart from the normal lan (192.168.0.0). I can ping the jail on the host but not from the lan (obvious).

What is the best option to make it works? And how? A practical example or link would help.

#freebsd#lan#jail