LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-20-2014, 07:17 AM   #1
Michaelx
Member
 
Registered: Jun 2006
Distribution: Ubuntu(EOL) e.g. 10.04/9.10/6.10, Crunchbang 10, SuSe 9.x, Slackware 10.x
Posts: 62

Rep: Reputation: 15
Cool unwanted connections


how do i verify, which programs are establishing unwanted connections ?


additional infos:
installed ufw (firewall)
nethogs (always shows a unkown program from root) (is that ok, or normal ?)

ip's like Akamai Technology (Akamai B.V) in England,
or 78.140.187.143

thank you.

by the way i am using Ubuntu 10.04 (Codename Lucid-Lynx)
 
Old 06-20-2014, 07:44 AM   #2
Guttorm
Senior Member
 
Registered: Dec 2003
Location: Trondheim, Norway
Distribution: Debian and Ubuntu
Posts: 1,453

Rep: Reputation: 446Reputation: 446Reputation: 446Reputation: 446Reputation: 446
Hi

Try this command:

lsof -i

It lists all open connections with command name.
 
Old 06-20-2014, 09:04 AM   #3
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,649
Blog Entries: 4

Rep: Reputation: 3934Reputation: 3934Reputation: 3934Reputation: 3934Reputation: 3934Reputation: 3934Reputation: 3934Reputation: 3934Reputation: 3934Reputation: 3934Reputation: 3934
Also: port-numbers greater than 1024 can be opened by any program, without requiring special privileges. Many programs do establish outbound connections using randomly-chosen port numbers. Also, many services "rendezvous" using a known (privileged) port-number, but only use this connection to establish the particulars for a subsequent conversation which takes place through a non-privileged, randomly chosen port. The connection remains until the parties are finished talking, then it is torn-down. There can be a lot more of this activity than you might think, and a lot more "churn" than you might expect.

Basically, you should find that all of the connections which you see are "plausible." It should make sense to you that the program in question exists, and that it would be talking to that particular party, and that it should be transferring such amount of traffic. In the case of low port-numbers, less than 1024, you should be able to account for each and every one, and you should not have any of these ports open "gratuitously."

If you need to have persistent connections to another computer, then I happen to be a big fan of VPN. Set up certificates (not PSKs = passwords!) on both ends so that each system can uniquely recognize the other(s), and shovel your traffic through that tunnel. Most routers have a hardware implementation of it. To authorized users, VPN is invisible. To everyone else, it's a steel door tightly shut. With a hardware implementation there is no delay in speed.

Last edited by sundialsvcs; 06-20-2014 at 09:11 AM.
 
Old 06-20-2014, 10:04 AM   #4
Michaelx
Member
 
Registered: Jun 2006
Distribution: Ubuntu(EOL) e.g. 10.04/9.10/6.10, Crunchbang 10, SuSe 9.x, Slackware 10.x
Posts: 62

Original Poster
Rep: Reputation: 15
thank you very much, for your guidance, and the supplied information...
 
  


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
unwanted shutdown 4ld3v Linux - Hardware 4 04-12-2013 11:28 PM
Help with unwanted connections from port 80 LuggerHouse Linux - Security 2 03-06-2008 10:40 AM
unwanted data leveex Slackware 5 01-05-2007 02:21 AM
Unwanted link mat_uk111 SUSE / openSUSE 1 05-18-2006 09:04 PM
Unwanted mail sanjibgupta Linux - General 0 07-08-2004 12:07 AM

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

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