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 - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 06-10-2005, 08:37 PM   #1
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Rep: Reputation: 62
Someone is beating on my firewall ... Should I be concerned


I have only recently started looking at my logs (Logwatch - FC3), and trying to learn how to harden my defenses within a 'reasonable' limit.

Every day, I get a report that includes information similar to this:

From IP ------------ Hits --- Prtcl ------- Ports
61.235.154.92 --- 140 --- udp --- (1026-1027)
61.53.154.81 ------ 99 --- udp --- (1026-1027)
61.152.158.101 --- 95 --- udp --- (1026-1027)
222.136.251.113 - 34 --- udp --- (1026-1027)
220.168.156.71 --- 34 --- udp --- (1026-1027)
61.152.158.152 --- 26 --- udp --- (1026-1027)
222.189.38.2 ------- 23 --- udp --- (1026-1027)
222.241.95.8 ------- 20 --- udp --- (1026-1027)
61.152.158.151 --- 20 --- udp --- (1026-1027)
218.66.104.140 --- 18 --- udp --- (1026-1027)
222.88.173.5 ------- 15 --- udp --- (1026)
61.53.154.89 ------- 15 --- udp --- (1026-1027)
61.152.158.124 ---- 14 --- udp --- (1026-1027)
61.53.154.93 ------- 14 --- udp --- (1026-1027)
61.172.246.74 ----- 14 --- udp --- (1026-1027)
218.66.104.139 ---- 13 --- udp --- (1026-1027)
61.152.158.123 ---- 13 --- udp --- (1026-1027)
218.83.153.58 ------ 12 --- udp --- (1026)
70.85.177.130 ------ 12 --- udp --- (1026-1027)
222.136.251.121 --- 11--- udp --- (1026-1027)
61.152.239.134 ----- 11 --- udp --- (1026-1027)
61.152.158.150 ----- 11 --- udp --- (1026-1027)
61.152.158.111 ---- 10 --- udp --- (1026-1027)

(Hmmm! Is there a way to post a nicely formatted table?)

Anyway, it seems obvious to me that nobody in China has any business hitting my ports 1026 & 1027 with 140 udp packets. I rather suspect that the IP's are spoofed anyway, and that simply firewalling out those specific ones will not gain me much.

I just installed PortSentry, but I'm not sure it'll do anything since the probes are (evidently) being stopped by the firewall.

What's my next step ... or should I even be concerned?
 
Old 06-10-2005, 08:44 PM   #2
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
I'd be concerned if it stopped - it means your Internet connection is down.

Seriously, I've been seeing the same activity for years. As long as you keep your software current, you've got nothing to worry about.

PS- use a code block to post formatted information.
 
Old 06-10-2005, 08:54 PM   #3
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Original Poster
Rep: Reputation: 62
I find it interesting that they're hitting ports 1026 & 1027. PortSentry's defaults are to watch any port below 1025. Would it be a good idea to raise that portwatch number to 1028.
 
Old 06-10-2005, 09:07 PM   #4
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
Don't bother; the ports don't relate to Linux services, and so aren't normally open. It's just Microsoft-targeting spam looking for an unsuspecting victim.
 
Old 06-10-2005, 09:22 PM   #5
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Original Poster
Rep: Reputation: 62
OK. After reading the links you posted, and following a couple there, I solved the problem. Told my firewall to quit logging hits on 1026 & 1027.
 
Old 06-11-2005, 06:57 PM   #6
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Original Poster
Rep: Reputation: 62
OK. Day 2.

Interesting issues (to me) this time are people who came back to visit again ... Seems to eliminate pure randomness. I've added a few items, Visit Nbr., Geograhical source of probe, and Apps (or Trojans) known to use this port. I've also had a few probes at Ports 80 & 8080Should be no issue there as long as I'm not running a www. server, right?

Code:
Visits	From IP	Hits	Prtcl	Ports	Origin	Apps (Trojan Info)
1	201.6.221.8	87	tcp	(6652)	Brazil	
2	201.6.221.8	60	tcp	(6652)	Brazil	
1	220.72.5.105	1	tcp	(1433)	Korea	Ms-sql-s (SQL Snake)
2	220.72.5.105	1	tcp	(3306)	Korea	MySQL
1	222.34.5.45	1	udp	(1434)	China	Ms-sql-s (SQL Slammer)
2	222.34.5.45	2	udp	(1434)	China	Ms-sql-s (SQL Slammer)
1	65.244.31.30	1	udp	(6346)	New York (UUNet)	Gnutella
2	65.244.31.30	2	udp	(6346)	New York (UUNet)	Gnutella
1	68.34.44.68	1	tcp	(1433)	Pasadena, MD (Comcast)	Ms-sql-s (SQL Snake)
2	68.34.44.68	2	tcp	(1433)	Pasadena, MD (Comcast)	Ms-sql-s (SQL Snake)
Mr. Brazil has got to go. I guess the best way to do that is add his IP to /etc/hosts.deny? I didn't find anything about that port, but I suspect it's a p2p filesharing program of some kind. For whatever reason, he's locked in on me, and that makes me uncomfortable.

I assume the sql ports are people who's machines are infected with the identified worms, looking for companionship. Shouldn't be a problem I don't think, since I don't run MSSQL or MySql. I do run Postgres, tho, but it's port is not open to incoming, only outgoing. Nobody hit that one yet anyway.

Gnutella doesn't concern me as long as I don't see the same IPs too often (like Mr Brazil).

The Comcast probes bother me slightly. That's my ISP. Are they checking up on me, or what. Had a few probes from them on Port 80, as well.

Any commentary appreciated. I am learning.
 
Old 06-12-2005, 06:06 PM   #7
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
Quote:
Originally posted by rickh
OK. Day 2.

Interesting issues (to me) this time are people who came back to visit again ... Seems to eliminate pure randomness.
It's unlikely it's random; more likely to be an infected set of machines. Machines frequently get multiply infected, as I can attest from cleaning 50+ nasties out of a single family member machine.

Quote:
I've added a few items, Visit Nbr., Geograhical source of probe, and Apps (or Trojans) known to use this port. I've also had a few probes at Ports 80 & 8080Should be no issue there as long as I'm not running a www. server, right?
Even if you are running a web server, if the firewall doesn't permit access to those IP addresses, it doesn't matter.

Quote:
Mr. Brazil has got to go. I guess the best way to do that is add his IP to /etc/hosts.deny? I didn't find anything about that port, but I suspect it's a p2p filesharing program of some kind. For whatever reason, he's locked in on me, and that makes me uncomfortable.
If the port is firewalled or has no listening application, no further action is necessary.

Quote:
I assume the sql ports are people who's machines are infected with the identified worms, looking for companionship. Shouldn't be a problem I don't think, since I don't run MSSQL or MySql. I do run Postgres, tho, but it's port is not open to incoming, only outgoing. Nobody hit that one yet anyway.

Gnutella doesn't concern me as long as I don't see the same IPs too often (like Mr Brazil).

The Comcast probes bother me slightly. That's my ISP. Are they checking up on me, or what. Had a few probes from them on Port 80, as well.

Any commentary appreciated. I am learning.
It's likely other Comcast users are infected. That's not to say that your ISP doesn't check on you; they simply don't need to probe your ports. Remember that your traffic runs thru their equipment, so they can know (if they are interested), every port that you have active.
 
  


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
Window Manager (Beating a dead horse!) spaceballs Slackware 14 04-17-2005 02:34 PM
Should I be concerned? LinuxBAH Linux - Security 8 02-07-2004 12:24 PM
should i be concerned Zaius Linux - Newbie 3 01-26-2004 02:40 PM
Beating myself over the head with Public Key Authentcation TruckStuff Linux - Security 5 03-29-2003 11:16 AM
Beating windows performance with KDE3. Need opinions bkeating Linux - Newbie 22 05-25-2002 01:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

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