Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

i want to LOG my droppped packets in firewall.

The tutorial told me write some lines in /etc/syslog.conf

I have searched but could not foound anything named syslog.conf

There was the file called rsyslog.conf

Are both same

share|improve this question

3 Answers 3

up vote 3 down vote accepted

It is not the same program, but it is the same objective : log all the reporting problems. By default, there is a /etc/rsyslog.d dir where you can put all your modifications. Ths syntax is not the same that syslog.conf.

share|improve this answer
    
Well... take a look at /etc/rsyslog.d/50-default.conf. The beginning of the file definitely uses the same syntax than the old syslogd :) so it is possible to use the old syntax, but also the more versatile one. –  Janne Pikkarainen Aug 26 '10 at 7:56

Recent Ubuntu releases switched from the old syslogd to rsyslog, which is kind of backwards compatible with the old syslog daemon but with more features. So modifying the /etc/rsyslog.conf MIGHT work.

What do you have in mind?

share|improve this answer
    
i want to log my iptable messages like this cyberciti.biz/tips/… can i add those lines in rsyslog.conf file –  John Aug 26 '10 at 7:50
    
Yes, you can. However, please be warned that this doesn't just put the iptables messages into that log file, the file will receive all log messages that posted for the "kern" target, which does include other things as well. –  wolfgangsz Aug 26 '10 at 10:41

If you use the old syntax, be careful of the flags that you 'll use on the executable.

check at the manual on -c flag. You may have problems if you don't use it.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.