-
lw
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
-
mason
lw: echo it into rev, and then =mumble= to convert the :: to the appropriate number of zeroes.
-
lw
mason: i just write a C++ utility to do it, that seems easier :-)
-
lw
i was hoping one already existed but i can't find it if so
-
mason
lw: No one would yell if you did it with awk.
-
kona
lw: awk -F: '{ }'
-
kona
haha yes
-
mason
That said, I'm not wizardly enough with awk to know how to do it without a bunch of poking.
-
lw
i doubt an awk version of this would be very nice
-
mason
But either way, yeah, a real language seems idea.
-
mason
ideal*
-
lw
-
mason
lw: Where's that handling the :: ?
-
lw
mason: it doesn't need to handle the ::, it uses getaddrinfo() to parse the string into a binary address
-
mason
kk
-
kona
echo ${ipv6} | rev | sed -e s/::/00000000/ -e s/://g -e 's/./&./g' -e 's/.*/&.ip6.arpa/'
-
kona
untested because I don't have a shell handy
-
lw
kona: i guess the question was not clear, it needs to handle any IPv6 address, not just the particular one in the question
-
lw
% echo ::1 | rev | sed -e s/::/00000000/ -e s/://g -e 's/./&./g' -e 's/.*/&.ip6.arpa/'
-
lw
1.0.0.0.0.0.0.0.0..ip6.arpa
-
kona
you could do it in a sed script but i would probably use awk and implement each address form separately
-
lw
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)
-
laidback_01__
-
VimDiesel
Title: Perl IPv6 address expansion/parsing - Stack Overflow
-
laidback_01__
well, that's not exact. would be fairly simple to change it. looks like Net::IP is a good match.
-
lw
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
-
lw
ok, actually arp 'pub' seems to be broken anyway...
-
lw
# arp -s 185.73.44.139 02:00:00:00:40:15 pub
-
lw
arp: delete: cannot locate 185.73.44.139
-
lw
i didn't ask it to delete an arp entry (that would be -S) and it doesn't add the entry
-
la_mettrie
lw: you can make a script which uses command arp -f <filename>, see man arp for the format of a file
-
la_mettrie
further, arp uses lookup functions which lead (depending on configuration, see nsswitch.conf) to /etc/hosts
-
lw
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
-
lw
so it can't be used for proxy arp, which seems odd
-
lw
submitted
freebsd/freebsd-src #1214 for the typo but fixing the actual problem seems more difficult, i wonder if the kernel doesn't support this
-
VimDiesel
Title: arp(8): fix a type in error message for -s/-S by llfw · Pull Request #1214 · freebsd/freebsd-src · GitHub
-
lw
ok, the problem seems to be in sys/netinet/in.c:in_lltable_alloc() which requires a route before adding a new entry
-
yourfate
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?
-
yourfate
or just physically destroy the platter and be done?
-
lw
yourfate: dd if=/dev/zero of=/dev/daX bs=1M ?
-
yourfate
should it be overwritten with random data instead of zeros? :D
-
lw
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
-
lw
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
-
lw
now i also can't delete the arp entry, and the manpage syntax of 'arp -d <addr> pub' isn't accepted by the command, i guess that's another bug
-
yourfate
hmm dd says i'm not permitted to write do /dev/da0, even tho I used `doas`
-
lw
yourfate: try deleting the partitions and partition table with gpart first
-
yourfate
there is no partition table, its a whole-disk zpool
-
lw
a zpool has a partition table, it is a GPT partition table with 1 partition covering the entire disk
-
yourfate
gpart can't see it
-
lw
does it show up in gpart if you destroy the pool?
-
yourfate
no, but after destorying the zpool the dd command works
-
yourfate
the nice thing is, I connected the drive to an rpi, so I don't care if it runs for a day :P
-
VVD
pkubaj, hi! Maybe you know is graphics/blender build on ppc*?
-
polarian
What mailing list is for general questions?
-
lw
polarian: questions@, unless you're running -stable or -current in which case stable@ or current@ might be more appropriate
-
polarian
lw: and where should I stick the query about the RF kill switch problem/
-
polarian
which you recommended a week or so ago
-
lw
i can't remember anything from a week ago but questions@ seems like a reasonable place for random hardware questions
-
polarian
lw: thanks :)
-
pkubaj
VVD: AFAIR only on LE
-
VVD
pkubaj, maybe add to NOT_FOR_ARCHS=
-
lw
- L- 1/5359: Polarian Best way to run command on system start
-
lw
polarian: you could just put it in /etc/rc.local
-
lw
not really a great solution but...
-
polarian
hmmm
-
polarian
might work
-
polarian
if it works, its a solution :)
-
lw
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
-
polarian
rc.local doesn't exist on my system :P
-
lw
you must create it!
-
polarian
I know, I was kidding :)
-
lw
it must be a shell script! so #! /bin/sh followed by the commands
-
polarian
you said "already exists"
-
lw
of course i mean it philosophically exists
-
lw
philosophical rc scripts are the best type of rc script
-
lw
(who will defend rc.d-realism?)
-
xx_ns
hello!
-
xx_ns
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)
-
xx_ns
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
-
xx_ns
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?
-
xx_ns
-
VimDiesel
Title: GitHub - DavidBuchanan314/dlinject: Inject a shared library (i.e. arbitrary code) into a live linux process, without ptrace
-
xx_ns
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
-
xx_ns
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
-
CCFL_Man
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
-
lw
xx_ns: mem(4) maybe?
-
lw
i'm not sure how you would get the address of a particular process's virtual memory that way though
-
xx_ns
thanks for the pointer, i'll have a look
-
dch
meena: are we ok finally to commit cloudinit to /quarterly/ ? I'm just being careful. maintainer ok came through a couple weeks ago.
-
dch
-
VimDiesel
Title: 277662 – net/cloud-init: backport 23.4.1 from main to quarterly
-
xx_ns
(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)
-
dch
xx_ns: you should try to talk with antranig , see
antranigv.am/about/#contact he has done work in this area
-
VimDiesel
Title: About | Antranig Vartanian
-
xx_ns
dch: thank you!
-
lw
mdoc(7) <3
-
concussious
agree and amplify!
-
lw
that was quite a sarcastic <3
-
lw
more like a </3 really
-
concussious
why?
-
lw
see #freebsd-social for example
-
concussious
tyvm
-
entikan
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?
-
luckylinux
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 <pkg>
-
luckylinux
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 ?
-
luckylinux
Need to add CONSERVATIVE_UPGRADE = true in /usr/local/etc/pkg.conf ?
-
luckylinux
It still wants to upgrade ... uhm :S
-
meena
dch: i thought that was a given??
-
meena
dch: aren't you a ports committer??
-
lw
wow rude
-
polarian
After S3, dino eats almost 100% of CPU
-
polarian
cant figure out why, any clue?
-
polarian
hmmm maybe hardware acceleration is being broken, all gtk clients seem to be slower
-
dch
meena: yep but its been stagnating a month, so I wanted to be sure before breaking everything ;-)
-
polyex
there some way to sniff an http request coming in on a certain port? i wanna see the exact request url
-
ketas
ngrep maybe
-
ketas
tcpdump also did it actually
-
ketas
assuming *http*
-
ketas
could also do nc -vkl 1337
-
polyex
grpc
-
CrtxReavr
ketas, what's 1337% of Pi?
-
ketas
hah i had to look that
-
ketas
it rounds to 42 :p
-
CrtxReavr
That's the ultimate question to Life, the Universe, and Everything.
-
ketas
1337% of pi was wtf to obtain 42 tho
-
crb
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?
-
polyex
anyone used fluent bit and opentelemetry output on freebsd? i set tls on and in fluent bit's log it errors tls unexpected EOF?
-
CrtxReavr
ketas, that's an amusing piece of numerology.
-
polyex
anyone using opentelemetry collector on freebsd?
-
skered
Anyone tell me if 13.2 daemon has -r and -R?
-
skered
er nm.. mans are online
-
polyex
anyone using fluent bit? i can't get the http or opentelemetry outputs to work
-
deimosBSD
found this in a literal junk pile the other week, finally had time to set it up,
bsd-hardware.info/?probe=92725f96b8
-
VimDiesel
Title: HW probe of Protectli FW2B Desktop Computer #92725f96b8
-
polyex
what collectors are ppl using for observability agents on freebsd? fluent bit is trash
-
pie_
Does freebsd support something like linux's IPVLAN? (I think.) I'd like to use multiple network interfaces with the same mac address.
-
pie_
wait I don't thinkI thought this through, I need this on the proxmox, not the pfsense. Nevermind xP