LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-06-2017, 11:55 PM   #1
luofeiyu
Member
 
Registered: Aug 2015
Posts: 237

Rep: Reputation: Disabled
What does err log info in ipatables mean?


Here is log level table to describe priority keyword.

Priority Keyword Description
0 debug Debug-level messages.
1 info Informational messages.
2 notice Normal but significant condition.
3 warning Warning conditions.
4 err Error conditions.
5 crit Critical conditions.
6 alert Immediate action required.
7 emerg System is unstable.


sudo iptables -A INPUT -p tcp --sport 80 -j LOG --log-level 4
sudo service rsyslog restart

To cat log file in serveral minutes

cat /var/log/iptables.log #iptables log had been put here /var/log/iptables.log separately

Feb 6 21:01:39 hwy kernel: [16609.411694] IN=eth0 OUT= MAC=e0:30:40:50:60:70:f8:32:e4:96:96:b4:08:00 SRC=198.252.206.25
DST=192.168.1.176 LEN=239 TOS=0x04 PREC=0x00 TTL=45 ID=3269 DF PROTO=TCP SPT=80 DPT=47699 SEQ=2734110881 ACK=1779183241 WINDOW=57 RES=0x00 ACK FIN URGP=0
Feb 6 21:01:41 hwy kernel: [16611.413402] IN=eth0 OUT= MAC=e0:30:40:50:60:70:f8:32:e4:96:96:b4:08:00 SRC=198.252.206.25
DST=192.168.1.176 LEN=239 TOS=0x04 PREC=0x00 TTL=45 ID=15115 DF PROTO=TCP SPT=80 DPT=47697 SEQ=1519714542 ACK=3252168617 WINDOW=57 RES=0x00 ACK FIN URGP=0

What does err log mean here?
Are there net traffice accidents between my pc and remote host?
Someone attack me?
 
Old 02-07-2017, 12:25 AM   #2
descendant_command
Senior Member
 
Registered: Mar 2012
Posts: 1,876

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
No, it's logging any tcp packet with a source port of 80 - just like you told it to.

The log level determines which logfile (r)syslog will put it into, depending on your configuration.

You've told it to treat the entries as 'err' level messages, so syslog will act on them according to it's configuration.
 
1 members found this post helpful.
  


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
[SOLVED] log files are empty -- messages,syslog,mail.err masuch Linux - General 7 02-26-2012 01:08 PM
(Bash) Redirect all output from script to all.log and copy of errors to err.log hmsdefender Programming 5 03-05-2010 01:52 PM
To err or not to err? Filesystem Error Problem abejarano Linux - Hardware 3 12-09-2008 04:12 PM
Dual system boot err: rootnoverify(hd1,0),but the hd0 err msg existed befor shut down lilipeng24 Linux - General 3 06-25-2005 12:10 PM
'err()' and 'info()' problems in usb.c? cd7809 Programming 5 03-04-2004 08:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:20 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