06:34:55 any suggestions for ways to turn "fd12:8247:3:1::1" into "1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.1.0.0.0.3.0.0.0.7.4.2.8.2.1.d.f.ip6.arpa" in a shell script? preferably without doing an actual lookup 07:02:20 lw: echo it into rev, and then =mumble= to convert the :: to the appropriate number of zeroes. 07:02:53 mason: i just write a C++ utility to do it, that seems easier :-) 07:03:03 i was hoping one already existed but i can't find it if so 07:03:37 lw: No one would yell if you did it with awk. 07:03:42 lw: awk -F: '{ }' 07:03:52 haha yes 07:04:17 That said, I'm not wizardly enough with awk to know how to do it without a bunch of poking. 07:04:34 i doubt an awk version of this would be very nice 07:04:44 But either way, yeah, a real language seems idea. 07:04:46 ideal* 07:05:22 (C++ version: https://www.le-fay.org/tmp/30d/rdns.cc) 07:06:20 lw: Where's that handling the :: ? 07:06:43 mason: it doesn't need to handle the ::, it uses getaddrinfo() to parse the string into a binary address 07:06:48 kk 07:16:42 echo ${ipv6} | rev | sed -e s/::/00000000/ -e s/://g -e 's/./&./g' -e 's/.*/&.ip6.arpa/' 07:17:18 untested because I don't have a shell handy 07:17:21 kona: i guess the question was not clear, it needs to handle any IPv6 address, not just the particular one in the question 07:17:28 % echo ::1 | rev | sed -e s/::/00000000/ -e s/://g -e 's/./&./g' -e 's/.*/&.ip6.arpa/' 07:17:28 1.0.0.0.0.0.0.0.0..ip6.arpa 07:20:42 you could do it in a sed script but i would probably use awk and implement each address form separately 07:21:40 i was hoping for an existing utility to do this really, i prefer my C++ version over an awk mess (although i like awk and i'm using it elsewhere in this script) 07:22:25 kona, use perl, 3 lines as shown here: https://stackoverflow.com/questions/4800691/perl-ipv6-address-expansion-parsing 07:22:26 Title: Perl IPv6 address expansion/parsing - Stack Overflow 07:27:11 well, that's not exact. would be fairly simple to change it. looks like Net::IP is a good match. 09:08:11 is there no rc.d script to add static arp entries? i see $static_arp_pairs in rc.conf but i need to add one with the 'pub' flag 09:10:23 ok, actually arp 'pub' seems to be broken anyway... 09:11:20 # arp -s 185.73.44.139 02:00:00:00:40:15 pub 09:11:21 arp: delete: cannot locate 185.73.44.139 09:11:35 i didn't ask it to delete an arp entry (that would be -S) and it doesn't add the entry 09:23:28 lw: you can make a script which uses command arp -f , see man arp for the format of a file 09:24:20 further, arp uses lookup functions which lead (depending on configuration, see nsswitch.conf) to /etc/hosts 09:25:18 i checked the source and i don't think this is related to /etc/hosts - it tries to find the ifindex with the given IP address on and gives this error if it's not found. the 'delete:' is a typo in the source 09:25:34 so it can't be used for proxy arp, which seems odd 09:29:20 submitted https://github.com/freebsd/freebsd-src/pull/1214 for the typo but fixing the actual problem seems more difficult, i wonder if the kernel doesn't support this 09:29:21 Title: arp(8): fix a type in error message for -s/-S by llfw · Pull Request #1214 · freebsd/freebsd-src · GitHub 09:45:57 ok, the problem seems to be in sys/netinet/in.c:in_lltable_alloc() which requires a route before adding a new entry 10:16:49 I have an old hdd I want to get rid of. I had an (unencrypted) zpool on it. what is the freebsd way to overwrite it? installd gnu shred? 10:17:33 or just physically destroy the platter and be done? 10:30:18 yourfate: dd if=/dev/zero of=/dev/daX bs=1M ? 10:30:36 should it be overwritten with random data instead of zeros? :D 10:33:26 yourfate: doesn't matter as far as i'm aware, claims of recovering overwritten data from HDDs appear to be mostly theoretical. you can use /dev/urandom if you prefer though 10:34:15 ok, so i partly solved my arp problem by replacing the IPv4 route to the host with an interface route (instead of a host route IPv6 nexthop), now i can add the ARP entry using my patched /usr/sbin/arp, but the system doesn't respond to arp requests 10:37:29 now i also can't delete the arp entry, and the manpage syntax of 'arp -d pub' isn't accepted by the command, i guess that's another bug 10:37:59 hmm dd says i'm not permitted to write do /dev/da0, even tho I used `doas` 10:38:21 yourfate: try deleting the partitions and partition table with gpart first 10:41:41 there is no partition table, its a whole-disk zpool 10:42:00 a zpool has a partition table, it is a GPT partition table with 1 partition covering the entire disk 10:42:01 gpart can't see it 10:42:27 does it show up in gpart if you destroy the pool? 10:44:20 no, but after destorying the zpool the dd command works 10:46:01 the nice thing is, I connected the drive to an rpi, so I don't care if it runs for a day :P 11:52:02 pkubaj, hi! Maybe you know is graphics/blender build on ppc*? 12:49:16 What mailing list is for general questions? 12:49:39 polarian: questions@, unless you're running -stable or -current in which case stable@ or current@ might be more appropriate 12:51:25 lw: and where should I stick the query about the RF kill switch problem/ 12:51:32 which you recommended a week or so ago 12:52:08 i can't remember anything from a week ago but questions@ seems like a reasonable place for random hardware questions 13:11:22 lw: thanks :) 13:40:16 VVD: AFAIR only on LE 13:41:16 pkubaj, maybe add to NOT_FOR_ARCHS= 14:09:56 - L- 1/5359: Polarian Best way to run command on system start 14:10:02 polarian: you could just put it in /etc/rc.local 14:10:13 not really a great solution but... 14:10:49 hmmm 14:10:52 might work 14:11:13 if it works, its a solution :) 14:11:41 it's basically the same as "using a rc service" you just don't have to write an rc service for it because rc.local already exists 14:13:34 rc.local doesn't exist on my system :P 14:13:51 you must create it! 14:13:58 I know, I was kidding :) 14:14:04 it must be a shell script! so #! /bin/sh followed by the commands 14:14:06 you said "already exists" 14:14:35 of course i mean it philosophically exists 14:14:46 philosophical rc scripts are the best type of rc script 14:15:06 (who will defend rc.d-realism?) 16:29:36 hello! 16:29:46 I'm thinking of doing a master's in cyber security (for no reason other than I'm kind of bored), and for my dissertation I'm thinking of doing research on the topic of process injection in BSD-based systems (so ie freebsd, openbsd, netbsd) 16:29:58 I got this idea when writing custom implants for the BSD implants we have for a training course we have at work, googling around, and realizing there's really not much published research on process injection for BSDs 16:30:25 David Buchanan wrote an injector for linux that does not use ptrace and uses the /proc/pid/mem interface instead, do you happen to know if there's a facility similar to this in any of the BSDs? 16:30:40 (can be found here: https://github.com/DavidBuchanan314/dlinject ) 16:30:41 Title: GitHub - DavidBuchanan314/dlinject: Inject a shared library (i.e. arbitrary code) into a live linux process, without ptrace 16:30:51 I know there's ptrace for BSDs, but that's boring and I was wondering whether this technique could theoretically be adapted to work on BSDs as well 16:31:05 I'm kind of a newbie in this specific topic so bear with me. Mostly I'm trying to figure out whether my idea for this dissertation is stupid or not 16:36:54 i'm trying to build a port and a configuration menu came up to choose different compile options. i need to deselect an option, but "make clean" doesn't make the menu come up again 16:39:00 xx_ns: mem(4) maybe? 16:39:36 i'm not sure how you would get the address of a particular process's virtual memory that way though 16:40:12 thanks for the pointer, i'll have a look 17:12:36 meena: are we ok finally to commit cloudinit to /quarterly/ ? I'm just being careful. maintainer ok came through a couple weeks ago. 17:12:58 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=277662 17:13:01 Title: 277662 – net/cloud-init: backport 23.4.1 from main to quarterly 17:14:11 (also, I just have to say, my first exposure to FreeBSD was via pfSense, which runs on the machines on our training course I mentioned, and... I've really enjoyed working with FreeBSD! A lot of things simply make sense) 17:17:00 xx_ns: you should try to talk with antranig , see https://antranigv.am/about/#contact he has done work in this area 17:17:01 Title: About | Antranig Vartanian 17:23:12 dch: thank you! 17:53:57 mdoc(7) <3 17:56:35 agree and amplify! 17:57:00 that was quite a sarcastic <3 17:57:04 more like a why? 17:58:12 see #freebsd-social for example 17:58:19 tyvm 18:44:17 my video driver switches from i915kms to llvmpipe after closing and opening the lid of my laptop. I set "hw.acpi.lid_switch_state=S3" which seems to work otherwise. Adding "hw.acpi.reset_video=1" stops it from waking up again... Does anyone know where I can get more info on this? 19:24:38 Hi. I'm using OPNSense and trying to get some custom-built packages by Poudriere (successfully built on another OPNSense "Builder" Host based on the correct Release & Ports Tree, then served over HTTPS by NGINX). Basically using a Custom Repository in /usr/local/etc/pkg/repos/custom.conf. I (finally) managed to sort out the SSL/TLS Verification which now works correctly. However, even after pinning the current version of the 19:24:38 Package to OPNsense (pkg install -r OPNsense pkg && pkg annotate -A pkg repository OPNsense && pkg annotate --show pkg repository which shows it correctly pinned to OPNsense Repository), it still wants to do an upgrade of the Package from my Custom Repository, when I try to run pkg upgrade. What could be the reason ? 19:30:58 Need to add CONSERVATIVE_UPGRADE = true in /usr/local/etc/pkg.conf ? 19:32:29 It still wants to upgrade ... uhm :S 19:37:05 dch: i thought that was a given?? 19:38:17 dch: aren't you a ports committer?? 19:38:43 wow rude 19:41:10 After S3, dino eats almost 100% of CPU 19:41:15 cant figure out why, any clue? 19:43:47 hmmm maybe hardware acceleration is being broken, all gtk clients seem to be slower 19:45:47 meena: yep but its been stagnating a month, so I wanted to be sure before breaking everything ;-) 20:20:54 there some way to sniff an http request coming in on a certain port? i wanna see the exact request url 20:22:07 ngrep maybe 20:22:21 tcpdump also did it actually 20:22:29 assuming *http* 20:26:28 could also do nc -vkl 1337 20:31:08 grpc 20:32:43 ketas, what's 1337% of Pi? 20:35:47 hah i had to look that 20:35:58 it rounds to 42 :p 20:41:20 That's the ultimate question to Life, the Universe, and Everything. 20:44:49 1337% of pi was wtf to obtain 42 tho 20:45:06 attempting to netboot an ARMv7 board. The FreeBSD loader gets loaded and by u-boot but the loader give the following error: net0: cannot set rx. filters (status=3) and then reports ERROR: cannot open /boot/lua/loader.lua: no such file or directory any ideas? 20:45:57 anyone used fluent bit and opentelemetry output on freebsd? i set tls on and in fluent bit's log it errors tls unexpected EOF? 20:46:26 ketas, that's an amusing piece of numerology. 21:11:35 anyone using opentelemetry collector on freebsd? 21:34:04 Anyone tell me if 13.2 daemon has -r and -R? 21:34:30 er nm.. mans are online 22:13:21 anyone using fluent bit? i can't get the http or opentelemetry outputs to work 22:27:11 found this in a literal junk pile the other week, finally had time to set it up, https://bsd-hardware.info/?probe=92725f96b8 22:27:13 Title: HW probe of Protectli FW2B Desktop Computer #92725f96b8 23:40:07 what collectors are ppl using for observability agents on freebsd? fluent bit is trash 23:40:26 Does freebsd support something like linux's IPVLAN? (I think.) I'd like to use multiple network interfaces with the same mac address. 23:44:43 wait I don't thinkI thought this through, I need this on the proxmox, not the pfsense. Nevermind xP