netstat -tnp
The list of listening port is from nmap, i use nmap in my own machine, that is , i nmaped localhost
This is from netstat:
tcp 0 0 *:printer *:* LISTEN
I just wanna why the printer port is listening?
Actually, I've no printer linked to my machine.
Here i've a question, what's the port for? Is it listening my printer or listening someone on the network to share my printer?
]]>Where is that information from? It looks like nmap, and nmap isn't very accurate when it comes to identifying remote services (it just parses /etc/services). There is no printer-related tool in Arch (that I know of) that listens on 515. Use netstat to find out what program is listening.
I think lpd listens on 515 (just like CUPS listens on 631), but I may be mistaken. lpd is part of lprng package. Fluke, do you remember installing this and adding it to the list of running daemons in /etc/rc.conf it seems like it would've been done explicitly? If you're not using lprng, I suppose you can remove the package and/or stop the dameon (/etc/rc.d/lpd) from running.
]]>PORT STATE SERVICE
21/tcp open ftp
22/tcp open ssh
80/tcp open http
515/tcp open printerBut I don't want it open.
From where you are running NMAP, the same machine??? If is from outside just drop (iptables) the port.
]]>But I don't want it open.
]]>