LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions
User Name
Password
Linux - Distributions This forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on... Note: An (*) indicates there is no official participation from that distribution here at LQ.

Notices


Reply
  Search this Thread
Old 05-25-2003, 11:30 AM   #1
markus1982
Senior Member
 
Registered: Aug 2002
Location: Stuttgart (Germany)
Distribution: Debian/GNU Linux
Posts: 1,467

Rep: Reputation: 46
Debian 3.0/r1 iptables LOG target not working


anybody experienced problems with the log target in Debian 3.0r1 ? I've installed using the bf2.4 option:

kernel: Linux 2.4.18-bf2.4 #1 Son Apr 14 09:53:28 CEST 2002 i686 unknown (2.4.18-bf install)
iptables: v1.2.6a


iptables -A INPUT-j LOG
and syslog logs kern.* to /var/log/kern.log

but the log remains empty. with my self-built kernel everything works ... so this looks like a kernel issue ...
 
Old 05-25-2003, 11:39 AM   #2
dorian33
Member
 
Registered: Jan 2003
Location: Poland, Warsaw
Distribution: LFS, Gentoo
Posts: 591

Rep: Reputation: 32
it is probably due to the fact that this line is applied as the last in the INPUT chain. For instance
iptables -A INPUT-j DROP
iptables -A INPUT-j LOG
won't log anything whereas
iptables -A INPUT-j LOG
iptables -A INPUT-j DROP
will do. So try:
iptables -I INPUT-j LOG
which place it in "better" place.

Last edited by dorian33; 05-25-2003 at 11:40 AM.
 
Old 05-25-2003, 11:46 AM   #3
markus1982
Senior Member
 
Registered: Aug 2002
Location: Stuttgart (Germany)
Distribution: Debian/GNU Linux
Posts: 1,467

Original Poster
Rep: Reputation: 46
well first of all it of course can't log anything if you drop the packets before logging. i've set up my rules correctly:
Quote:
Chain INPUT (policy ACCEPT)
target prot opt source destination
LOG all -- anywhere anywhere LOG level warning

Chain FORWARD (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination
SIDE NOTE: This is just a test firewall to demonstrate the issue. It should log ALL traffic. And it doesn't log anything at all. If I switch to my self-created kernel it works ... and it should log a damn log in that state ...
 
Old 05-25-2003, 04:51 PM   #4
bastard23
Member
 
Registered: Mar 2003
Distribution: Debian
Posts: 275

Rep: Reputation: 30
markus,

'grep CONFIG_IP_NF_TARGET_LOG /boot/config-2.4.18-bf2.4' ?

Also, should I just reply on the same thread on HOWTO: securing debian.

Have fun,
chris
 
Old 05-25-2003, 04:55 PM   #5
markus1982
Senior Member
 
Registered: Aug 2002
Location: Stuttgart (Germany)
Distribution: Debian/GNU Linux
Posts: 1,467

Original Poster
Rep: Reputation: 46
Quote:
'grep CONFIG_IP_NF_TARGET_LOG /boot/config-2.4.18-bf2.4' ?
Well it's built as module ...

Quote:
Also, should I just reply on the same thread on HOWTO: securing debian.
Feel free to reply there with your thouhgs, etc :-)
 
Old 05-25-2003, 05:01 PM   #6
markus1982
Senior Member
 
Registered: Aug 2002
Location: Stuttgart (Germany)
Distribution: Debian/GNU Linux
Posts: 1,467

Original Poster
Rep: Reputation: 46
BTW I don't have a problem with this issue since I don't use the default kernel anyways ... just caused my notice as I did some debugging ...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
iptables: No chain/target/match by that name qanopus Linux - Networking 6 01-04-2009 09:10 PM
MASQUERADE Target not found (IPTABLES) bksmart Linux - Networking 15 07-27-2005 08:57 PM
pls help!!! iptables patch for IMQ device target debloxie Linux - Networking 0 03-03-2004 05:16 AM
Iptables - Couldn't load target `ACCPET':/lib/iptables/libipt_ACCPET.so: z00t Linux - Security 3 01-26-2004 02:24 AM
iptables -m owner target problem cirrusgr Linux - Networking 1 04-02-2003 12:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions

All times are GMT -5. The time now is 03:57 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration