The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Special Forums > IP Networking
Google UNIX.COM
Home Forums Register Rules & FAQ Members List Arcade Search Today's Posts Mark Forums Read


IP Networking Questions involving TCP/IP, Routers, Hubs, Network protocols, etc go here.


Other UNIX.COM Threads You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
tcpdump question jinsunnyvale IP Networking 1 01-18-2008 05:04 AM
tcpdump on AIX nymus7 AIX 4 01-16-2008 04:51 PM
R-326: tcpdump iBot Security Advisories (RSS) 0 01-08-2008 08:50 AM
tcpdump ant04 UNIX for Dummies Questions & Answers 2 09-07-2004 03:36 PM
How To Use tcpdump chenhao_no1 High Level Programming 2 04-01-2003 05:15 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-22-2008
Registered User
 

Join Date: Feb 2008
Posts: 8
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl this Post!
tcpdump: strange logging?

Hi,

I want to secure my ntp servers by setting restriction rules. Before doing so I want to monitor the traffic going through the ntp port of the servers to be able to change in time the configuration of "the unwanted clients" so that they do not "loose" the correct time. To do this I am using tcpdump. Mostly is working really fine, just I record 2 types of strange connections which I do not understand, maybe I did not understand how deeply work tcpdump, and I am asking your help to understand them.

the tcp command I am executing is like:

Code:
tcpdump -n -i interface port 123
say sss.sss.sss.sss is the IP address of the machine where I am running the tcpdump (the ntp server), and ccc.ccc.ccc.<number> is the IP of another machine. Note: we have a 10. network, some machine produce a 192.168 addresses but they are not routed. Note: we are speaking about a big company i.e. tons of firewalls, routers etc lie within the servers.

A normal ntp query connection looks like:

Code:
19:33:37.764379 IP ccc.ccc.ccc.001.123 > sss.sss.sss.sss.123: NTPv4, Client, length 48
19:33:37.764421 IP sss.sss.sss.sss.123 > ccc.ccc.ccc.001.123: NTPv4, Server, length 48
remote client requests time (I line Client), the local server answers (II line Server): fine.

Now the strange connection Nr1:

Code:
19:33:38.801105 IP 10.ccc.ccc.002.123 > 10.ccc.ccc.003.123: NTPv4, Server, length 48
Note:
1) it is a single line, not a pair Client, Server
2) the "source" of the packages is not the local host (the machine where I am running the tcpdump)
3) the "destination" of the packages is not the local host the machine where I am running the tcpdump)

where does this package come from?

Now the strange connection Nr2:

Code:
19:33:38.801105 IP 10.ccc.ccc.004.123 > 10.ccc.ccc.005.3121: NTPv4, Server, length 48
Note:
1) same as before but the "destination" port is not 123

where does this package come from?

Now the strange connection Nr3:

Code:
08:00:04.904630 IP 192.168.ccc.006.123 > sss.sss.sss.sss.123: NTPv3, Client, length 48
08:00:04.904646 IP sss.sss.sss.sss.123 > 192.168.ccc.006.123: NTPv3, Server, length 48
Note:
1) Now the structure remote client asks local server answers is respected
2) but the remote client has an IP which is not routed at all??!?!

How can tcpdump get those packages?

So my questions are:
1) How to interpret those packages records? (i.e. do I miss something in the understanding of tcpdump?)
2) Can I ignore those "strange records" in the configuration of my secure ntp server?

Thanks a lot.

Last edited by one71 : 02-22-2008 at 01:23 AM.
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 02-25-2008
Registered User
 

Join Date: Feb 2008
Posts: 8
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl this Post!
I have partially understood the strange connections popping up.

tcpdump sets the network interface in promiscuous mode. This means that:

Quote:
In computing, promiscuous mode is a configuration of a network card that makes the card pass all traffic it receives to the central processing unit rather than just packets addressed to it
Still I do not understand the "strange connection Nr3", any idea?
Thanks
Reply With Quote
  #3 (permalink)  
Old 02-26-2008
Bughunter Extraordinaire
 

Join Date: May 2005
Location: In the leftmost byte of /dev/kmem
Posts: 916
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl this Post!
To be honest: i have no idea.

Having said this, here is a suspicion: as long as you can arp someone you can have a connection. it doesn't matter that layer 3 wouldn't work when your layer 2 already handles the connection.

Have you looked in your ARP-cache which MAC adress this strange adress maps to?

bakunin
Reply With Quote
Google UNIX.COM
Reply



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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -7. The time now is 03:41 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger

Search Engine Optimization by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102