LinuxQuestions.org
Review your favorite Linux distribution.
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 12-07-2004, 05:10 AM   #1
dannyk1
Member
 
Registered: Aug 2004
Location: Geelong, Vic Australia
Distribution: Gentoo, Ubuntu,and sometimes something from billy gates (when Im desperate)
Posts: 188

Rep: Reputation: 31
telnet worries


After nmap ing my linux box I found these ports were open

22/tcp open ssh
111/tcp open rpcbind
1030/tcp open iad1


If I type
telnet localhost 22 or 111 or 1030

I get

Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
SSH-1.99-OpenSSH_3.6.1p2


As I don't know much about telnet, my question is does this mean anyone can connect to my computer this way and do damage??

I am running iptables blocking pretty much everything.

Am I just getting a connection as it is my computer??
 
Old 12-07-2004, 05:22 AM   #2
ToniT
Senior Member
 
Registered: Oct 2003
Location: Zurich, Switzerland
Distribution: Debian/unstable
Posts: 1,357

Rep: Reputation: 47
If you nmap your computer from your computer, you don't necessarily see correct results; in general, you see the services that are available locally to your machine. To check the connections available from outside, you need to run nmap from outside.

It is generally safe to have ssh/22 open. This is the most popular way to connect to your machine remotedly.

If there is a rpcbind running in that port, I would keep that closed, as well as unknown services, unless you have good reason not to.
 
Old 12-10-2004, 09:27 PM   #3
zatriz
Member
 
Registered: Aug 2003
Location: Seattle, Wa
Distribution: Fedora,Trustix,Debian
Posts: 290

Rep: Reputation: 30
Also Regardless of most services that you have running on your system
Anyone will still be able to telnet into your services, this merely means that the service is active. For most of the time if your service is available local chances are its available global too. Unless you have manually set it up to be available locally only or its firewalled off.
But all in all disable 111, and 1030
you can try these commands they may give you a better understanding of the processes:


lsof -i tcp:111
lsof -i tcp:1030 etc
netstat -n
fuser -vu 111/tcp
fuser -vu 1030/tcp
 
Old 12-11-2004, 03:00 AM   #4
dannyk1
Member
 
Registered: Aug 2004
Location: Geelong, Vic Australia
Distribution: Gentoo, Ubuntu,and sometimes something from billy gates (when Im desperate)
Posts: 188

Original Poster
Rep: Reputation: 31
Ive been trying to figure out how to close these unwanted ports for a while now but having no luck!

Do I have to close the programs that are using them?? eg stop rpcbind ??

If that is the case, how do I stop fedora reloading it automatically when I restart next time?

Or is there a line I can add to Iptables to stop this?

Thanks for the help

(ps Im still pretty new to linux so exact commands would be really good!)
 
Old 12-11-2004, 06:07 AM   #5
Capt_Caveman
Senior Member
 
Registered: Mar 2003
Distribution: Fedora
Posts: 3,658

Rep: Reputation: 69
Use chkconfig to get an idea of what services and daemons are started at boot as well as to toggle them on/off. Use the service command to turn currently running serivces/daemons on or off. So:

To see what starts at boot:
chkconfig --list
That should give you a list of all the applications and whether they're on or off at a given runlevel. To just see what is turned on:
chkconfig --list | grep on

To then turn an application off at boot:
chkconfig <service_name> off

To stop a currently running daemon use:
service <service_name> stop

So to shutoff rpcbind (aka portmap), do:
chkconfig portmap off
service portmap stop
 
Old 12-11-2004, 06:10 AM   #6
zatriz
Member
 
Registered: Aug 2003
Location: Seattle, Wa
Distribution: Fedora,Trustix,Debian
Posts: 290

Rep: Reputation: 30
on your menu in fedora go to system settings, server settings, services
there you have a list of each thing that is loading on your computer find rpc and just uncheck it and file save and reboot.
or run ntsysv as root and just uncheck what ever you dont want and hit ok
 
Old 12-13-2004, 01:36 AM   #7
dannyk1
Member
 
Registered: Aug 2004
Location: Geelong, Vic Australia
Distribution: Gentoo, Ubuntu,and sometimes something from billy gates (when Im desperate)
Posts: 188

Original Poster
Rep: Reputation: 31
Thanks guys

saved me a lot of worries

Danny
 
  


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
telnet worries dannyk1 Linux - Software 0 12-07-2004 05:02 AM
ntfs worries and woes iouzero Linux - Newbie 3 06-16-2004 10:33 AM
worries about upgrades wedgeworth Linux - Software 3 04-15-2004 11:03 AM
worries about upgrades (apache) wedgeworth Linux - Software 1 04-13-2004 10:58 AM
notebook (compaq) worries hombre2k1 Linux - General 6 04-06-2003 08:05 PM

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

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