Hi John, Here's the results:
# lsof -i :21 returns nothing I did try to connect to this port: *#ftp myserver* Connected to xx.xx.xx ( xx.xx.xx.xx). 421 Service not available, remote server has closed connection *Does not say any welcome message.* *Does not give me prompt. * It's weird. -- Iris On Mon, Jun 8, 2009 at 9:21 AM, John Peter Loh <[email protected]> wrote: > You can use lsof to find the application and other details that's > bound to the port. > > #lsof -i :21 > > Did you try connecting to the FTP port just to see the welcome message? > > On Mon, Jun 8, 2009 at 09:12, Iris Lames<[email protected]> wrote: > > Hi, > > > > I have a squid with ldap auth; dansguardian; sarg and httpd running on > > CentOS 5.3. I'm worried when I nmap this server and found out that port > 21 > > (ftp) is open. I dont install any ftp application. Any ideas what may > have > > caused it and how could i close it? Please help. > > > > #nmap myserver > > PORT STATE SERVICE > > 21/tcp open ftp > > 22/tcp filtered ssh > > 80/tcp filtered http > > 389/tcp filtered ldap > > 443/tcp filtered https > > 993/tcp filtered imaps > > 8080/tcp filtered http-proxy > > > > #rpm -qa | grep ftp > > answer none > > > > #netstat -nap > > [r...@pusit ~]# netstat -aunt | grep LISTEN > > tcp 0 0 0.0.0.0:8080 0.0.0.0:* > > LISTEN > > tcp 0 0 0.0.0.0:3128 0.0.0.0:* > > LISTEN > > tcp 0 0 :::80 :::* > > LISTEN > > tcp 0 0 :::22 :::* > > LISTEN > > tcp 0 0 :::443 :::* > > LISTEN > > tcp 0 0 :::8443 :::* > > LISTEN > > > > > > # chkconfig --list | grep 3:on > > crond 0:off 1:off 2:on 3:on 4:on 5:on 6:off > > dansguardian 0:off 1:off 2:on 3:on 4:on 5:on 6:off > > haldaemon 0:off 1:off 2:off 3:on 4:on 5:on 6:off > > httpd 0:off 1:off 2:on 3:on 4:on 5:on 6:off > > iptables 0:off 1:off 2:on 3:on 4:on 5:on 6:off > > kudzu 0:off 1:off 2:off 3:on 4:on 5:on 6:off > > lvm2-monitor 0:off 1:on 2:on 3:on 4:on 5:on 6:off > > mcstrans 0:off 1:off 2:on 3:on 4:on 5:on 6:off > > messagebus 0:off 1:off 2:off 3:on 4:on 5:on 6:off > > netfs 0:off 1:off 2:off 3:on 4:on 5:on 6:off > > network 0:off 1:off 2:on 3:on 4:on 5:on 6:off > > restorecond 0:off 1:off 2:on 3:on 4:on 5:on 6:off > > squid 0:off 1:off 2:on 3:on 4:on 5:on 6:off > > sshd 0:off 1:off 2:on 3:on 4:on 5:on 6:off > > syslog 0:off 1:off 2:on 3:on 4:on 5:on 6:off > > > > #service xinetd status > > xinetd: unrecognized service > > > > > > Please help. > > > > Thanks. > > > > -- > > Iris > > > > _________________________________________________ > > Philippine Linux Users' Group (PLUG) Mailing List > > http://lists.linux.org.ph/mailman/listinfo/plug > > Searchable Archives: http://archives.free.net.ph > > > _________________________________________________ > Philippine Linux Users' Group (PLUG) Mailing List > http://lists.linux.org.ph/mailman/listinfo/plug > Searchable Archives: http://archives.free.net.ph >
_________________________________________________ Philippine Linux Users' Group (PLUG) Mailing List http://lists.linux.org.ph/mailman/listinfo/plug Searchable Archives: http://archives.free.net.ph

