-
jb1277976
Anyone know how to make a block device hard drive in virtualbox ? im trying to do some zfs stuff but can't
-
mason
trench: You can request an account on the wiki and fix the page. #freebsd-wiki is a good place to start.
-
trench
okey..
-
V_PauAmma_V
_xor, belatedly, I would. (And probably count separate processor families separately.) Assembly languages have often as much syntax as C and arguably more semantics, if you don't count the standard library. (And if you do, you should probably count the system calls or equivalents for your OS, eg SVCs and macros for IBM mainframes, in assembly complexity.)
-
_xor
More semantics? I mean, assemblers encode instructs into opcodes with various operands/flags. Language compilers have to actually determine semantics within context after ST is generated from the front-end.
-
_xor
Another way to look at it would be a compiler taking some simple lexical scope and generating instructions that implement the behavior. For example, a lot of instructions effect state (e.g. processor flags) for the subsequent instruction to read.
-
nimaje
each instruction has semantics and you want them properly documented, how would you know what happens if you use them without that
-
ghoti
I have applicaton jails for web, smtp, etc. The jails are on private IPs behind my single public IP. Is it reasonable to set up a different NAT instance for each jail, and set the firewall rule to use that instance as part of the jail startup? Or am I just making work for myself?
-
meka
ghoti: I don't understand what is NAT instance
-
ghoti
meka: you can `man ipfw` and search for "NAT, REDIRECT AND LSNAT". It is identified by the number in `ipfw [-q] nat number config config-options`.
-
meka
Oh, PF user here, no wonder I don't understand
-
ghoti
Ah.
-
montar
ghoti: do you really need to separate them that much?
-
ghoti
montar: meh, "need"... I'm experimenting with making self-contained jails that include a bit of required infrastructure as part of their configuration for a stand-by server.
-
ghoti
So far I'm storing an ipfw "set" to identify particular ports and count relevant traffic, but I'm thinking I should add a NAT instance to the set.
-
ghoti
But since it's a separate table, it jas to be stored separately.
-
rtprio
it sounds like more work and further complication, but hey, if it works for you go nuts
-
jmnbtslsQE
ghoti: you only need one nat instance on the host, and you can use redirect_port, etc as needed
-
jmnbtslsQE
if that host is the one that has the public address
-
jmnbtslsQE
i guess if you needed specific nat instance options to be different for each jail, it may make sense to have separate nat instances (on the host, not in vnet), but probably not needed
-
ghoti
jmnbtslsQE: Yes, but there's a different set of NAT rules for SMTP than for HTTP. My thought is to bundle the service-specific rules together, to be applied within a particular NAT instance.
-
ghoti
That way, if for example my HTTP jail needs to move to a different host, I have the current rules on the new host, and I don't leave garbage on the old one.
-
ghoti
I'll keep thinking about this.
-
jmnbtslsQE
seems like not a bad idea. you can delete your jail-specific nat instance when you move the jail, without having to re-configure the existing nat instances to remove the extraneous rules
-
devnull
Is there a security advisory about 13.1 p3 patch?
-
ghoti
If I want to replace procmail with procmail-bgrb, should I simply delete the first and install the second, or is it better to set a new origin then ugprade?
-
V_PauAmma_V
devnull, no, only errata notices as far as I can tell. See
freebsd.org/security/notices (starting with EN22:21) and
freebsd.org/security/advisories.
-
VimDiesel`
Title: FreeBSD Errata Notices | The FreeBSD Project
-
devnull
Thanks V_PauAmma_V
-
gh00p
Hi. How do I get sendmail to use procmail for local delivery? I have added MAILER(procmail) and FEATURE(local_procmail) to my mc file, I am not sure what I'm missing.
-
CrtxReavr
-
VimDiesel`
Title: Chapter 30. Electronic Mail | FreeBSD Documentation Portal
-
koobs
morn
-
pedahzur
Anybody here use Ansible? Specifically ansible-runner. We're looking to port some operations from Linux to FreeBSD, and right now Ansible-runner is our sticking point, because it uses either podman or bubblewrap (
github.com/containers/bubblewrap) for process isolation. We could write a shim which would accept the bwrap arguments and use jails, but we haven't gotten to the point of dedicating resources to that.
-
koobs
pedahzur: podman port is WIP right now and might be usable/testable, but in the event that its not, whats the question?
-
koobs
-
VimDiesel`
Title: Containers by dfr · Pull Request #1 · dfr/freebsd-ports · GitHub
-
koobs
Author is on #virtualization on FreeBSD Discord btw
-
pedahzur
koobs: Thanks. Pardon my absolute lack of knowledge on this, but isn't Podman designed to work with docker (OCI) images? How will that work on FreeBSD? (Doc links are great...don't feel like you have to spell it all out here.) :)
-
koobs
pedahzur: there's a couple of separate issues implicit in the question (and in that ecosysytem)
-
koobs
pedahzur: So on one hand, samuel karp is working on an OCI spec for FreeBSD contains, with an experimental (but working) 'runj' executation backend. You can see that here:
github.com/samuelkarp/run
-
koobs
Right now, containerd officially supports runj, and runj supports basic networking, running linux jails, etc
-
koobs
Thats the OCI and 'runc' execution backend side of things
-
koobs
pedahzur: podman and whatever other container frontend tools (ala docker) use whatever their underlying container runtimes support
-
koobs
This basically means docker/runc/containerd but there's nothing fundamental precluding other os supports
-
koobs
which just need to integrate into those ecosystems
-
koobs
which leads us back to runj (a runc port, runc, which docker uses) and OCI specs
-
koobs
-
VimDiesel`
Title: Containers - FreeBSD Wiki
-
koobs
pedahzur: so back to your ansible question, whats the question/issue to solve/answer?
-
koobs
-
VimDiesel`
Title: Docker - FreeBSD Wiki
-
latwe
hello
-
latwe
I'm here now right?
-
latwe
there is online?
-
pedahzur
koobs: per the original question, we're looking to port some stuff to FreeBSD, and one of those things use Ansible Runner to enable process separation/sandboxing. Ansible Runner uses podman or bwrap for process isolation. I support is podman is ported, and there is an "ansible container" (that we or somebody else produces) along the lines of
github.com/ansible/ansible-runner/blob/devel/Dockerfile we could port our stuff to
-
VimDiesel`
Title: ansible-runner/Dockerfile at devel · ansible/ansible-runner · GitHub
-
pedahzur
FreeBSD. :)
-
koobs
-
koobs
is that useful?
-
VimDiesel`
Title: community.general.jail connection – Run tasks in jails — Ansible Documentation
-
koobs
-
VimDiesel`
Title: iocage – Run tasks in iocage jails — Ansible Documentation
-
koobs
iocage is a jail frontend (see Containers third party list earlier)
-
koobs
See also:
docs.ansible.com/ansible/2.9_ja/plugins/connection/buildah.html - which is the podman/buildah dfr is working on (but buildah is seprate)
-
VimDiesel`
Title: buildah – Interact with an existing buildah container — Ansible Documentation
-
pedahzur
koobs: That's a little sparse on docs. From my reading, the plugin is for executing inside a jail on the target host. We're looking to run ansible itself in a container/jail/sandbox on the control host.
-
koobs
pedahzur: then you'll want any of our container/jail tools
-
pedahzur
OK, thanks.
-
pedahzur
I do appreciate the pointers.
-
koobs
pedahzur: presumably ansible will be fine configuration managing said host/jail software
-
koobs
ala any normal host
-
koobs
pedahzur: if youre team is docker/containerd sav, then you probably want to use runj/containerd to create them
-
pedahzur
Yes, it seems there are tools for managing jails...but not a straight forward way to run ansible inside one. :)
-
koobs
unless you want a specific feature in one of the other tools it doesnt have yet
-
koobs
it has the longest-term design
-
pedahzur
Well...I don't know how much docker expertise we have; we're relied on Ansible Runner to do all that behind the scenes for running our playbooks. :)
-
koobs
pedahzur: im wondering whats different about ansible in jail/container than on host?
-
koobs
link me to ansible runner ?
-
koobs
might give me a better sense of how/where it hooks in
-
pedahzur
koobs: Process isolation. The code in the playbook can't access anything on the control host.
github.com/ansible/ansible-runner
-
VimDiesel`
Title: GitHub - ansible/ansible-runner: A tool and python library that helps when interfacing with Ansible directly or as part of another system whether that be through a container image interface, as a standalone tool, or as a Python module that can be imported. The goal is to provide a stable and consistent interface abstraction to Ansible.
-
koobs
and whats the thing in runner that then 'requires/uses' podman/bwrap?