-
polyex
hm why doesn't this work: sudo tcpdump -n -e -ttt -i pflog0 | logger -p local0.notice
-
polyex
tried sudo /bin/sh -c "tcpdump -n -e -ttt -i pflog0 | logger -p local0.notice" yoo
-
polyex
too*
-
xFCFFDFFFFEFFFAF
sudo /bin/sh -c "repeat 1000 'tcpdump -n -e -ttt -i pflog0 | logger -p local0.notice'" is right
-
xFCFFDFFFFEFFFAF
or not
-
xFCFFDFFFFEFFFAF
maybe, at last
-
xFCFFDFFFFEFFFAF
or
-
xFCFFDFFFFEFFFAF
[ins er t co i ns]
-
polyex
what?
-
xFCFFDFFFFEFFFAF
гep пук
-
polyex
ya i just don't know what any of that means
-
vortexx
polyex: you have to add log to every line of block or pass in pf.conf and it'll appear in syslog, at least on OpenBSD. Probably the same in FreeBSD
-
vortexx
pass in log, block in log, etc
-
polyex
add what vortexx?
-
vortexx
the log keyword
-
polyex
i have added "log" to all of my rules i want to know about, and i can see them
-
polyex
the issue is getting them into syslog
-
vortexx
is check that daemon.log or messages.log aren't getting filled with pf messages
-
polyex
is check?
-
vortexx
/var/log/daemon.log & /var/log/messages
-
vortexx
s/is check/check
-
vortexx
also you have to set log interface in pf.conf, such as set loginterface dc0
-
polyex
why are you talking about filling up files? that's beside the point. why doesn't sudo tcpdump -n -e -ttt -i pflog0 | logger -p local0.notice or sudo /bin/sh -c "tcpdump -n -e -ttt -i pflog0 | logger -p local0.notice" work?
-
vortexx
without that it won't work
-
vortexx
think, if you're activating logging to syslog on an interface with high traffic, every single packet passage will be logged to syslog and whereever that ends up it will balloon the logfile
-
vortexx
the most knowledgeable people about pf are in #openbsd, I suggest you ask there
-
llua
which has a different pf
-
polyex
i think you guys are missing the point. i run tcpdump -n -e -ttt -i pflog0 and it works fine, i see a few lines an hour. why can't i just pipe that into logger so that those few lines an hour end up in syslog?
-
polyex
it's like you're not even listening and you just want to type dozens of lines for fun
-
llua
i wasn't here for the original question, but add -l to tcpdump
-
llua
or /msg greybot !faq buffering
-
polyex
WORKING
-
polyex
TYVM!!
-
polyex
and to make "sudo tcpdump -n -l -e -ttt -i pflog0 | logger -p local0.notice" always running, i just pass it to daemon and make a rc.d script out of it?
-
darwin
'tput AB F AF 0 cd' no longer worked for me on FreeBSD UNIX 14
-
lw
whoo all my IPv6-only kernel changes got MFC's into stable/14 and releng/14.1 and will be in 14.1-RELEASE, so you can now build a kernel with no IPv4 support at all by removing 'options INET'
-
polyex
lw omfg tyvm. ipv6-only is the future
-
polyex
lw any way you could add per-vimage mac_portacl support to jails?
-
lw
probably not rn as i'm very busy, i suggest mailing net@ or filing a PR. or do it yourself!
-
lw
(also i don't know anything about vnet...)
-
polyex
trying to make my tcpdump to logger command a rc.d script ran by daemon, but it makes error?
termbin.com/vh2g
-
polyex
dunno why my sudoers line isn't solving that error
-
lw
polyex: why don't you just set pflog_enable=YES?
-
polyex
lw what do you mean? pflog is enabled
-
polyex
but that doesn't put my tcpdump lines onto syslog which is what i wanna do
-
lw
aren't you just duplicating pflog functionality then? the log is already available in /var/log/pflog
-
lw
ah
-
polyex
it's built on pflog0 actually
-
lw
then you have to run your script as root, or configure devd to make /dev/bpf accessible to another group
-
polyex
ohh it's not just a sudo thing?
-
lw
i don't know what you mean by "sudo thing" but your rc.d script is not invoking sudo, if that's what you intended?
-
lw
it would be more secure to run it as non-root anyway though, since tcpdump does have a history of security issues
-
polyex
oh lol yea duh i'm not calling sudo. hmm
-
polyex
what's the right way to run this thing as its own user but also get permission to run the cmd? add logg user to devd group for /dev/bpf?
-
lw
yes, you need to get devd to create /dev/bpf with group read permission. i don't know how to do that off hand though
-
lw
(i'm sure it's not complicated as this is the sort of thing that devd is intended to support)
-
lw
-
VimDiesel
Title: pkg-message « wireshark « net - ports - FreeBSD ports tree
-
lw
then you just need to make sure your rc.d script runs as a user in the 'network' group
-
polyex
ooo interesting tyvm!!
-
lw
apparently tcpdump on freebsd is capsicumised though so the risk of running it as root is less than you might expect
-
lw
but still, don't run things as root if not required
-
polyex
yep
-
» |cos| has just claimed on stack-exchange that bcm4360-wifi is completely unusable with FreeBSD.
-
|cos|
-
VimDiesel
Title: wifi - Boot iPXE on macbook pro using BSDP - Ask Different
-
|cos|
Would love if someone could prove me wrong!
-
|cos|
Phrased as a question: Are there tools in FreeBSD to run binary-only blobs for the wifi-crap in macbooks?
-
vkarlsen
|cos|: Could NDISulator do that?
-
vkarlsen
Hm, maybe that was ripped out in 14.x?
-
lw
|cos|: maybe look at wifibox
-
|cos|
vkarlsen, lw: thanks! it sure seems wifibox would do the trick. i'll commmense my freebsd install and update the SE answer.
-
lw
yeah, wifibox is basically the new version of the NDISulator
-
lw
since Linux supports all common wifi cards nowadays
-
lw
it sucks you need to run Linux to make common wifi devices work but it's better than nothing
-
sfox
even when wifi does work it doesn't work well. I have an old atheros chipset but it's limited to 802.11n 54g despite both ends being capable of ac MIMO and it spams my dmesg with weird errors
-
sfox
ath0: bad series0 hwrate 0x1b, tries 3 ts_status 0x0
-
sfox
ath0: ath_rate_tx_complete: ts_rate=27 ts_finaltsi=0, final_rix=0
-
sfox
wifi randomly stops working every a day or two and needs manual intervention
-
[diablo]
Hey good afternoon #freebsd ... I'm trying to build some ports for a FreeBSD 11.4 , and am hitting constantly this
paste.centos.org/view/21f5be26
-
VimDiesel
Title: Untitled - Pastebin Service
-
[diablo]
to the untrained eye, it seems the issue is the "make: "/usr/ports/ports-mgmt/pkg/work/pkg-1.21.2/mk/common.mk" line 16: Need an operator"
-
[diablo]
any ideas please?
-
[diablo]
FWIW that's showing as 16 -include $(DEPFILES_NONEMPTY:=)
-
babz
The last time I had a look at the code for 802.11 drivers, it gave me a headache.
-
babz
The cost of entry for these technologies is enormous, even for embedded systems engineers.
-
babz
I think that to really make progress on this subject, someone would have to work on it full-time for at least a year.
-
sfox
is there an alternative wireless protocol?
-
sfox
if 802.11 is so hard to implement
-
lw
no, currently routeros, but the ac devices require "qcom-wifi-ac" package
-
lw
wc
-
michuumichuu
anyone knows how is 802.11ac/ax development going?
-
babz
Something like 3 commits in 5 years iirc
-
sfox
=O
-
dch
asking for a friend, is anybody using digital ocean floating ips, *and* carp?
-
dch
and for an alternative, looking for a tcp or udp based "clustering" protocol
-
dch
if node A is down, then node B should run a shell script
-
dch
and vice versa
-
martinrame
Hi, I need to install packages on a FreeBSD 12 jail. I cannot upgrade to 13 nor 14, is there an old repository I can point to?>
-
martinrame
-
VimDiesel
Title: FreeBSD:12:amd64
-
vortexx
hi, I'm trying to take a failing drive offline with MegaCLI64 on my raid array, using this guide:
advancedclustering.com/act_kb/replacing-a-disk-with-megacli
-
VimDiesel
Title: Replacing an LSI raid disk with MegaCli - Advanced Clustering Technologies
-
vortexx
oh I forgot I need to use bash instead of csh for this, sorry for the noise
-
angry_vincent
anyone on stable/14 with latest changes? i have no sound after some work on sound drivers
-
angry_vincent
there was certain changes to sound driver
-
angry_vincent
-
VimDiesel
Title: src - FreeBSD source tree
-
angry_vincent
however, i had no last 24 hour changes, only ones that 5 days old
-
thaewrapt
re
-
saper
andjjj23: I am on a pretty fresh FreeBSD 15-CURRENT and sound works, with both Realtek ALC262 and USB sound cards
-
saper
er sorry andjjj23 :)
-
polyex
to give specific users access to bpf is the best way how
cgit.freebsd.org/ports/tree/net/wireshark/pkg-message does it? can it be in devfs.rules instead of devfs.conf?
-
VimDiesel
Title: pkg-message « wireshark « net - ports - FreeBSD ports tree
-
polyex
is bpf available at boot? that's 1 of the differences manpages say
-
polyex
why can't i chgrp on /dev/bpf0?
-
polyex
i type it and there's no error but ls -la still shows root:wheel