-
psionic
whats with this invalid signature crap and slow mirrot for the pkgs? :/
-
psionic
I tried to add .eu. to the repo url didnt really helped
-
al1r4d
hello, I have just successfully installed wireguard on freebsd =))))
-
tercaL
In my FreeBSD server, I have one external interface with public Internet IP address, and a "lo1" virtual interface I created in rc.conf, for my Jails to have virtual IPs through that interface, and NAT for them so that they could be online through my external interface with public IP address. I'm trying to understand and configure PF for such setup now, and I'd like to ask in my case, should I have "set state-policy if-bound"?
-
phryk
on my homeserver, pf's nat doesn't work for jails after boot – i assume because the jails (or rather their ip addrs) don't exist when pf is started. doing 'service pf reload' fixes this, but how do I get this to Just Work™ after booting?
-
phryk
also, can i update to the 14 beta via freebsd-update? not really finding any info about that, but intuitively I'd assume 'freebsd-update -r 14.0-BETA2' should™ work.
-
paulf
I think update works for betas but not alphas
-
phryk
paulf: okay, i'll try. any idea where you know this from?
-
paulf
well i tried recently for alpha and it failed, not certain for beta
-
phryk
ah. well, i guess i'll see if it works. first updating to 13.2-p3 tho. probably not needed but feels cleaner. :P
-
phryk
also, i only recently learned about freebsd-update's -d option, which actually makes it work nice when updating multiple freebsd instances through one host. a bit confused that -d doesn't always default to $basedir/var/db/freebsd-update but i assume there's some reason for that.
-
phryk
re pf i found
forums.freebsd.org/threads/pf-requires-reload-after-boot.58444 referring to man pf.conf saying names of interfaces with changing addresses should be enclosed in parens, but that's a syntax error for me… :F
-
VimDiesel
Title: pf requires reload after boot | The FreeBSD Forums
-
stl
phryk: could you paste your rule? this works for me: rdr on $ext_if inet proto tcp from any to ($ext_if) port 443 -> $webserver port 443
-
phryk
stl: mhh, i do my rdr's on tables/subnets (<10.101.2.0/24> f.e.) rather than interfaces. i only have "pass on $jail_if" using the affected interface.
-
meena
paulf, phryk: ALPHAs are cut from the main branch, and the stable/14, until releng/14.0 is branched. BETAs are cut from a releng branch. freebsd-update only comes from releng branches
-
phryk
meena: so upgrading to beta works, good. :)
-
phryk
but i'm still stuck trying to decipher (again) how to do a major upgrade for postgres… pg_upgrade seems like it *should* be the way to go but depends on a setup that no package manager i know (except portage, i guess) will allow… :F
-
phryk
can't really believe that there still isn't a better way than dumpall and feeding the whole dump into the new install…
-
meena
phryk: the easiest way is to have jails for different postgresql versions
-
phryk
meena: oh right. mine already runs on a jail. but then i could go the replication route.
-
phryk
that would mean i have to figure out how to set up replication, so i guess that's a project for another day.^^
-
RhodiumToad
phryk: there's instructions in UPDATING somewhere for how to do it without jails
-
RhodiumToad
but the real fix is to allow concurrent version installs
-
RhodiumToad
meena: having jails isn't really a big help for pg_upgrade, which needs to be able to run the two version's postgres binaries alternately
-
phryk
RhodiumToad: far as i know that's not a thing pkg can even do
-
phryk
RhodiumToad: yeah, jails don't help with pg_upgrade (tho they can, i guess). the point was spinning up a second instance and getting replication going.
-
RhodiumToad
it means doing major changes to the ports, but it's quite doable
-
RhodiumToad
the best example of doing it close to right is how debian/ubuntu's postgres packages work
-
phryk
no idea how things look there.^^
-
phryk
but honestly, i'd like package flavors for a lot more things… like different compile-time options.
-
phryk
tho after my understanding, currently only ports have flavors, packages don't.
-
RhodiumToad
the basic idea is to install every pg server version into its own dirs, split out libpq, and provide a few wrappers
-
RhodiumToad
flavors aren't really the issue here
-
phryk
yeah, not here. it's just a general small gripe i got. :P
-
Gud
-wi2
-
Gud
oops
-
_xor1
Is /etc/rc.firewall supposed to exist in base?
-
_xor
Oh, nevermind. Just checked my other systems and it's not there either (unless all of my systems are missing a file that's supposed to be there to begin with)
-
_xor
oh heh, I think I know what I did.
-
» _xor was too presumptuous when he added WITHOUT_IPFW=yes in /etc/src.conf
-
_xor
meena: Just realized that since I'm using pkgbase, that probably gets built as a package, doesn't it?
-
_xor
meena: Can I tell it build just a specific package or do I have to build the whole thing?
-
meena
_xor: yes, and there's not much libs
-
meena
so you can build it, and just not install it
-
_xor
Oh, just realized that ipfw includes a kernel module, doesn't it? So it'll have to build that too and upgrade the kernel package.
-
meena
that's what I usually do
-
_xor
ah ok
-
_xor
PkgBase is paying dividends, thanks for the work on it :)
-
meena
i wish i had more hardware resources to run an open repo again
-
_xor
What's the current situation and what do you need?
-
meena
but i feel like just having done that has kicked stuff off
-
meena
_xor: a #freebsd user has promised me a Vultr serveras soon as he's got a new job again
-
_xor
Wait, so do you need physical hardware or cloud resources?
-
meena
whatever is cheapest. I'm happy with anything.
-
_xor
Hmm, I may be able to help you with it. I use vultr too and I have some excess credits right now. I'm also going to re-up the credit balance on my vultr account next week. If you let me know, I might be able to help you out.
-
_xor
Either we can create a new account & I can add an initial credit balance to that for you (which is ideal because then you can do whatever you want, but would like to do it without exposing my credit card), or I can directly create a VM in my account and give you access (less preferred, as I'll have to account for it and keep an eye on it to make
-
_xor
sure it doesn't chew up the balance on my own account).
-
meena
_xor: codeberg is having trouble right now, but this was my last setup:
codeberg.org/pkgbase/website/src/branch/main/howto/howdo.md
-
_xor
I just realized vultr has a referral program. Hang on, I'll /msg you a link.
-
» CrtxReavr is on a Vultr instance.
-
_xor
"Referred customer must link a valid credit card or Paypal method to be eligible for the $100 credit. Unused portion of $100 credit expires after 14 days."
-
_xor
That last sentence is laaaaaame.
-
_xor
CrtxReavr: Do you know if I can refer meena, have her create an account, and I can give $TBD in credit to the account?
-
» _xor needs to rebuild his FreeBSD image for vultr too
-
_xor
meena: You're working on cloud-init?
-
meena
Yupp
-
_xor
k, will keep that mind.
-
meena
well, taking a detour to work on virtio right now
-
meena
but working on virtio is so we can test it FreeBSD on LXD.
-
CrtxReavr
_xor, NFI really. . . had the instance for years and don't bother with the website unless there's a problem, which has thankfully, been rare.
-
_xor
FreeBSD on LXD? I take that as FreeBSD userland running in an LxD container?
-
_xor
CrtxReavr: Yeah I'm Googling + browsing their site right now to figure out if/how I can do this.
-
CrtxReavr
FreeBSD instance. . . I'm unsure what their underlaying technology is.
-
_xor
You mean their virtualization stack?
-
CrtxReavr
Yeah.
-
_xor
Don't remember off the top of my head, but I remember building a FreeBSD image with cloud-init + customizations using poudriere, uploading it to vultr, and spinning up a VM with it.
-
CrtxReavr
I started with their image. . . upgraded it many times.
-
CrtxReavr
Honestly, with the exception of this in the rc.conf, it's very much a stock config: route_linklocal="-net 169.254.0.0/16 -interface vtnet0"
-
_xor
Doesn't need much, though I thought they required cloud-init, so figured there would be cloud_init_* knobs there too.
-
CrtxReavr
Dunno. . .
-
CrtxReavr
But like I said, I've had this instance a long time. . .
-
CrtxReavr
Been through a lot of OS upgrades.
-
_xor
Hmm, weird: "Your server was originally deployed using one of our installers. If you reinstall the operating system via a custom ISO, the root password in your control panel will no longer be valid."
-
meena
_xor: last time I checked, Vultr didn't have cloud-init in their images yet. I should message them, the latest fixes makes it work really well on Vultr
-
_xor
I know 100% that I remember building and uploading a couple of custom images.
-
_xor
Now I'm wondering if that didn't work (though I remember seeing it work and I'm 99% sure I mentioned it in here too), and I resorted to using the stock images they had.
-
phryk
i have a problem. i have a half-done update to 14 on my desktop and it died during the big pkg upgrade. couldn't even read what's going on as it just immediately rebooted.
-
phryk
now i've been through an fsck and i don't know if that finished or not because there was a lot of text running down very quickly and then it rebooted again within less than a second – after taking over half an hour to get that far…
-
RhodiumToad
what sort of text?
-
phryk
no idea couldn't read it. but english, not /dev/random ^^
-
phryk
now it's going through fsck again, tho this time it doesn't seem to find a lot of errors (fixed dozens in the previous run)
-
phryk
how do i get this to slow the hell down so i can actually read whatever the error is?
-
meena
Ctrl-S?
-
meena
hm, that won't stop a reboot
-
RhodiumToad
depends
-
phryk
what does that even do?
-
RhodiumToad
this is on the physical console? scroll lock might help
-
phryk
so i have to hit either ctrl
-
phryk
+s or scroll lock in the fraction of a second before it reboots?^^
-
phryk
and yes, i do have direct keyboard access (tho only via usb, not ps/2)
-
RhodiumToad
you may be able to get it to stop on panic rather than reboot
-
phryk
you mean with ctrl+s or some other way?
-
phryk
aaand it rebooted again
-
phryk
okay, if i ctrl+c the fsck, i can get a single-user root shell. i have a looming suspicion i want to check.
-
RhodiumToad
it rebooted rather than doing some sort of controlled panic?
-
phryk
RhodiumToad: no idea. if it didn't reboot so fast i couldn't read anything i might know.^^
-
phryk
but i suspect that it tried loading radeonkms, saw two cards it supports and then spontaneously exploded.
-
phryk
will know whether that was the problem after this fsck is through… or reboots. ^^
-
RhodiumToad
boot to single user
-
RhodiumToad
and make sure you're not trying to load any drm stuff in loader.conf
-
RhodiumToad
incidentally, I can't think of any actually safe way to upgrade in-place without disabling graphics drivers first
-
phryk
RhodiumToad: i loaded it from rc.conf because of exactly that. then i wouldn't even have gotten to the fsck… if drm is indeed the problem.
-
phryk
i assumed x would just shit its pants and die and then dump me into a tty. this *is* actually what happened on first boot of the 14.0 kernel.
-
phryk
my assumption here being that it died right after installing the updated drm-kmod and presumably loading it in the pkgs post-install.
-
RhodiumToad
that's ... not how it works
-
phryk
then drm might not be the issue after all^^
-
RhodiumToad
boot to single user, run fsck, mount local filesystems, remove the drm packages, and try again
-
phryk
i removed radeonkms from rc.conf during the previous boot, that should™ do the same.
-
phryk
i said, while the machine was rebooting :F
-
phryk
running fsck -y from single user shell now
-
tercaL
When I go to the console of my jail; jexec myjail, the location is always "/", how to make it "/root" by the default?
-
meena
tercaL: jexec -l
-
tercaL
meena: Thanks a lot
-
phryk
fffffffffffffffffffff
-
phryk
the disk is dead
-
phryk
after reaching +60% on phase 2 it spouts out "THE FOLLOWING DISK SECTORS COULD NOT BE READ" and "CAM status: Auto-Sense Retrieval Failed"
-
phryk
:'<
-
phryk
this goes on forever with different addresses or whatever…
-
meena
phryk: oh no
-
phryk
ah yes, and if i just do "ls" in the shell, the whole box reboots…
-
phryk
meena: oh no indeed, this is my work machine.
-
RhodiumToad
this was working well before the upgrade?
-
RhodiumToad
I would say the odds are that this is not a hardware problem
-
phryk
RhodiumToad: never noticed a problem – but i was lacking a smartd config, so i wasn't exactly up to date with how fresh or not this drive is…
-
phryk
anyhow, gonna boot into the shit os and play some fallout. been doing it shit all day and i'm kinda spent :F
-
RhodiumToad
it's not inconceivable that the load of doing the update broke the drive, but it's not especially probable in my experience
-
phryk
RhodiumToad: yeah, but an obvious culprit. and here i was wanting to frontload some of the effort for the new machine i'm putting together next month…
-
Freaky
-
VimDiesel
Title: Thomas Hurst: "@josephholsten⊙ms Hey, look what I have…" - Hachyderm.io
-
phryk
i got two other disks in that machine, so I'll see about where to put a fresh bsd… tomorrow. :F
-
polyex
bsdinstall man page says "On FreeBSD release media, such a script placed at /etc/installerconfig will be run at boot time and the system will be rebooted automatically after the installation has completed." that mean if i don't remove install media it'll repeat the install automatically after rebooting?
-
RhodiumToad
that depends on the boot order configured in your bios or whatever, and whether you change it during the reboot
-
polyex
but if the scripted bsdinstall install media is left in and it gets booted to, the install will be repeated right?
-
polyex
like it won't detect that it's already been done or something
-
RhodiumToad
I guess that depends on the script
-
RhodiumToad
I would test it in a VM environment
-
polyex
can a bsdinstall script decide if bsdinstall runs or not?
-
polyex
i guess it's pretty important to remove the install media from the boot process, however it's done, because a reinstall loop could happen
-
polyex
badland.io/packmule.md seen that RhodiumToad?
-
VimDiesel
Title: Introducing Packmule
-
RhodiumToad
haven't seen it myself
-
RhodiumToad
I'm not big on image-building tools, I just go with make
-
polyex
why not?
-
RhodiumToad
I don't have any requirement to build separate installer images, I'm generally building the actual system
-
polyex
well you gotta install it after building it no?
-
RhodiumToad
no, I'm installing it directly onto what will be the final system
-
RhodiumToad
whether that's a bootable sdcard for my RPIs, or onto a split mirror on a PC
-
RhodiumToad
or on an image file or device for a VM
-
polyex
oh do you do the thing where you netboot the system, then setup disks, then untar distro onto disks, then run post setup commands?
-
RhodiumToad
no
-
polyex
can explain how you're doing it like i'm 5?
-
RhodiumToad
for the PC case, I have mirrored boot disks, and when I'm going to reinstall I split the mirrors, boot one of them, wipe and recreate the other one, then boot off that
-
RhodiumToad
then keep them split until I'm satisfied the new system is working, then rebuild the mirror from the new one
-
RhodiumToad
this kind of thing would be easier with zfs, but this is something i've been doing in one form or another before zfs was in freebsd
-
RhodiumToad
only time I actually install from separate install media is for a brand-new machine
-
polyex
and how do you do it on brand new machines? scripted bsdinstall repacked into an iso or?
-
RhodiumToad
nah, just a manual install
-
polyex
why not scripted?
-
meena
Freaky: nice!
-
yuripv
ugh, commits search for illumos looks weird there
-
yuripv
freshbsd.org/illumos/gate?committer[]=Yuri+Pankov says i've slacking for 10+ years and uses that weird sysroot branch :D
-
VimDiesel
Title: Illumos / gate - FreshBSD
-
polyex
i'm trying out scripted bsdinstall. where do i set the options that are in the security hardening menu during interactive setup?
-
polyex
i assume in the script's preamble but don't know what options to set
-
RhodiumToad
those options end up in /etc/sysctl.conf
-
RhodiumToad
(mostly)
-
polyex
wait so scripted bsdinstall doesn't actually let me set the options that are in the menus during interactive install?
-
RhodiumToad
you can see /usr/libexec/bsdinstall/hardening for where they all go
-
polyex
?
-
polyex
like what about the system components menu screen, we don't get to configure those in the scripted install?
-
V_PauAmma_V
To elaborate on RhodiumToad's answer: look in that file past the copyright header. You'll see a multiline command starting with: FEATURES=$( dialog --backtitle "FreeBSD Installer". That tells you which menu option maps to which hardening option ID. Then, some lines below that, you'll see a "for feature in $FEATURES; do" loop with a case statement. That tells you which hardening option's ID maps to
-
V_PauAmma_V
which (sysctl.conf or rc.conf) line. For example (in 13.2), "Randomize the PID of newly created processes" is random_pid, which in turn maps to "kern.randompid=1" in sysctl.conf; and "Clean the /tmp filesystem on system startup" maps to clear_tmp which in turns maps to clear_tmp_enable="YES" in rc.conf.
-
V_PauAmma_V
Correction: "which (sysctl.conf, rc.conf, ttys, or loader.conf)"
-
RhodiumToad
the system components bit is controlled by DISTRIBUTIONS= in the scripted install
-
al1r4d
Newbie Bind9 here. I want to block a some domain, example gnu.org (just example) with bind9. I always get an error and I don't know where the error is located. Named.conf =
pastebin.com/4mGsg1nw, log =
pastebin.com/J5YJui9F, blocked.zone =
pastebin.com/g2mkpJE5. Thank you
-
V_PauAmma_V
Not a bind9 expert (and this may not be the right place to look for one), but "Sep 20 22:32:08 manchester named[7222]: dns_rdata_fromtext: /usr/local/etc/namedb/blocked.zone:7: near eol: unexpected end of input" in log suggests that maybe it wants the ")" at the end of line 7, not alone on line 8.
-
RhodiumToad
the SOA record seems to be missing a field
-
RhodiumToad
@ SOA localhost. nobody.localhost. 42 1d 12h 1w 3h ; example SOA record
-
_xor
Oh good lord
-
» _xor is reading ipfw(8)
-
_xor
Quite a few options compared to pf it seems, heh.
-
daemon
ipfw can do literally everything
-
_xor
I'm noticing that :|
-
daemon
its just got horrific documentation
-
_xor
I'm actually really interested in reading more on its jail + netgraph options.
-
daemon
wait till you get to the nat options with the in-kernel and external (old) nat options :D
-
daemon
natd
-
_xor
My ears perked up when I saw that you can divert to netgraph with a cookie.
-
_xor
Yeah also reading through the Handbook section on IPFW, which mentions that.
-
_xor
I'm reading through the handbook and also skimming man pages it references.
-
daemon
yeah then you google it and it becomes an absolute mess of options -_-
-
daemon
it really really really needs a new 'howto'
-
_xor
Heh, I noticed that too.
-
_xor
Somewhat surprised at the documentation.
-
_xor
ipfw was around before pf was integrated, right? I remember using ipfw until around mid-2000s.
-
daemon
the documentation for ipfw is impressive in the fact in that it is absolutely technically correct; 100% coverage; but there is 20 years of it
-
daemon
there is no realistic cookbooks or anything else
-
_xor
Most tutorials/docs seem to be written for pf, and I was about to say it got first-mover advantage, but then I realized that's not true.
-
_xor
Is it really just the sheer volume of functionality that ipfw offers that makes it so dense when compared to pf?
-
daemon
ipfw can even operate on layer2
-
daemon
so yeah sheer volume
-
daemon
documenting it I imagine is a constant nightmare
-
psionic
npf has the worst syntax of a firewall i ever seen
-
daemon
like bhyve its why we need cookbook.freebsd.org
-
daemon
perl has the same issues
-
_xor
Agreed, a cookbook of common recipes would definitely make things easier.
-
_xor
...and yeah, I saw the layer2/mac thing too, pretty neat.
-
_xor
I started something like that a while ago, but it fell off.
-
daemon
kind of need a community push to make it happen
-
daemon
but all of us are so busy with our lifes, quite the responsibility to head
-
daemon
I do not imagine anyone would block such an action
-
_xor
Oh wow, didn't realize it was Feb of last year that I created the repo for that...
-
_xor
-
VimDiesel
Title: xor's FreeBSD Knowledge Base
-
daemon
tell me about it a few years ago I created an entire youtube channel:
youtube.com/channel/UCFhw1oJktUnwY6slMSSxpgQ
-
daemon
:P
-
VimDiesel
Title: viBSD - YouTube
-
_xor
I have a ton of notes I can put in there. The outline is based on notes I already have. But I have to schedule time for it, and it's a bit scarce.
-
daemon
as I said :)
-
_xor
You're in the UK? Oh god, that's a warm can of beer, isn't it? :P
-
daemon
at the moment im trying to juggle 2 40 hour jobs, a house move (including my 5 year old daughter, mrs and my parents house) as well as dealing with some legal issues over <issues>
-
daemon
I bought AC :P
-
psionic
title: how to learn 5 vi commands overall in 30 years :>
-
_xor
Bought AC?
-
_xor
lol <3 vi
-
daemon
side joke about thermal warming and the uk at the moment, ac being air conditioning -_-
-
_xor
It's annoying that some Linux distros set ee/joe/whatever as the default $EDITOR.
-
_xor
oh right
-
yuripv
i had that moment today, visudo on debian starting nano instead of EDITOR being vim, and i was literally lost
-
_xor
There seem to be a fair number of UK'ers in here (and in general working on/with FreeBSD). Is there a reason for that? Like is there some big FreeBSD-using company in UK?
-
_xor
yuripv: Yes, it's annoying. Muscle memory kicks in and I automatically start using vi commands to quickly make edits...only to realize after a few seconds that it's not vi.
-
daemon
not that I am aware of, not sure where netflix is based but pretty sure its not the UK, though ... there is a lot of retro-pro people in the uk, be it amiga, spectrum, acorn... etc. FreeBSD traces its routes from the original unix so it would make sociological sense that it was more popular
-
_xor
Can't we pass legislation or something on stuff like changing $EDITOR? We can start a lobbying group for it.
-
daemon
I mean the sane thing to do would be it defaults to 'seteditor.sh' like ms was forced to do with browsers
-
_xor
daemon: Ah interesting. I remember how many people talked about Amiga when I was learning gfx coding in the 90s and was watching the demo scene.
-
daemon
Mentally even now (as someone born in the uk) when faced with a problem I will think ... hmm how did it used to be done? as a default reaction
-
_xor
Heh, I was talking to my friend from the UK the other day and said to her, "The cozzies around here seem to know absolute bollocks. Right then, forget those chavs, time for some bubble and squeak and a nice cup o' tea."
-
_xor
She didn't find it very amusing.
-
daemon
its a mixture of random colloquialisms from various parts of the uk :) it does not make sense in a single sentence
-
_xor
I know, I was just giving her a hard time. When I first saw Lock, Stock & Two Smoking Barrels, I was calling people Northern Monkey or Southern Fairy for a while.
-
daemon
still happens to this day but a bit more tame, the division of south and north
-
_xor
Which are you? Which is RhodiumToad?
-
daemon
not sure about RhodiumToad but I am originally from derbyshire (midland, england)
-
daemon
so I technically southern
-
» RhodiumToad lives in the midlands (and grew up here) but was born more to the south
-
daemon
RhodiumToad, in the next 3 months I might be moving to fallin, stirling ... in the north :o
-
_xor
Going on a mission to spread cheer and the good word of the FreeBSD gospel?
-
daemon
I want to unite my family ... I currently live in a place called Rugby close to london, my mrs is Scottish her birth town is Fallin. My parents are selling their house and wish to retire, I am hoping to merge the entire lot to get us all in the same rough area together for the sake of my 5 year old daughter habing family close by
-
RhodiumToad
stirling is a bit north of north :-)
-
_xor
I just noticed it's Scotland.
-
» RhodiumToad has visited scotland a couple of times but hasn't lived further north than Newcastle
-
_xor
Say hello to Craig Ferguson and Gordon Ramsay for me.
-
daemon
RhodiumToad, if you ever get chance visit the isle of skyé
-
daemon
if I ever met gordon ramsey the only question I would ask; is why he got that weird face lift thing
-
daemon
it looks weird -_-
-
_xor
Gah, this is so weird. If anything, that's my biggest complaint with FreeBSD: bluetooth and audio.
-
» _xor is going to reboot to try and fix this
-
daemon
in that case night _xor because im scuttling to bed ;)
-
daemon
nn all
-
RhodiumToad
audio has usually worked fine for me, but never tried bluetooth
-
_xor
good night
-
_xor
RhodiumToad: Audio works fine on its own, but somehow it's now screwing up this system when I tried to pair bluetooth, even after I disabled all bluetooth-related stuff after my failed attempt.
-
_xor
USB headphones are showing up fine, but whenever I try to play something it slows to a crawl, like it's trying to find/open/whatever the audio device (doesn't fail quickly and loudly, "succeeds" silently).
-
_xor
No audio plays either.
-
_xor
brb reboot