LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-02-2011, 05:30 AM   #1
dman777
Member
 
Registered: Dec 2010
Distribution: Gentoo
Posts: 232

Rep: Reputation: 8
How to read my routers log?


Hello,

I have my routers log messages go to my desktop. What is the recommend level that it should be set at? Currently I have it set to low, but the log is still filling up quickly with ACCEPT messages.

How important are the ACCEPT messages?

Also, can someone decipher this message/tell me how to read it please?

ACCEPT IN=br0 OUT= MAC=ad:ce:c5:21:d4:84:53:14:1a:19:21:23:08:00 SRC=192.168.1.20 DST=192.168.1.1
LEN=70 TOS=0x00 PREC=0x00 TTL=64 ID=31133 DF PROTO=UDP SPT=41421 DPT=53 LEN=50
 
Old 02-02-2011, 11:42 AM   #2
z1p
Member
 
Registered: Jan 2011
Location: the right coast of the US
Distribution: Ubuntu 10.04
Posts: 80

Rep: Reputation: 23
Quote:
Originally Posted by dman777 View Post
Hello,

I have my routers log messages go to my desktop. What is the recommend level that it should be set at? Currently I have it set to low, but the log is still filling up quickly with ACCEPT messages.

How important are the ACCEPT messages?

Also, can someone decipher this message/tell me how to read it please?

ACCEPT IN=br0 OUT= MAC=ad:ce:c5:21:d4:84:53:14:1a:19:21:23:08:00 SRC=192.168.1.20 DST=192.168.1.1
LEN=70 TOS=0x00 PREC=0x00 TTL=64 ID=31133 DF PROTO=UDP SPT=41421 DPT=53 LEN=50

Googling something like 'IP packet desricption' will give you a choice or sources to learn about what the fields in an IP packet mean which should help you to makes sense of messages like these.

But here is a freebee to get you going, ;^)

Code:
ACCEPT IN=br0 OUT= MAC=ad:ce:c5:21:d4:84:53:14:1a:19:21:23:08:00 SRC=192.168.1.20 DST=192.168.1.1 
LEN=70 TOS=0x00 PREC=0x00 TTL=64 ID=31133 DF PROTO=UDP SPT=41421 DPT=53 LEN=50
A packet was accepted on interface br0.
The originating IP was 192.168.1.20
The IP the packet was sent to was 192.168.1.1
The packet len was 70 bytes
The TOS bit in the packet was 0, the PREC bit was 0
The TTL on the packet was 64
The packet should not be fragmented
It was a UDP packet.
The source port was 41421
The target port was 53
The UDP frame was 50 bytes.

It looks like it was a DNS packet sent to you router, based on the target IP and target port number (port 53 is used for DNS servers)


As far as as what level logging you should use, I can't say as I don't know what router you are using and what options it provides. This particular message looks like a firewall log message which is often controlled seperately through the firewall settings.
 
Old 02-02-2011, 11:51 AM   #3
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
What kind of router are you using, and what is the setup you have to read the logs? What format are the logs in? The more information you supply the better.

ACCEPT IN=br0 OUT= MAC=ad:ce:c5:21:d4:84:53:14:1a:19:21:23:08:00 SRC=192.168.1.20 DST=192.168.1.1
LEN=70 TOS=0x00 PREC=0x00 TTL=64 ID=31133 DF PROTO=UDP SPT=41421 DPT=53 LEN=50

As far as that goes, the accept in is the interface the incoming packets are coming in on. Out, with no interface, I can't really explain, but most likely your system is using the default interface. Mac is mac address, common sense. Src and dst are the source and destination IP addresses. Len is the packet length, TOS is type of service. 0x00 is more of a routine service; https://secure.wikimedia.org/wikiped...ype_of_Service look at the table for the IPv4 types. TTL is time to live, and PREC is IP precedence. Look at https://secure.wikimedia.org/wikiped.../IP_precedence for more information. ID is the type, the proto is the protocol. SPT is the source port, and DPT is the destination port.
 
Old 02-02-2011, 11:53 AM   #4
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
I really need to stop taking my time, since z1p beat me...
 
  


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
Using multi-core/multiprocessor pc routers, vpn routers badkuk Linux - Networking 4 01-15-2011 06:55 AM
Script to read a log file?? helptonewbie Programming 11 11-17-2007 08:18 PM
Does cron have a log I can read? ivj Linux - Software 2 08-18-2005 06:23 PM
how to read log watch ru916b Linux - Security 1 01-05-2005 10:55 PM
read system log online Agent007 Programming 3 01-10-2004 08:59 AM

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

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