-
burie
dch: for the old way, how would one specify ports to be built and put into the image
-
dch
burie look in how it’s done in cloudinit modules —
cgit.freebsd.org/src/tree/release/tools/oci.conf is all that’s needed
-
entrop
dch: did you ever get back to looking at
github.com/berthubert/simplomon
-
antranigv
dch educate me. what's that oci.conf?
-
uskerine
Hi I am trying to understand a bit better how networking works in FreeBSD. In particular, is it possible to define a virtual interface? Like I would like to have a 10.x.x.x network associated to a virtual interface which is NOT linked/routed to the actual physicial interfaces/networks. I am trying to understand each piece of the configuration/networking
-
uskerine
so that interface would be only accessible in the host
-
mzar
uskerine: probably you want to create another loopback interface in this case
-
uskerine
so I can create a lo1 and assign a network to that
-
uskerine
how do you create a new lo interface ?
-
uskerine
A loopback interface is a virtual interface that is always up and reachable as long as at least one of the IP interfaces on the switch is operational <- but it seems linked somehow to the IP interfaces
-
ridcully
uskerine: `ifconfig lo create` (or pick some number yourself)
-
dch
entrop: no, I found no quick fix for a non-C++ user, so I had to give up
-
dch
antranigv: thats the config file for oracle cloud vms. just happens to be one I know well (as the author of it).
-
dch
there's an EC2 and other things in there too
-
uskerine
is lo always on even if the machine would have no other interfaces?
-
burie
dch: How would I specify to use any of the existing or new config in the /src/tree/release/tools directory? It looks like with release.sh I would run release.sh -c /src/tree/release/tools/desired.conf but how would I specify that I want memstick or cdrom target?
-
erk
Is there any well supported way of maintaining a port or package outside of the ports tree?
-
lw
erk: i just have a local branch of ports with my own ports in, works fine with poudriere
-
lw
(i host it in Forgejo, which is in ports)
-
lw
the other advantage of that is i can rebuild my packages (e.g. to add a new package) without poudriere re-fetching the ports tree
-
dch
uskerine: yes, loopbacks are always there
-
dch
erk: yes, just maintain your own ports tree, and rebase occasionally off upstream when you want to.
-
dch
you can use overlays (see poudriere docs for this) but IMO its not worth it
-
angry_vincent
yes. local branch is way better
-
mikewilzn
Currently in the process of migrating my server over to FreeBSD. Very excited! So far all the docs and stuff have been very clear and defaults are sane and stuff
-
mikewilzn
Definitely excited to have jails and ZFS
-
rtprio
great!
-
antranigv
mikewilzn congrats!
-
mikewilzn
Thanks! I'm using primarily docker now and definitely ready for a change
-
tercaL
mikewilzn: Migrating from which OS?
-
mikewilzn
Right now I'm running docker in an Alpine LXC on Proxmox
-
mikewilzn
Good timing because I realized I'm still on version 7 and that's going EOL tomorrow
-
uskerine
thinking out loud, once you have two separate lo1 interfaces at two hosts, would it be possible to configure a TAN tunnel between both so they are linked?
-
uskerine
TAP*
-
polarian
I have been looking into wireguard on freebsd and everything uses the userspace wireguard-go, does freebsd not have inkernel support for wireguard?
-
mikewilzn
Yo polarian fancy seeing you here
-
polarian
mikewilzn: mike from XMPP?
-
mikewilzn
Yessir
-
polarian
I have been here for ages...
-
mikewilzn
I just joined haha
-
LapsangS
hi
-
polarian
hi?
-
LapsangS
yes me too I am a new freebsd user
-
LapsangS
or whatever
-
polarian
uskerine: LAGG(4) would be better no? I haven't messed with it but it seems like what you are asking for
-
polarian
oh wait I completely missed the "two hosts" part, sorry...
-
mikewilzn
LapsangS, based
-
polarian
loopback should always be local to the device, you wouldn't want to bridge them
-
polarian
if you want both hosts to talk to each other, you would want a point to point link, or simply connect to each other over the local network.
-
polarian
LapsangS: welcome I guess
-
LapsangS
i am just using this system and at slow pace trying to figure out the subtleties of bhyve and zfs
-
uskerine
I think lagg servers a different purpose
-
uskerine
it is for aggregating links
-
LapsangS
for now on, i have the basics working, like X.org and stuff
-
uskerine
TAP is a virtual interface to transport L2
-
uskerine
I think TUN and TAP are used underneath the (some) VPNs, but not widely used
-
uskerine
as standalone tools/mechanisms whatever they are
-
polarian
uskerine: I am confused on what you are trying to achieve
-
polarian
I thought you wanted link aggregation
-
uskerine
I want to understand how TUN/TAP work
-
uskerine
and that is not related at all to link aggregation
-
uskerine
ultimately I would like to have two subnets, each one at lo1 interfaces, in two different hosts, linked together with a TAP and/or TUN interface
-
uskerine
understanding the in and out of that
-
scoobybejesus
seems like connecting the hosts requires the nic's to talk, and then you can have routes to the respective loopback devices, NAT'ing out of each of them i guess. i don't think it makes sense to think of "directly" connecting loopback devices from distinct hosts
-
uskerine
I am reading about the TAP interface, still difficult to grasp
-
polarian
scoobybejesus: loopback is in its name, its designed for the device to talk to itself, so I am a little confused on the purpose of attempting to join two loopback devices on separate hosts...
-
jmnbtslsQE
uskerine: i'm not sure if you will have any luck doing it with tun or tap, i think you need a client program to connect to those interfaces. for your situation, it sounds like you want a gre interface
-
uskerine
a client program to connect both interfaces is easier to do, just nc
-
jmnbtslsQE
that's not what i mean by connect. i suggest to read more about those interfaces
-
polarian
haha there is inkernel support for wireguard, just no documentation other than WG(4)
-
rtprio
wait, what are you trying to do ? connect two jails together without the host?
-
rtprio
polarian: it does have in kernel support for wireguard
-
polarian
I know i found it... :)
-
polarian
I asked about an hour ago when I couldn't find anything on it other than people using wireguard-go
-
rtprio
the wg-quick package helps, but you probably found that too.
-
polarian
and then after reading some history, and also going into the src tree I found the kernel module name and loaded it
-
yuripv
i also have wg(8), but may be that's on current only?
-
rtprio
no, it's in 14
-
kevans
wg(8) is everywhere the kmod is
-
kevans
wireguard-tools still incredibly useful for wg-quick and the rc.conf support to make it work somewhat like other platforms
-
kevans
there's an rc script floating around in review for base, but I wanted most of it to be split out into a separate script that works kind of like wg-quick and the submitter wasn't really amenable to that / I found them hard to work with
-
yuripv
ok, i wasn't following wireguard story at all :)
-
polarian
kevans: wg-quick has always been something I considered laziness
-
polarian
it doesn't feel like it properly integrates
-
polarian
I like how easy wireguard is on openbsd though...
-
polarian
although it could be using wg-quick under the hood anyways
-
rtprio
it's the same easy everywhere, isn't it
-
rtprio
set up the conf file `wg-quick up wg0`
-
polarian
it can be done with ifconfig too it appears
-
polarian
just its gonna be a long command
-
polarian
rtprio: on OpenBSD I did the following: !/usr/local/bin/wg setconf wg0 /etc/wireguard/wg0.conf
-
rtprio
not if you want routes. and dns. and the other shit
-
polarian
but this works well for OpenBSD as the hostname.if files can run shell commands
-
rtprio
that is true
-
polarian
I doubt it would work well on FreeBSD
-
polarian
rc.conf can be... limiting
-
rtprio
yes, i do like hostname.if; i wouldn't mind if freebsd added that
-
» polarian would highly support freebsd adding it
-
polarian
its so much more simple too
-
polarian
if you got long configs, you got to cram it all on a single line
-
kevans
polarian: I dont have any specific opinions on wg-quick, but I much prefer the model where an rc script is simply a driver for something else that can be used independently to manage
-
kevans
i don't really want to review a couple hundred line rc script
-
kevans
it's much easier to reason about what the service is providing if the meaty bits aren't conflated right in there
-
rtprio
few hundred lines? what sort of config are you running?
-
kevans
i don't see how config has any bearing on the rc script's size
-
rtprio
but it does
-
kevans
ok
-
amarks
I've got a Mac Pro from 2007 that has 32-bit EFI with 64-bit amd64 architecture, the EFI loader appears to work, but system hangs trying to load the kernel from 14.1 install img. Any suggestions?
-
rtprio
boot with verbose and look for clues?
-
» CrtxReavr just had a flashback to trying to get FreeBSD installed on a G4 PPC Mac.
-
CrtxReavr
Couldn't be done without a special boot floppy from Apple that that could create GTP partitions.
-
CrtxReavr
But of course, that floppy image was impossible to find on Apple's website, and none of their support people had any fekking clue what you were talking about.
-
amarks
This thing doesn't have a floppy drive. Thanks though.
-
CrtxReavr
amarks, 14.x also supports the creation of GPT partiions. . . the FreeBSD versions of the day, did not.
-
duncan
wasn't there gparted live CD in 2006? there certainly was in 2008