Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Servers & Networking
FedoraForum Search

Forgot Password? Join Us!

Servers & Networking Discuss any Fedora server problems and Networking issues such as dhcp, IP numbers, wlan, modems, etc.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 22nd May 2007, 06:28 AM
Filozoff Offline
Registered User
 
Join Date: Mar 2007
Posts: 5
Problems with syslog and iptables

Hi,

I want iptables to log information to syslog.
This is my syslog.conf file:
kern.* /logs/iptables

I added rule to iptables:
iptables -A FORWARD -j LOG

But /logs/iptables is empty.
I tried to test it with logger:
logger -p kern.warn "test"
But nothing happened.

I tried to use mail.* /logs/iptables in syslog.conf and then test it with logger:
logger -p mail.info "test", and it worked!

Why doesn't syslog want to log from the kern facility?

Please help.
Reply With Quote
  #2  
Old 22nd May 2007, 09:54 AM
markkuk Offline
Registered User
 
Join Date: Apr 2005
Location: Finland
Posts: 5,076
"iptables -A" adds the rule to the end of the rule chain. If previous rules handle all packets, nothing reaches your log rule. Check your whole rule set.
Reply With Quote
Reply

Tags
iptables, problems, syslog

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Syslog and log file problems Mesu Servers & Networking 1 6th June 2006 03:05 AM
Problems In FC4 W/ Having to Type ./Iptables instead of Iptables eliminate Servers & Networking 2 17th January 2006 01:51 AM
iptables and syslog.conf HELP NEEDED! vjx Security and Privacy 6 25th February 2005 06:45 PM


Current GMT-time: 04:50 (Sunday, 26-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat