You are not logged in.
Pages: 1
I simply want to LOG dropped packets. It seems every walkthrough for doing just this requires a "-j LOG" and just assumes that that is available on your system.
Any iptables command I try to execute results in :
iptables: No chain/target/match by that name.
I've scoured the 'net and found that other people have this problem, but I cannot find a solution.
What can I do to enable logging so that the LOG target is available?
My kernel is 4.7.2-1-ARCH
iptables version is 1.6.0
Thanks
Last edited by SlickBlackCadillac (2016-09-28 03:29:34)
Offline
Make sure you fully update your system, reboot and try again.
R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K
Offline
I am not able to reboot at the moment but I found something that may just indicate you are right.
# uname -r
4.7.2-1-ARCH
But I did at some before experiencing this problem run pacman -Syu and updated to a newer kernel but have not rebooted.
So running a simple modprobe will say:
# modprobe xt_LOG
modprobe: FATAL: Module xt_LOG not found in directory /lib/modules/4.7.2-1-ARCH
The problem being that the folder /lib/modules/4.7.2-1-ARCH has been renamed to /lib/modules/4.7.4-1-ARCH
!!!!!
So I will reboot when I am able and try again. Will report back if that works.
Thanks!!
Edit: copied wrong output
Last edited by SlickBlackCadillac (2016-09-27 17:30:29)
Offline
If 'uname -r' and 'pacman -Q linux' show different versions it means you have updated your kernel and didn't reboot, that will cause problems like you describe.
R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K
Offline
R00KIE
Thanks very much my friend. Rebooting did the trick. Probably a first time rebooting was the answer to a problem I had in Arch.
So what I suspected was right. After booting, I did an lsmod and xt_LOG was nowhere to be found. Ran an iptables command with -j LOG in it and it didn't complain! I ran an lsmod and guess what, xt_LOG popped up. So iptables was trying to modprobe it! Go figure!
Stupid solution to a stupid problem but it sure taught me a lot about how Arch/Linux works!
Thanks again
Last edited by SlickBlackCadillac (2016-09-28 01:43:15)
Offline
Pages: 1