LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-17-2009, 10:40 AM   #1
bobbera
Member
 
Registered: Jun 2007
Posts: 39

Rep: Reputation: 0
Custom log file using iptables


Hi ,

I'd like to trace down ftp clients activity .For that purpose I added the string in /etc/syslog.conf :

kern.warning /var/log/iptables-ftp.log

and ran iptables rule like :

iptables -A INPUT -p tcp -m tcp --dport 21 -j LOG --log-prefix " FTP access "

I assumed that all messages related to this rule will be redirected to the new /var/log/iptables-ftp.log file but I see them in /var/log/messages as well .

Mar 17 10:30:04 SDR kernel: FTP access IN=eth0 OUT= MAC=00:15:32:7c:4f:62:00:0a:d7:5c:23:1a:08:00 SRC=192.127.12.345 DST=10.10.0.34 LEN=40 TOS=0x00 PREC=0x00 TTL=108 ID=56143 DF PROTO=TCP SPT=1341 DPT=21 WINDOW=65474 RES=0x00 ACK FIN URGP=0

How to configure syslog that all logs will appear only in custom log file ?

Thanks .
 
  


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
Firewall log file, how to make several different log files with IPTables? newtovanilla Linux - Newbie 5 11-28-2008 12:39 PM
Log iptables logs into other file Tux-Slack Slackware 2 11-18-2007 01:57 PM
iptables log file winxandlinx Linux - Networking 2 02-14-2007 11:42 PM
iptables, changing log file from /var/log/messages acid2000 Linux - Networking 3 03-11-2003 08:38 PM
iptables log file Anjo Linux - General 2 02-07-2003 03:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:42 AM.

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