LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   Redhat fresh install port 1025 (https://www.linuxquestions.org/questions/linux-security-4/redhat-fresh-install-port-1025-a-291512/)

eyewittness 02-17-2005 03:19 PM

Redhat fresh install port 1025
 
Hi all,
I have a redhat box that has port 1025 open.

Starting nmap V. 3.00 ( www.insecure.org/nmap/ )
Interesting ports on mike (127.0.0.1):
(The 1595 ports scanned but not shown below are in state: closed)
Port State Service
21/tcp open ftp
22/tcp open ssh
25/tcp open smtp
80/tcp open http
1025/tcp open NFS-or-IIS
10000/tcp open snet-sensor-mgmt


I closed port 1024 and sun rpc by doing:
chkconfig --level 0123456 portmap off
chkconfig --level 12345 nfslock off
service nfslock stop

now i want to disable port 1025.
if i do this:

lsof -iTCP:1025
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
xinetd 1640 root 5u IPv4 2275 TCP mike:1025 (LISTEN)

I see it's xinetd. how can i fix it?

Capt_Caveman 02-17-2005 11:06 PM

Use 'chkconfig --list | more' to give you a listing of all the service states. At the bottom of the output should be a subsection of all the xinetd-based services. Just see which ones xinetd is running and shut them off with chkconfig (chkconfig <service_name> off). You can also manually edit the files in the /etc/xinetd.d/ subdirectory and comment out whichever service file you want to shut off, but just using chkconfig is easier.

eyewittness 02-18-2005 08:42 AM

Ok i will try that but with the more option it gives more ok, cause i always do chkconfig --list...

eyewittness 02-18-2005 11:02 AM

someone knows wich prog use port 1025 ?

eyewittness 02-18-2005 11:23 AM

i just killed the xinet.rd service and restarted it.. the port was gone :)


All times are GMT -5. The time now is 09:23 PM.