Skip to content

Instantly share code, notes, and snippets.

View ssteidl's full-sized avatar

Shane ssteidl

  • GN Software Labs
View GitHub Profile
@ssteidl
ssteidl / jail_networking.md
Last active December 16, 2019 15:13
Jail networking with epair, bridge and vlan

Introduction

Notes on creating internal networks (same hosts) for jails using bridge, epair and vlans.

ifconfig bridge create name testnetbridge

ifconfig epair create

ifconfig epair0a name testneta

ifconfig epair0b name testnetb

@ssteidl
ssteidl / rctl_and_jails.md
Last active November 11, 2019 17:17
FreeBsd rctl jails

RCTL

RCTL is the resource control support in FreeBSD. This gist focuses on resource control integration with jails.

Enable RCTL

Resource control must be enabled in /boot/loader.conf echo "kern.racct.enable=1" >> /boot/loader.conf

RCTL and Jails

I'm really only interested in jail support because appcd only runs jails (at least right now). To integrate with a jail you can make simple rules either before or after jails are created. For example purposes we will use a jail named uwsgi either a name or numeric jail id can be used. Also most of these first examples can be found in the man pages.

Keybase proof

I hereby claim:

  • I am ssteidl on github.
  • I am ssteidley (https://keybase.io/ssteidley) on keybase.
  • I have a public key whose fingerprint is F9F9 392D 5CE3 1CD1 E55B 8189 2B59 652E 5709 3A2D

To claim this, I am signing this object: