LinuxQuestions.org
Visit Jeremy's Blog.
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, 08: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, 09: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, 09: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, 09: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, 09: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, 09:16 PM   #6
rocketgo
Member
 
Registered: Oct 2003
Posts: 37

Original Poster
Rep: Reputation: 15
where


Last edited by rocketgo; 11-10-2003 at 09:19 PM.
 
Old 11-10-2003, 09: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 09:22 PM.
 
Old 11-10-2003, 09: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, 11: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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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


All times are GMT -5. The time now is 03:46 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration