-
violette
nprice (and .rtj i think ? my backlog doesnt go that far) for some reason my laptop was missing `[` but had `test`. I only have to compile world once for my project, so i'll use another, cleaner machine
-
violette
ty both very much :D
-
Macer
hm
-
Macer
it it like impossible to run a samba domain controller in a jail?
-
warsoul
after upgrading 14.2 to 14.3 i will have to install nvidia drivers again, etc.?
-
rtprio
new version, new kernel, new drivers yet
-
warsoul
last time i upgrade i dont remember if i had to install drivers again
-
rtprio
you would
-
Macer
well then. i guess now i see why samba has them separate. samba419 worked just fine creating the dc in the jail
-
Macer
but 420 has some error when provisioning
-
Macer
*why pkg/ports has them separate
-
cpet
normally I go with the default set in bsd.default.versions
-
cpet
you can change it using some pkg maigc but samba is one of those "do I really need it"
-
cpet
now jails are cool but the more you have to enable in the jail the less secure it is and with thing like samba its a lot
-
cpet
on a side note I dont worry much about thing running locally i worry more about internet accesible things and msot of the time you dont have samaba accessible remotely only locally so I personally would not run it in a jail like I would say hiawatha or mysql
-
cpet
but then again people will argue ove that
-
Macer
cpet: yeah.. i'm just working on getting a dc going in a jail
-
Macer
i figured samba420 was rather tested by now but i guess not because it's impossible to provision. that was me testing in a jail but i'm suspecting it may fail on the host as well
-
Macer
i just didn't try
-
cpet
ports arent normally tested in every scenario
-
cpet
its more of a it compiles cool move on
-
Macer
well i know now to not use the latest samba. they have a long lifespan anyways but i've ran into deprecated samba in fbsd
-
Macer
where i had to bump the version
-
Macer
now i just need to sort out how to admin it without rsat :/
-
Macer
so i have to go down the samba-tool rabbit hole.. i need to see if there's an ncurses app i can use in the console for that
-
cpet
samba is pretty easy ive never used it as a DC as I normally just used Windows server for all that ;/
-
Macer
yeah it usually is. but this wasn't really samba's fault so much as some weird freebsd pkg bug related to python maybe
-
Macer
on a fresh network provisioning a domain controller takes 2 minutes :)
-
Macer
i want to use it for centralized auth
-
Macer
so i need to make users, groups, etc on the domain. i also need to use the internal dns so i don't have to maintain bind.
-
cpet
i maintain nsd
-
skinsurf
yo
-
wsky
o/ <3 :*
-
Macer
cpet: i'd rather stick with the samba internal dns if i can. that has always worked well for me in the past and i'm doing simple things.
-
Macer
i'll have to take a look and see if i can find maybe something that is better than using samba-tool
-
Macer
otherwise i'm going to wind up making a thousand scripts
-
cpet
that is cute
-
Zedirc
so i've been wanting to contribute to freebsd and saw that the package go-fuse needs porting so i installed freebsd in qemu and cloned the repo
-
Zedirc
and tried running the tests which shows the following errors such as
-
Zedirc
- fio needed from linux tools
-
Zedirc
- missing Allocate method
-
Zedirc
- syscall.Fallocate undefined
-
Zedirc
- unix.FALLOC_FL_KEEP_SIZE undefined
-
Zedirc
- Unimplemented opcode BMAP
-
Zedirc
- Unimplemented opcode BMAP
-
Zedirc
and more so i wanted to know how do others solve thes
-
Zedirc
do i remove/replace methods and reduce the functionalities or fork it or just create a new lib using libfuse?
-
Zedirc
so i've been wanting to contribute to freebsd and saw that the package go-fuse needs porting so i installed freebsd in qemu and cloned the repo
-
Zedirc
and tried running the tests which shows the following errors such as
-
Zedirc
- fio needed from linux tools
-
Zedirc
- missing Allocate method
-
Zedirc
- syscall.Fallocate undefined
-
Zedirc
- unix.FALLOC_FL_KEEP_SIZE undefined
-
Zedirc
- Unimplemented opcode BMAP
-
Zedirc
and more so i wanted to know how do others solve these
-
Zedirc
do i remove/replace methods and reduce the functionalities or fork it or just create a new lib using libfuse?
-
LXGHTNXNG
speaking of go: for me the kbfs-fuse module is broken in a very particular way (it's because of go-fuse's misbehaviour upon receiving a certain message)
-
f451
fio is ported
-
f451
/usr/ports/benchmarks/fio
-
Macer
well. i finally feel like i'm making progress with this
-
Macer
managed to get a dc jail and a 'shell box' jail going
-
polarian
mzar: lots of people seem to be noticing lol
-
polarian
pressure is building :/
-
polarian
im terrified, I have only planned it, not gathered some statistics I will need, and no slides are done yet
-
Macer
wow. i managed to get rclone to mount INSIDE the jail.. and have no idea how i did it lol
-
warsoul
can i upgrade from 14.3 to 15.0
-
warsoul
?
-
polarian
warsoul: yes
-
warsoul
polarian i change 14.2 to 14.3 but was a mission i lost my desktop and to get it back i struggle a little bit
-
kerneldove_
if i get "[zone: pf states] PF states limit reached" then i increase the limit options, for those to take effect do i only need to service pf reload pls?
-
warsoul
is their anyway to upgrade without loosing nvidia drivers?
-
lockna_
Hello! I'm trying to install Obsidian on FreeBSD using this article
owlandrews.com/texts/obsidian-on-freebsd-with-google-drive. I already tried this one
jrgsystems.com/posts/2023-01-03-installing-obsidian-on-freebsd but I couldn't get it to work. When I use `poudriere bulk -j 14amd64 -p HEAD -b latest -S textproc/obsidian` I get the following error message: `[00:00:02] Error: Nonexistent origin listed:
-
lockna_
textproc/obsidian
-
lockna_
[00:00:02] Error: Fatal errors encountered gathering initial ports metadata` and I have no clue what the problem could be. I looked at the /usr/ports in the jail and textproc/obsidian is there, so I don't understand why it can't be found
-
polarian
warsoul: you should be able to freebsd-update to 15.0 without issues
-
polarian
then you can choose to pkgbasify if you want to use pkgbase
-
warsoul
polarian could you guide me?
-
polarian
wdym "losing nvidia drivers"?
-
polarian
the drivers are ports, not base
-
polarian
sorry no
-
polarian
the drm stuff is
-
kerneldove_
how can i know if net.pf.request_maxcount needs to be increased pls?
-
polarian
not sure about the cards themself, but I assume so
-
polarian
kerneldove_: I dont think you ever need to increase this unless you are handling insane amounts of traffic
-
polarian
sorry no I confused it with the max entries
-
polarian
kerneldove_: are you importing rules to block vast number of IPs?
-
polarian
warsoul: freebsd-update -r 15.0-RELEASE upgrade
-
polarian
reboot
-
polarian
freebsd-update install
-
polarian
reboot
-
kerneldove_
polarian, no i have 30 or so rules. i just keep hitting states limit
-
polarian
actualyl before the second reboot you should run pkg upgrade
-
polarian
which will pull in the drm stuff so shouldnt break desktop
-
kerneldove_
so i'm increasing states, src-nodes, frags, and table0entries
-
kerneldove_
hoping that fixes it
-
polarian
kerneldove_: how are you hitting states limit with 30 rules?!?!
-
polarian
how many connections are you getting
-
kerneldove_
how can i see how many connections atm? i pass tons of udp packets to/from lots of diff hosts
-
polarian
kerneldove_: pfctl -s info
-
kerneldove_
current entries field or others?
-
polarian
kerneldove_: wait what do you want to see
-
polarian
oh right current entries is the number of entries in the state table
-
polarian
on my router for example, which has servers and clients behind it I currently have 210 entries into the state table
-
polarian
204 searches per second, 4 inserts and removals a second
-
sotov1ch
Yo
-
kerneldove_
what does the "memory" field of pfctl -s info mean?
-
kerneldove_
i have 175 million
-
Afterglow
Can vnet jails and bhyve vm's share the same bridge?
-
mzar
polarian: not any lol, but it's a good news !
-
polarian
mzar: good how? :p
-
polarian
kerneldove_: not sure, but that doesn't sound good
-
polarian
Afterglow: is the bhyve jail within the vnet jail?
-
polarian
if it is, then no
-
polarian
if it isn't then yes
-
polarian
add the tap interface to the bridge
-
polarian
I believe it should work
-
polarian
the vm will still need its own IP address though afaik
-
Afterglow
vnets and vms are 'next' to eachother, not in
-
Afterglow
how does the virtual switch fit in here? Or should I skip this?
-
polarian
then yes I see no reason you cant, but I dont see why you would do this
-
polarian
the whole idea of a vnet jail is to route it for additional security
-
polarian
if you simply bridge them with one another, then the vnet jails can talk to one another
-
Afterglow
my vnets _must_ talk to eachother
-
» Afterglow is confused now
-
Afterglow
so you're saying that I should create a bridge for each and every jail?
-
polarian
I wouldn't bridge it I would route it
-
polarian
but if you dont want vnets talking to one another (as vnet jails arent meant to crosstalk) then yes you would need a bridge per vnet
-
polarian
if you want the jails to talk to one another then why did you vnet them in the first place?
-
polarian
> A FreeBSD VNET jail is a virtualized environment that allows for the isolation and control of network resources for processes running within it. It provides a high level of network segmentation and security by creating a separate network stack for processes within the jail, ensuring that network traffic within the jail is isolated from the host system and other jails.
-
polarian
-
Afterglow
I don't see how a bridge (layer 2?) brings any change in that: it's just a layer between the jail (epaira/b) and the physical interface of the host. All IP's are on the same LAN anyway
-
polarian
Afterglow: switching happens on layer 2
-
polarian
what happens when you have devices all on the same switch?
-
polarian
the switch can switch packets between them
-
polarian
which is why vlans exist
-
polarian
the switch then knows not to pass packets to other devices which are not on the same vlan
-
polarian
Afterglow: if you want to bridge you should have one bridge per vnet jail
-
polarian
but this gets messy at scale
-
polarian
so I would always route them
-
Afterglow
I have different bridge devices for different vlans. Still not sure how a bridge would make a vnet jail more insecure
-
polarian
it allows vnet jails to pass packets between each one
-
polarian
vnet jails are meant to be isolated
-
polarian
if they all share one bridge, they all are able to pass packets
-
polarian
if you use one bridge per vnet jail then sure
-
polarian
you still have isolation
-
polarian
but I find this all really messy and I would rather handle it within pf
-
polarian
only pass the packets from these jails to the internet, not to the host, and not to other jails
-
polarian
and if you did need communcation, for say an email server needed a postgresql db within another jail, you could explicitly pass from one vnet jail to another on a specific port
-
polarian
neater, and more secure.
-
Afterglow
still not sure why share one bridge (= layer 2!) would make that more insecure than having one bridge per vnet, which is more of an administrative hassle. The only thing that happens is that inter-VNET traffic doesn't leave the machine
-
polarian
Afterglow: I just explained
-
polarian
imagine you have many devices all connected to the same switch
-
polarian
theres no isolation between devices
-
polarian
a switch is able to pass packets between them without passing back to the router
-
polarian
switching is layer 2
-
polarian
therefore theres no concept of IP addresses
-
polarian
its done purely on mac address
-
Afterglow
So? Each vnet has its own ip stack/ipfw. That isn't any different than having multiple physical machines on the same network (on a switch)
-
polarian
Afterglow: does that mean you should leave your gateway firewall open because devices behind it have their own firewall? security in layers.
-
polarian
you want them separated
-
polarian
and separate IP stacks mean nothing, its like having separate devices
-
polarian
Afterglow: if you want to see this, bridge as you said, ping one container from the other while tcpdumping that container
-
Afterglow
What exactly is your point here? the only thing my vnets share is the physical NIC on the host. There completely 'stand alone' hosts.
-
polarian
you should see an arp packet
-
polarian
if you see that arp packet, that means the two vnets can talk to one another
-
polarian
sure you have a firewall but the whole idea of vnet jails is to be separated
-
Afterglow
AGAIN: they should be able to talk to each other. That would be the same if they're physical machines. Please stop this nonsense discussion
-
polarian
they cant if you set it up properly
-
polarian
its like saying two devices on completely different switches could talk to each other without a router
-
Afterglow
they should because I set it up this way!
-
polarian
then go ahead...
-
polarian
you asked why its less secure, I told you
-
polarian
I dont see what you want here
-
Afterglow
You can link switches to eachother on the same lan.
-
polarian
You are missing the point
-
polarian
you asked me why its less secure, I told you
-
polarian
you then complain that this is nonsense
-
Afterglow
My original question was: can bhyve vm's and vnet jails share the same bridge device.
-
polarian
do not ask for answers, and then criticise them because you don't like the answer
-
Afterglow
ANd then you started a preach about how vnet s should not share the same bridge device.
-
polarian
Afterglow: yes there is no reason you can't add a tap to a bridge with what I assume is epairs within it
-
polarian
I already answered that question
-
polarian
a bridge is nothing more than a virtual dumb switch
-
Afterglow
duh, there we are. I was already telling you that from the beginning. VNETs on a bridge = physical machines on a switch. Exactly tthe same
-
Afterglow
I don't need any routing between my vnets, except for the ones on a different vlan
-
polarian
Afterglow: and I have been telling you that vnets are meant to be isolated thus not on the same bridge
-
polarian
if you want to do it that way, be my guest
-
polarian
now I am going out to buy some beer.
-
polarian
cya
-
Afterglow
enjoy
-
kerneldove_
polarian, i increased limits then reset counters ill watch memory field now
-
ant-x
Hello, all. After upgrading from 14.1 to 14.3, the geeque packages has stopped working. I have upgraded all I could, yet it fails because of broken dependencies: <
paste.c-net.org/BossySeduce> . Can anyone on 14.3p5 test whether they are having the same error (so that I know if is my own problem).
-
ek
ant-x: Looks like you might just need to re-install the dependencies as well. Just an old lib mix-up.
-
ek
Are you using packages?
-
ant-x
ek, I installed everying with pkg. Reinstall everything? Ought not `pkg upgrade' have done it?
-
ant-x
* /to/ have done it (that is, fixed the dependencies).
-
ant-x
ek, `pkg check' and `pkg check -d -a' do not report any problems.
-
ek
ant-x: It kind of depends on the update process. It's pretty rare, but old .so version dependencies can lay around after a base upgrade.
-
ek
ant-x: What if you do a 'pkg upgrade -f libavformat libffmpegtnailer geeqie' ?
-
ek
Obviously, after a 'pkg update' just to make sure repo data is up-to-date.
-
» ant-x was looking for a way to uninstall a package with dependencies.
-
ant-x
Waity-minty.
-
ek
ant-x: Also, which repo(s) are used?
-
ek
ant-x: 'pkg delete pkg-name' will delete any dependencies that are no longer needed.
-
ant-x
ek, repos -- the standard out-of-the-box ones: //pkg.FreeBSD.org/${ABI}/quarterly
-
ek
Also, a 'pkg autoremove' will help with that as well.
-
ek
Okay.
-
ant-x
I will try pkg upgrade without removing anything, first.
-
ant-x
ek, `pkg upgrade' sais neither of the lib packages are installed, probably because they are part of other packages.
-
ant-x
i.e. there is no package named libavformat or libffmpegtnailer .
-
ant-x
I need somehow to find out which packages install those libs, first.
-
ant-x
pkg which to the resque.
-
ek
ant-x: What about just a 'pkg upgrade -f geeqie' ?
-
ek
That *SHOULD* pull in all dependencies.
-
ant-x
ek, I have found it: `pkg upgrade ffmpegthumbnailer ffmpeg' -- says all is up to date. Will try -f
-
ant-x
ek, `pkg upgrade -f geeqie' did not help, but `pkg upgrade -f ffmpegthumbnailer ffmpeg' has! Thanks.
-
ek
ant-x: Excellent!
-
ant-x
Indeed.
-
ant-x
Can you tell me about the effect of `pkg upgrade'? A couple of weeks ago it broke my 14.1 system, so I /had/ to upgrade to 14.3 to fix it. I thought it would either refuse to upgrade, or it successfully, but not break it.
-
ant-x
I was following the upgrade procedure described in the Handbook, which did not mention the -f option. Something must have gone wrong.
-
ek
ant-x: It's difficult to say exactly what went wrong. But, it looks like a dependency was either upgraded or not upgraded while the primary application was not.
-
ek
If you're using packages, it's usually a good idea to do a "pkg upgrade -f" to force all packages to upgrade after a FBSD version upgrade (although, generally not needed with minor version upgrades).
-
ek
It also may have just been a glitch in the repos where a package dependency was upgraded before the primary package (in this case, geeqie) and you just happened upon it with unfortunate luck.
-
ant-x
After reading the man page, I don't understand why `pkg upgrade -f geeqie' did not update the dependencies.
-
ek
ant-x: I'm guessing because the dependencies were already up-to-date with their version, but something happened during the previous 'pkg upgrade' where a library was lost or skipped somehow. Maybe something errored out and was resumed and it caused a problem?
-
ek
It's hard to say.
-
» ant-x is doing pkg -f upgrade, but feels uneasy about it...
-
ant-x
707 packages will be upgraded
-
ek
It'll be fine. It'll just re-install all your currently up-to-date packages. But, it will, with all likelihood, repair any other missing or out-of-date libs that may remain.
-
ant-x
I hope so!
-
ek
You can always run a "pkg prime-origins" and save that output in case something goes wrong.
-
ant-x
prime-origins? Not listed in PKG(8) .
-
ek
It's an alias to "pkg query -e '%a = 0' '%o'". You can check your aliases in /usr/local/etc/pkg.conf
-
angry_vincent
or with `pkg alias`
-
ant-x
Thanks. Will have to learn the syntax of ``pkg query'' first.
-
ant-x
I see: `%a = 0' for root packages (not installed as dependencies), and %o for origin.
-
ek
angry_vincent: Yeah. I probably should've worded that better. More along the lines of: Aliases are configured in the /usr/local/etc/pkg.conf file.
-
ant-x
...and listed by `pkg alias'
-
ek
ant-x: Yep. It'll give you a list of root packages that are installed. So, if you need to re-install your root packages for some reason (like a fresh start), you can use that list to get back to where you were.
-
ant-x
Shall I have to process the output with SED or AWK, before feeding it to pkg via xargs?
-
ek
Nope. You don't even need that.
-
ant-x
Can be fed directly to pkg?
-
ek
'pkg prime-origins > ~/root-pkgs.txt' and then to use it 'pkg install $(cat ~/root-pkgs.txt)' (or however you'd like to parse the pkg data to "pkg")
-
ant-x
parse -> pass (I hope)
-
ek
Yes. Sorry. I'm doing like 4 things at once. :)
-
ant-x
Remember: you have but two hemispheres.
-
ant-x
Thanks for the help!
-
ek
I think I have less than that. You're very welcome.
-
_0xdd
Hi all! Had a quick question. Finally got around to upgrading to 15.0. I have two encrypted ZFS datasets, one that uses keyfiles and the other that requires a prompt. Since upgrade, entire boot sequence is held up by passphrase prompt for that ZFS dataset. I do have zfskeys_enable=YES in my rc.conf, but I only want the keys loaded for the dataset that uses a keyfile. Any help would be appreciated!
-
Remilia
ant-x: having two is nice, I only have one functioning hahaha
-
ant-x
Remilia, one is functioning, the other is for appreciation of all things beautoful.
-
ant-x
...In the meantime, `pkg -f upgrade' has completed.
-
ant-x
And I do not see any regessions.
-
ant-x
Unfortunately, it has not fixed a Subversion bug whereby it hangs forever: <
marc.info/?l=subversion-users&m=176635088823880&w=2> .
-
» ant-x keeps his .dot files in a Subversion repository, so a broken svn is a nuisance!
-
ant-x
.dot files? That's a tautology.
-
ek
ant-x: Does "git svn clone" work?
-
ek
I haven't used subversion in a long, long while. But, I have cloned using "git svn" a few times in the somewhat recent past.