LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-30-2002, 12:48 AM   #1
psyklops
Member
 
Registered: Jan 2002
Location: Los Angeles
Distribution: RedHat 9.0
Posts: 216

Rep: Reputation: 30
Closing port 111


Im trying to close port 111 and others...

I foudn this at O Rielly:

I can disable the sunrpc and printer daemons by becoming the superuser and adding the following lines to /etc/rc.conf:

portmap_enable="NO"
lpd_enable="NO"

He was using Free BSD as an example. Im using RH 7.2 and cant find rc.conf in /etc. I have about everyother rc file but cant find this one. Must be called somethng different in Linux. Where could I find this file to edit?
 
Old 04-30-2002, 03:42 AM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
To close the port you should stop the service at this port or have it firewaled. I haven't heard about something similar like the commands you'v mentioned in Linux.
 
Old 04-30-2002, 03:21 PM   #3
kill-hup
Member
 
Registered: Aug 2000
Location: NY - USA
Distribution: Slackware
Posts: 109

Rep: Reputation: 15
Try chkconfig

In Red Hat, you can either edit the contents of the /etc/rc.d/rc[0-6].d directories by hand or use the supplied "chkconfig" command. The scripts located in those dirs control which process get started/stopped at which run levels (for instance, run level 3 for multi-user, non-x or level 5 for multi-user, x-desktop).

The command "chkconfig --list | grep on" will show you which services are enabled for which run levels. To completely disable a service, run "chkconfig --del <name>". You can also specify certain levels via "chkconfig --level <levels> <name> [on|off]"

I know that's a lot of info, but "man chkconfig" should help if you get stuck/confused. You could also use ipchains/tables firewall rules to block outside connections to these ports, but if you don't need them, shut 'em off!
 
Old 05-01-2002, 12:53 AM   #4
psyklops
Member
 
Registered: Jan 2002
Location: Los Angeles
Distribution: RedHat 9.0
Posts: 216

Original Poster
Rep: Reputation: 30
Kill HUP, god bless your soul! Ive been looking for something like this! Now I know how ot close the services on ports! Ha! This is by far the best way to tighten your linux box if your just starting out and dont know how to make rules for ipchains.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
blocking port 111 wedgeworth Linux - Newbie 1 04-19-2004 01:56 PM
portsentry 111 port not binding saag Linux - Security 4 03-19-2004 09:40 AM
port 111 - firewall question taz76 Linux - Networking 5 04-04-2003 03:04 PM
sunrpc port 111 MrJoshua Linux - General 4 12-20-2002 03:47 AM
scan port at 111 is open.... Qebex Linux - Security 5 09-21-2002 06:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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