LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   open ports (https://www.linuxquestions.org/questions/linux-security-4/open-ports-283688/)

jbkerr 01-29-2005 10:03 AM

open ports
 
Hello,

I am a newb with linux but am trying out it for a while a I am stuck on debian. i setup a proftpd server and it works great and that is all i want it for. I ran a portscan on it from my widows machine and it was showing that smtp and pop3 were open. I did remove exim4 from the machine and from the runlevels. I also did a netstat -tan to verify that nothing is listening on 25

from a windows box I can telnet to the ip /port25/110 and it will look like it is connecting but I see not text on te screen, just black. it acts differently then when i connect to another port and like 112 or something like that where it will say connect failed.

basicaaly are both 110/25 open? and what is using them? This was a plane jane debian install with just proftpd added.

maxut 01-29-2005 10:36 AM

fuser -vn tcp 25
will show u what is working on local "tcp 25" port, actually just care about PID of that program. after that u can do
ps aux |grep PID
to see more details.

good luck.

jbkerr 01-29-2005 10:51 AM

Thanks maxut. i have that a try but it did not bring up anything at all. but my portscan still says that they are open.

maxut 01-29-2005 11:16 AM

interesting. if nothing listens to tcp 25, u should get "connection refused" message at client side while trying to telnet that port. at least it works like that here (linux to linux). maybe windoze doesnt work like that. maybe something wrong with your portscan or network (firewall) configuration at linux side.

edit: u must have root rights, when u use fuser. sorry i forgot to tell about that before.

good luck

jbkerr 01-31-2005 08:45 AM

hello again. It must have been something with the port scanner i was using. I ran nmap and it reports that only 21 is open.

Thank you.


All times are GMT -5. The time now is 12:52 PM.