LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-17-2002, 05:21 AM   #1
SchwipSchwap
Member
 
Registered: Aug 2002
Distribution: Suse8.0, Mandrake, Knoppix
Posts: 92

Rep: Reputation: 15
Question Stop Portmaping NFS ...


I wanna stop all these NFS and RPC-Services, to
allow somebody to mount my harddisk or control programs
(X-Server). Need help to block all these things coming from Outside.

THX SchwipSchwap
 
Old 09-17-2002, 10:06 AM   #2
born4linux
Senior Member
 
Registered: Sep 2002
Location: Philippines
Distribution: Slackware, RHEL&variants, AIX, SuSE
Posts: 1,127

Rep: Reputation: 49
use ipchains/iptables or tcwrappers. Also, disable or uninstall the services that you don't want (i.e nfs).

If you are using Red Hat, use lokkit. it has a predefined set of rules for ipchains that automatically disables NFS and remote X services.

Try this if you want to use iptables:

http://firestarter.sourceforge.net/

It's a gui based fwall config program.
 
Old 09-17-2002, 11:06 AM   #3
jetblackz
Member
 
Registered: Mar 2002
Location: Debian Galaxy
Distribution: Debian
Posts: 711

Rep: Reputation: 30
Or you could always uninstall them.

That's what I always do right after install, along with many other services the regular Joe never used.
 
Old 09-18-2002, 09:25 AM   #4
SchwipSchwap
Member
 
Registered: Aug 2002
Distribution: Suse8.0, Mandrake, Knoppix
Posts: 92

Original Poster
Rep: Reputation: 15
uninstalling nfs, nfsserver, sendmail, start the
X-Server with startx -- nolisten tcp and block tcp 111
should close all, or?

PS: and listen 127.0.0.1 in sshd_config

Last edited by SchwipSchwap; 09-18-2002 at 09:26 AM.
 
Old 09-18-2002, 11:43 AM   #5
jetblackz
Member
 
Registered: Mar 2002
Location: Debian Galaxy
Distribution: Debian
Posts: 711

Rep: Reputation: 30
Uninstall ssh, Openssh, or sshd (I don't think it's the name).

If port A isn't listening, no need to block it.
 
Old 09-18-2002, 07:53 PM   #6
tied2
Member
 
Registered: Jun 2002
Location: Florida
Distribution: Redhat, FreeBSD, FC 6
Posts: 220

Rep: Reputation: 30
You don't have to uninstall evey thing you don't use just do this from a shell ntsysv --level 456 and take out what you don't want and reboot you can shut down portmapping from there along with a host of other programs you don't need running.
 
  


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
NFS client = Linux, NFS server = Mac OS X Tiger --> Hell of a problem make Linux - Networking 9 03-10-2006 06:16 AM
How do I stop services from restarting after I stop them? M$ISBS Linux - Software 3 10-27-2005 09:13 PM
nfs client on knoppix 3.9 - problem mounting nfs drive Rod Butcher Linux - Networking 1 09-21-2005 05:18 AM
nfs client should it use tcp or udp to nfs serve rportmapper andersonas Linux - Networking 2 06-30-2004 01:05 PM
portmaping FredrikN Linux - Networking 4 07-10-2002 01:23 PM


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