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 08-03-2009, 05:33 AM   #1
Ygrex
Member
 
Registered: Nov 2004
Location: Russia (St.Petersburg)
Distribution: Debian
Posts: 666

Rep: Reputation: 68
Established and unreplied tcp-connections from/to unknown networks


Hi,

Once I've revisioned a connection tracking list on my linux-driven router/nat, an odd thing has been revealed. The list contains large amount of entries with both src's and dst's from networks, which I do not know. I am 100% sure, that these networks are not routed with my devices. All such entries are ESTABLISHED TCP and UNREPLIED.

How could they appear in the connection tracking list?

Thanks for any help,

Igor
 
Old 08-04-2009, 05:35 PM   #2
Suncoast
Member
 
Registered: Apr 2009
Location: Largo, Florida
Distribution: Slackware
Posts: 208

Rep: Reputation: 35
Could be just hacker probes. Which tcp ports are being opened?
 
Old 08-06-2009, 03:16 AM   #3
Ygrex
Member
 
Registered: Nov 2004
Location: Russia (St.Petersburg)
Distribution: Debian
Posts: 666

Original Poster
Rep: Reputation: 68
mostly 80 was in use; I cannot figure out the way, how such connections could be established
 
Old 08-06-2009, 09:44 AM   #4
Suncoast
Member
 
Registered: Apr 2009
Location: Largo, Florida
Distribution: Slackware
Posts: 208

Rep: Reputation: 35
You did not post much information about your network. I can only assume they are NAT translations for the websites you are visiting. This would also include all the banner ad sites on those web pages. If you did a Google search and looked at 10 results, you would see over 100 unique connections. And those sites do not always close their connections gracefully, so they may be listed for hours.

Last edited by Suncoast; 08-06-2009 at 09:51 AM.
 
Old 08-07-2009, 08:01 AM   #5
Ygrex
Member
 
Registered: Nov 2004
Location: Russia (St.Petersburg)
Distribution: Debian
Posts: 666

Original Poster
Rep: Reputation: 68
Quote:
Originally Posted by Suncoast View Post
I can only assume they are NAT translations for the websites you are visiting.
I do NAT only of Private IP addresses
Quote:
Originally Posted by Suncoast View Post
If you did a Google search and looked at 10 results, you would see over 100 unique connections. And those sites do not always close their connections gracefully, so they may be listed for hours.
but either DST or SRC field will be filled with my IP (or IP of my NAT-gateway, if I am behind NAT)

or is there missed anything?
 
Old 08-07-2009, 02:45 PM   #6
Suncoast
Member
 
Registered: Apr 2009
Location: Largo, Florida
Distribution: Slackware
Posts: 208

Rep: Reputation: 35
Could you post a sample of what you are seeing?

Click here to use Steve Gibson's "Shields Up" site to test your IP address. It's possible your NAT is being misused by someone. Not likely though.
 
Old 08-08-2009, 03:40 AM   #7
Ygrex
Member
 
Registered: Nov 2004
Location: Russia (St.Petersburg)
Distribution: Debian
Posts: 666

Original Poster
Rep: Reputation: 68
Quote:
Originally Posted by Suncoast View Post
Could you post a sample of what you are seeing?
No problem, the following line I've found in /proc/net/ip_conntrack on one of my NATs:
Code:
tcp      6 307131 ESTABLISHED
        src=83.136.240.102 dst=121.23.0.100 sport=25 dport=17728
        packets=3 bytes=570 [UNREPLIED]
        src=121.23.0.100 dst=83.136.240.102 sport=17728 dport=25
        packets=0 bytes=0 mark=0 use=1
Neither SRC nor DST address are from my networks.
Quote:
Originally Posted by Suncoast View Post
Click here to use Steve Gibson's "Shields Up" site to test your IP address. It's possible your NAT is being misused by someone. Not likely though.
Thank you, I'll try it on monday.
 
Old 08-08-2009, 08:16 AM   #8
Suncoast
Member
 
Registered: Apr 2009
Location: Largo, Florida
Distribution: Slackware
Posts: 208

Rep: Reputation: 35
Interesting. The sample you posted is port 25, which is Email. Do you know subnets? Are either of those IP addresses (SRC/DST) on the same subnet as you are? Is the host portion of either of those IP address the same as yours? The only thing I can think of is someone on the same subnet is spoofing addresses.

Do the command "arp -a"
Code:
steve@O:~$ /sbin/arp -a
qbooks.local.loc (192.168.24.126) at 00:04:5a:0f:f4:0a [ether] on eth0
? (192.168.24.65) at 00:11:21:04:4e:e0 [ether] on eth0
? (152.178.14.96) at 00:11:21:04:4e:e0 [ether] on eth0
( IP Addresses fictional )
The output shows IP address and MAC address. In this example, notice the 2nd and 3rd IP address have the same MAC address. That means one of two things. The MAC address is a router or Gateway. Or that person is spoofing another address.

Arp tables do not stay long. You may need to run this command over time to catch a duplicate MAC.

And just to be thorough, do a "route" command. Check to be sure none of those subnets are in your routing table.
 
Old 08-11-2009, 05:51 PM   #9
Suncoast
Member
 
Registered: Apr 2009
Location: Largo, Florida
Distribution: Slackware
Posts: 208

Rep: Reputation: 35
Did you get a chance to try it?
 
Old 08-12-2009, 01:19 PM   #10
Ygrex
Member
 
Registered: Nov 2004
Location: Russia (St.Petersburg)
Distribution: Debian
Posts: 666

Original Poster
Rep: Reputation: 68
It seems, that the GRC's scanner gives no more information, than nmap does. It hasn't helped.

Well, I've checked ARP-table and found no suspicious entries.

Hence I guess alien traffic could appear from optical fibers, which we rent.
 
Old 08-16-2009, 04:49 PM   #11
Suncoast
Member
 
Registered: Apr 2009
Location: Largo, Florida
Distribution: Slackware
Posts: 208

Rep: Reputation: 35
I didn't realize you had access to the public side of your NAT device. So yes, nmap would be about the same. It sounds like you are happy with what you've found.
 
  


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
File sharing over NON-tcp/ip networks - what is the best protocol? Ulysses_ Linux - Networking 28 07-16-2009 06:43 AM
ESTABLISHED connections not clearing nfotiu Linux - Networking 1 04-14-2009 12:35 PM
Established connections? n00b1shzyx Linux - Newbie 8 03-01-2009 02:57 PM
Cancel Established Connections landysaccount Linux - Newbie 3 11-17-2008 08:42 PM
Two networks with two internet connections on same machine. lhrimunda Linux - Networking 4 08-21-2008 08:38 AM

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

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