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 - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-10-2003, 07:39 PM   #1
rocketgo
Member
 
Registered: Oct 2003
Posts: 37

Rep: Reputation: 15
how to im stumped


i cant figure out how to close these ports




25/tcp open smtp
111/tcp open sunrpc
631/tcp open ipp
879/tcp open unknown
1024/tcp open kdm
1025/tcp open NFS-or-IIS
3306/tcp open mysql
6000/tcp open X11


any help would be welcome thanks
 
Old 11-10-2003, 08:06 PM   #2
LogicG8
Member
 
Registered: Jun 2003
Location: Long Island, NY
Distribution: Gentoo Unstable (what a misnomer)
Posts: 380

Rep: Reputation: 30
Are you running xinetd or inetd?

As for X
edit your startx script

which startx

will give you the location

near the top you will see something like

defaultserverargs=""

change it to look like

defaultserverargs="-nolisten tcp"
 
Old 11-10-2003, 08:08 PM   #3
rocketgo
Member
 
Registered: Oct 2003
Posts: 37

Original Poster
Rep: Reputation: 15
ssh

is there a command in ssh that can do it
 
Old 11-10-2003, 08:13 PM   #4
LogicG8
Member
 
Registered: Jun 2003
Location: Long Island, NY
Distribution: Gentoo Unstable (what a misnomer)
Posts: 380

Rep: Reputation: 30
Any non-gui text editor will do it.
Try pico or nano. My favorite "easy" editor is joe.

nano `which startx`

will get you going.
notice that those are back ticks not apostrophes.
 
Old 11-10-2003, 08:15 PM   #5
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
use iptables to block all ports you dont need open.
blocking is even more secure than just closed.
 
Old 11-10-2003, 08:16 PM   #6
rocketgo
Member
 
Registered: Oct 2003
Posts: 37

Original Poster
Rep: Reputation: 15
where


Last edited by rocketgo; 11-10-2003 at 08:19 PM.
 
Old 11-10-2003, 08:19 PM   #7
rocketgo
Member
 
Registered: Oct 2003
Posts: 37

Original Poster
Rep: Reputation: 15
now i want to keep open port 80 and port 22 and port 10000. will this close them

Last edited by rocketgo; 11-10-2003 at 08:22 PM.
 
Old 11-10-2003, 08:25 PM   #8
rocketgo
Member
 
Registered: Oct 2003
Posts: 37

Original Poster
Rep: Reputation: 15
iptables

how would i use iptables to block the ports
 
Old 11-10-2003, 10:10 PM   #9
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
iptables is the linux firewall.
search this forum, there are many many many posts and resources.
 
  


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
Kernel has me stumped oneandoneis2 Linux - General 1 11-06-2005 04:49 PM
I've finally been stumped. glorb Linux - Newbie 12 07-01-2004 05:58 AM
error, stumped brain007 Linux - General 3 09-15-2003 10:45 AM
Ready to get REALLY stumped? Omni Linux - Networking 3 09-14-2003 11:08 PM
really has me stumped! brunogartner Linux - Newbie 4 06-30-2003 05:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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