Did firewall logging got broken with netfilter?
by Sam Varshavchik
I have a rich firewalld rule with a "log" option:
# firewall-cmd --list-rich-rules
< ... >
rule family="ipv4" forward-port port="[port]" protocol="tcp" to-port="[port]" to-
addr="[ip addr]" log level="info" limit value="[log frequency]"
Actual numbers changed to protect the guilty.
I cannot find anything being logged, anywhere. According to
firewalld.richlanguage, this should get logged to syslog. The default
rsyslog.conf specifies all info-level messages going to /var/log/messages:
.info;mail.none;authpriv.none;cron.none /var/log/messages
Port forwarding is working, but even when I hit the port I see nothing get
logged.
Just on the lark, I also tried 'journalctl -f", and nothing shows up there,
either.
firewalld is using the netfilters backend.
After some head-banging, and copious searching:
# nft list table inet firewalld
I found this in the output:
chain nat_PRE_FedoraServer_allow {
meta nfproto ipv4 tcp dport [port] dnat ip to [host:port]
}
I see nothing here that suggests that anything is going to get logged.
So, I'm just guessing that firewall-cmd either does not implement the log
option, in the net-filter back-end, or the net-filter back-end simply does
not implement any kind of logging (which seems unlikely).
Anyone know anything more on this?
2 years, 2 months
how to log machine activity
by Eyal Lebedinsky
I am chasing a problem where I notice audio hiccups at regular intervals. It may be cron but I cannot see how.
I want to log start/end of every executable. I will do this for only a few minutes at a time.
I may want, later, to log all access to one fs to see if it matches what I hear.
I am on f34, x86_64, up to date. Surely there is a standard tool to do this (I hope)?
TIA
--
Eyal Lebedinsky (fedora(a)eyal.emu.id.au)
2 years, 2 months
how to test Wireless/Bluetooth card on Fedora
by Anil Felipe Duggirala
hello,
I am having some issues with my Bluetooth connections. I tested a Bluetooth mouse and it worked but had an issue, it became laggy after a few seconds of being connected. One would move the mouse but the movement of the pointer on the screen was noticeably laggy. I also tried using a bluetooth speaker and experienced a similar issue. The sound produced by the speaker was slightly behind the video, just slightly behind.
I know that both of these devices (mouse and speakers) work correctly on other PCs. And the issues I am having on this PC, are also present on my Windows system installed on dual boot on the same machine.
I'm on a Dell XPS 9550,which I think comes with the Dell Wireless 1830. and lspci outputs : Broadcom Inc. and subsidiaries BCM43602 802.11ac Wireless
This card provides both Wifi and Bluetooth.
My bootup is showing some messages related to this device, maybe?:
[ 1838.063937] ieee80211 phy0: brcmf_inetaddr_changed: fail to get arp ip table err:-52
[ 4216.272913] ieee80211 phy1: brcmf_psm_watchdog_notify: PSM's watchdog has fired!
Is there any way for me to test the Bluetooth on this laptop to see if I have a damaged card?
I need to know if I need to buy this replacement card. Wifi is working OK, Bluetooth is definitely not ok (even on Windows).
I'm on Fedora 34 Workstation.
If I decide to order a new Card, I think I could also get the: Intel Wireless 7260 WLAN WiFi 802.11 ac/a/b/g/n + Bluetooth 4.0 Dual Band Card
or the:
Killer Wireless N1535 Dual Band WLAN WiFi 802.11 ac/a/b/g/n + Bluetooth 4.0 M.2 Card - VM1D6
working on this laptop. Can anyone suggest which one might work better on Fedora?
thanks very much for your help.
Anil F
2 years, 2 months
Flakey Bluetooth Devices
by Jonathan Ryshpan
There are two bluetooth devices paired with my main computer. The
connection is via this dongle:
$ lsusb
...
Bus 003 Device 003: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)
Two devices are paired:
$ bluetoothctl paired-devices
Device C0:15:DA:B9:77:39 Bluetooth Ergonomic Mouse
Device 3B:0C:40:C7:35:16 TEWELL T-1
Both have problems:
The MS Ergonomic Mouse often doesn't connect when the system starts.
Sometimes it's possible to get it to connect by running
$ bluetoothctl connect C0:15:DA:B9:77:39
but generally the only way to get the it to connect is by running:
$ sudo pkill bluetoothd
which kills the bluetooth daemon; another instance is automatically
restarted, which recognizes the mouse.
Also, the mouse often falls asleep; it's possible to wake it by moving
it around, but it would be nicer is it stayed awake.
$ bluetoothctl info C0:15:DA:B9:77:39
Device C0:15:DA:B9:77:39 (random)
Name: Bluetooth Ergonomic Mouse
Alias: Bluetooth Ergonomic Mouse
Appearance: 0x03c2
Icon: input-mouse
Paired: yes
Trusted: yes
Blocked: no
Connected: yes
WakeAllowed: yes
LegacyPairing: no
UUID: Generic Access Profile (00001800-0000-1000-8000-00805f9b34fb)
UUID: Generic Attribute Profile (00001801-0000-1000-8000-00805f9b34fb)
UUID: Device Information (0000180a-0000-1000-8000-00805f9b34fb)
UUID: Battery Service (0000180f-0000-1000-8000-00805f9b34fb)
UUID: Human Interface Device (00001812-0000-1000-8000-00805f9b34fb)
UUID: Vendor specific (7a440b82-7fc2-45bd-83e6-d6d78c5669d1)
Modalias: usb:v045Ep0834d0124
Battery Percentage: 0x64 (100)
The TEWELL internet radio often cuts off the first part of sentences
when listening to voice. I can post a recording if anyone wants to
hear.
$ bluetoothctl info 3B:0C:40:C7:35:16
Device 3B:0C:40:C7:35:16 (public)
Name: TEWELL T-1
Alias: TEWELL T-1
Class: 0x00340404
Icon: audio-headset
Paired: yes
Trusted: yes
Blocked: no
Connected: yes
LegacyPairing: no
UUID: Audio Sink (0000110b-0000-1000-8000-
00805f9b34fb)
UUID: A/V Remote Control Target (0000110c-0000-1000-8000-
00805f9b34fb)
UUID: Advanced Audio Distribu.. (0000110d-0000-1000-8000-
00805f9b34fb)
UUID: A/V Remote Control (0000110e-0000-1000-8000-
00805f9b34fb)
UUID: PnP Information (00001200-0000-1000-8000-
00805f9b34fb)
Modalias: bluetooth:v05D6p000Ad0240
System Info:
Operating System: Fedora Linux 35
KDE Plasma Version: 5.23.5
KDE Frameworks Version: 5.90.0
Qt Version: 5.15.2
Kernel Version: 5.16.5-200.fc35.x86_64 (64-bit)
Graphics Platform: X11
Processors: 8 × Intel® Core™ i7-4790K CPU @ 4.00GHz
Memory: 15.5 GiB of RAM
Graphics Processor: Mesa Intel® HD Graphics 4600
--
Sincerely Jonathan Ryshpan <jonrysh(a)pacbell.net>
All the world's a stage and most of us are
desperately unrehearsed. -- Sean O'Casey
2 years, 2 months
audio-related bug(?) on Fedora 35
by Ranjan Maitra
Hi,
I have noticed a possible bug over the past ten days that pretty soon makes it impossible to do anything related to sound and then necessitates a reboot (complete with hard power button press). Here is what happened the last time (an hour ago) when I was forced to reboot:
I got:
After Stopping session c1 of User "xyz"
(*) A stop job is running on session c1 for user "xyz"
(+) A stop job is running for Manage Sound Card State (restore & state)
After Stopped Login service, I get
(-) A stop job is running for User Manager for UID yyyy
(+) A stop job is running for Manage Sound Card State (restore & state)
After Stopped Authorization Manager, I get
(+) A stop job is running for Manage Sound Card State (restore & state)
After about 2 mins, (*) and (-) get done (separately), and after about 6 min (+) gets done.
However, I get a message:
Waiting for process: alsactl, wireplumber, chromium-browse (not browser), pipewire
and after a while (because I have already wasted close to 30 minutes if you add the time it took me to figure out the need to do a reboot), I give up and do a hard reboot.
I wonder what the problem is. Note that I did shut down chromium-browser and firefox before reboot. I rebooted into the 5.16 kernel ten days ago. I am on a Dell XPS13 and do nightly updates. I also hibernate every night and usually do not reboot for weeks: I can not recall why I decided to reboot 10 days ago, but it must have been some oddity. My guess is that I was hibernating and waking for at least 20 days before that.
Any suggestions? Let me know what additional information I can provide. If it is indeed a bug, what should I file under?
Many thanks and best wishes,
Ranjan
2 years, 2 months
[OT] need crontab help
by Mike Wright
Hi all,
There is a java app that writes directly to the pulseaudio MASTER
channel at full volume twice a day. I'm pretty sure the neighbors hear
it. My idea is to use crontab to run at 12:59 Monday-Friday. It waits
59 seconds, mutes the audio, waits 6 more seconds and unmutes the audio.
From the command line it works. I can't make it work using crontab.
It does show up in the syslog.
This is in my /etc/crontab (all on one line)
59 12 * * 1-5 root test -x /usr/local/bin/mute && \
( \
/bin/sleep 59 ; \
/usr/local/bin/mute ; \
/bin/sleep 6 ; \
/usr/local/bin/unmute \
)
This is /usr/local/bin/mute and unmute:
sink=$(pactl info | grep "Default Sink" | cut -d' ' -f3)
pactl set-sink-mute "$sink" 1 (unmute uses 0)
Anybody explain why this doesn't do what I intend?
Thanks,
Mike Wright
2 years, 2 months
USBC hub questions mainly charging and video output
by Frederic Muller
Hi!
I just bought a (ONTEC) USBC hub to connect my VGA monitor to my laptop)
with as well a PD port. Reading the poorly written manual I wasn't sure
if that port was just to provide a charging port for a USBC device, or
if I could plug in my laptop adapter, which would then get power from
the HUB (as their diagram suggests), giving me back 1 of the 2 available
TB4/USBC ports on the laptop?
I did connect 2 external monitor to the hub (1 VGA+1 HDMI port) but only
got mirrored images. Assuming the answer above is a yes I can save one
of my USBC ports, could I assume I would then be able to connect a
different display to the remaining USBC port and add 1 monitor that way?
Thank you.
Fred
2 years, 2 months
autofs vs df
by Frank Elsner
Hello,
my 2nd NFS problem today:
My Fedora 35 laptop uses automount to access files on my server.
File /etc/automount contains
Media -rw,soft,nfsvers=3 christo:/misc/Media
After sucessful mount df shows:
192.168.28.55:/misc/Media 985G 567G 419G 58% /misc/Media
^^^^^^^^^^^^^
Why is the (correct) IP shown?
When mounting by "mount -t nfs christo:/misc/Media ..." the name is shown.
Stay healhy, Frank
2 years, 2 months
NFS mount and options
by Frank Elsner
Hello,
on my Fedora 36 system I've the following (strange) mount error:
$ mount -t nfs christo:/misc/Backups /mnt
mount.nfs: failed to apply fstab options
In /etc/fstab there is no entry relating to /misc/Backups.
What options?
Kind regards, Frank Elsner
2 years, 2 months