-
lw
polarian: all my music is stored locally and i use Navidrome to stream it to devices (it's also exported via NFS, but i like having centralised playlists and stuff)
-
L3Fr0g
Good morning. Which host-to-host VPN solution do you recommend ?
-
rtprio
L3Fr0g: that's a pretty broad question
-
rtprio
but wireguard seems be a popular solution and is in base
-
sfox
why not ipsec?
-
L3Fr0g
gre with ipsec i guess
-
yourfate
heh, I tried to set up wireguard as a vpn server yesterday, but somehow it doesn't work so far
-
yourfate
-
VimDiesel
Title: Create a WireGuard® server on FreeBSD in no time | webdev & tech
-
dautor8518050867
yourfate: What is not working? I've been using it just fine for quite some time.
-
dautor8518050867
Are all cloned interfaces not exposed via netgraph? If so, why?
-
dautor8518050867
(this question is unrelated to the response above)
-
yourfate
I was confused for a second :D
-
yourfate
as I have not used netgraph before
-
yourfate
I can connect to the wireguard server (I think), but then I don't have any internet connectivity anymore
-
dautor8518050867
What did you put inside allowedips and interface address?
-
yourfate
server side: allowed IPs 0.0.0.0/0
-
yourfate
interface address I used the 10.96.100.1
-
mzar
L3Fr0g: please take a look at if_ipsec(4)
-
yourfate
which, if I understand it correctly, is then NAT-ed using PF
-
yourfate
on the client I also used 0.0.0.0/0 in the allowed IPs
-
dautor8518050867
You can look at your routing table. This configuration would mean that the server should add your client as a default gateway and on the client should put default gateway the server.
-
dautor8518050867
That is probably not what you wanted.
-
yourfate
ah, so what would I need to change?
-
dautor8518050867
I can share you my configuration if you want. I just have issues with bsd.to (pastebin) at the moment...
-
yourfate
tbh, bsd.to is very falkey
-
yourfate
I personally just use gitlab snippets, which I can manage better
-
yourfate
requires an account though
-
dautor8518050867
I'll send it to you via direct messages.
-
yourfate
sure
-
crest
L3Fr0g: if you want something simple wireguard is hard to beat
-
crest
but ipsec can be faster since it gets to use hardware offloading
-
L3Fr0g
ipsec + gre ?
-
crest
the major downside to ipsec is the complex configuration
-
crest
L3Fr0g: if it's freebsd <-> freebsd i would use if_ipsec (aka ipsec vti)
-
crest
which on the wire is ipsec tunnel mode, but the important difference to traditional ipsec tunnel mode ist that it has a dedicated interface and the policy is scoped to the interface
-
crest
so it plays nice with (dynamic) routing
-
mzar
crest: if_ipsec(4) is not that complex if you skip IKE
-
mzar
and IKE is optional
-
crest
mzar: you need ike for dynamic keying
-
crest
static manual keys are just a toy setup
-
mzar
toy... could be
-
crest
in theory you could write your own key exchange daemon, but you probably already know how badly that can go
-
mzar
-
VimDiesel
Title: VPN with GRE, GIF, IPSec, OpenVPN and Wireguard [BSD Router Project]
-
mzar
L3Fr0g: ^^^
-
crest
an other option would be openvpn with DCO (data channel offloading) if you're on freebsd 14.0 or newer
-
mzar
there are better options for 1:1 FreeBSD with public addresses
-
crest
mzar: have you looked at the performance of ovpn(4)?
-
mzar
sure
-
mzar
I am using in production since a longer while
-
crest
in some benchmarks it even beats ipsec according to the author of the freebsd dco driver
-
mzar
hm..
-
crest
but according to my older benchmarks the fastest vpn available in freebsd that plays nice with dynamic routing is ipsec vti
-
mzar
+1
-
mzar
if the endpoins can reach each other if_ipsec is a way to go
-
mzar
for one to few I'd choose wireguard, for one to many ovpn
-
crest
this is my old stongswan config for ipsec vti
-
crest
-
VimDiesel
Title: FreeBSD IPsec VTI · GitHub
-
crest
the only strange thing about it is the leftsubnet/rightsubnet. i never found a way to make strongswan and the kernel agree perfectly
-
crest
because ipsec vti interfaces want to install their own policy matching all traffic via the interface
-
crest
and strongswan wants to install a 0/0 policy
-
crest
i side-stepped this conflict my letting strongswan install a policy for the ancient chaos protocol instead of ip
-
crest
it's left as an exercise (exorcism?) to the reader to convert it to the new config syntax
-
yourfate
-
VimDiesel
Title: Create a WireGuard® server on FreeBSD in no time | webdev & tech
-
yourfate
weirdly tho, it seems that when I connect to that it messes with the network of the server
-
yourfate
and some services running on the server lose internet connection
-
polyex
i got clear_tmp_enable="YES" on all my systems. but only some of them have /etc/rc.d/cleartmp in the sudo service -e output. why??
-
polarian
sfox and L3Fr0g wireguard tends to be faster... iirc
-
nsoci
list #freebsd
-
unixery
Hi, I'm trying to get the number of ACL entries on a directory. Is there a better way than: getfacl testfolder | sed '/^#/d' | wc -l
-
unixery
Or any other method to add ACL antries at the end with setfacl?
-
hwpplayer1
hi FreeBSD!
-
hwpplayer1
Who is responsible for Local User Groups ?
-
remiliascarlet
My mom.
-
polarian
I am considering slapping OpenBSD in a vm using bhyve however I do not want to use vnc (the server is headless and only accessible via ssh), is there any guides on accessing the vm over a serial device?
-
polarian
therefore I can simply manage it over ssh
-
polarian
I have read through the handbook on bhyve I didn't see anything mentioning i t
-
vortexx
polarian: #bhyve for this type of question, but of course you can connect over serial with bhyve, using a nmdm device. using vm-bhyve helps streamline this (it'll start a console for you) and for OpenBSD you need the magic words at the boot prompt: stty com0 115200 & set tty com0
-
vortexx
vm-bhyve is a package for managing bhyve VMs
-
polarian
vortexx: thanks for the advice :)
-
polarian
bhyve is its own channel cause how big it is :P
-
vortexx
65 nicks, I've been in there for close to a decade
-
polarian
65 nicks! why so many?
-
vortexx
it's just easier to answer all the specific "how do I runs this $OS in bhyve" questions in one place where it's more likely to get attention
-
vortexx
from people who are actually running said $OS and know the tricks to getting it installed and booted
-
vortexx
not that many tricks are needed these days
-
polarian
-
VimDiesel
Title: bhyve/OpenBSD - FreeBSD Wiki
-
polarian
but yeah I will join the channel thanks
-
vortexx
-
VimDiesel
Title: Supported Guest Examples · churchers/vm-bhyve Wiki · GitHub
-
vortexx
although in that link it says to use grub to boot OpenBSD, which isn't necessary. UEFI works fine and has ever since OpenBSD grew UEFI support
-
vortexx
your wiki page has the correct information too
-
L3Fr0g
Guys, i have a freebsd machine with two disks having the same size, i want to set-up soft raid and have no success. I have managed to mirror efi and freebsd-boot, however, after reboot it looks like the system does not know where to boot from
-
L3Fr0g
how can i fix this ?
-
polarian
L3Fr0g: why raiding them, use zfs no?
-
polarian
mirror them in a zfs pool
-
polarian
let zfs do all the heavy lifting, thats the FreeBSD way :P
-
L3Fr0g
@polarian, can you please tell me how to mirror efi and freebsd-boot partition with zfs ? :-)
-
L3Fr0g
i guess that these devices need to be set up as geom mirrors
-
moviuro
docs.freebsd.org/en/books/handbook/jails/#creating-thin-jail-nullfs -> `mv /usr/local/jails/templates/13.2-RELEASE-base/var /usr/local/jails/templates/13.2-RELEASE-skeleton/var' fails with `mv: /{snip}/var/empty: Operation not permitted' - because of the schg flag on /var/empty
-
VimDiesel
Title: Chapter 17. Jails and Containers | FreeBSD Documentation Portal
-
mzar
L3Fr0g: you want to boot from both of the disks, don't mirror boot, ZFS will do it for you, just install bootloader on both drives
-
L3Fr0g
@mzar, what about efi ?
-
polarian
the installer does this all for you :P
-
mzar
you can have efi partiotions on both drives
-
mzar
they don't have to be mirrored, but loader has to be updated when you upgrade ZFS pool
-
mzar
if you are not upgrading, usually you don't have to bother about updatin .efi
-
mzar
L3Fr0g: how do you like FreeBSD ?
-
L3Fr0g
i didn't use it in the last 20 years, i forgot everything
-
mzar
OK, I was using all that time for you, it's still great OS, maybe even better now ;-)
-
L3Fr0g
@mzar, i want to create a freebsd bhyve cluster with storage in sync using hast over zfs and carp fail-over, is this doable ?
-
mzar
ha.. probably overcomplicated
-
L3Fr0g
do you have anything better in mind? i really need a high-available set-up, i want to move to freebsd from SLES
-
mzar
zfs has it's own replication mechanism, carp code is working fine, but I don't know how are you going to manage that cluster ?
-
L3Fr0g
not sure what answer to provide :-)) i don't really know what you mean
-
L3Fr0g
when i try to install the bootloader on the second partition i get: gpart: No such geom: /dev/nda0p2
-
L3Fr0g
nevermind, i got it
-
L3Fr0g
@mzar, any idea on how to take a disk offline to check if the above implementation is working fine? I have no physical access to the system
-
L3Fr0g
stopping the disks with camcontrol or glabel won't do it apparently
-
L3Fr0g
the disks are not managed using any raid controller
-
L3Fr0g
i really need to simulate a disk failure
-
L3Fr0g
got it, editing the bootlader conf and blacklisting the device
-
rtprio
what happens with camcontrol ?
-
L3Fr0g
Operation not permitted
-
mzar
L3Fr0g: I don't have any NVM drives, but in CURRENT there is nvmft(4) - The nvmft driver provides the kernel component of an NVM Express over Fabrics controller. The NVMeoF controller is the server exporting namespaces backed by local files and volumes to remote hosts - interesting
-
L3Fr0g
booting from both drives seems to be working fine, thanks
-
polyex
i got clear_tmp_enable="YES" on all my systems. but only some of them have /etc/rc.d/cleartmp in the sudo service -e output. why??
-
polyex
i got clear_tmp_enable="YES" on all my systems. but only some of them have /etc/rc.d/cleartmp in the sudo service -e output. why??
-
polyex
oops
-
rtprio
but cleartmp isn't really a service
-
ajtim
nicklist.pl