You are not logged in.

#1 2006-08-01 15:03:06

fluke
Member
From: Shaoguan Univ., PRC
Registered: 2005-08-12
Posts: 241
Website

How to close my listening printer port?

PORT    STATE SERVICE
21/tcp  open  ftp
22/tcp  open  ssh
80/tcp  open  http
515/tcp open  printer

But I don't want it open.

Offline

#2 2006-08-01 16:22:24

brain0
Developer
From: Aachen - Germany
Registered: 2005-01-03
Posts: 1,382

Re: How to close my listening printer port?

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.

Offline

#3 2006-08-01 17:32:37

CarLost
Member
From: Chile
Registered: 2004-12-08
Posts: 35
Website

Re: How to close my listening printer port?

fluke wrote:

PORT    STATE SERVICE
21/tcp  open  ftp
22/tcp  open  ssh
80/tcp  open  http
515/tcp open  printer

But I don't want it open.

From where you are running NMAP, the same machine??? If is from outside just drop (iptables) the port.

Offline

#4 2006-08-01 19:09:10

battra
Member
From: Earth.US.Illinois.Chicago
Registered: 2006-05-12
Posts: 71

Re: How to close my listening printer port?

brain0 wrote:

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.


"I know nothing except the fact of my ignorance."
- Socrates

Offline

#5 2006-08-02 07:35:40

fluke
Member
From: Shaoguan Univ., PRC
Registered: 2005-08-12
Posts: 241
Website

Re: How to close my listening printer port?

No, I have't install any printer-related service.

The list of listening port is from nmap, i use nmap in my own machine, that is , i nmaped localhost wink

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?

Offline

#6 2006-08-02 08:31:30

brain0
Developer
From: Aachen - Germany
Registered: 2005-01-03
Posts: 1,382

Re: How to close my listening printer port?

You could read the netstat manpage. netstat -np --listen is your friend.

Offline

#7 2006-08-02 08:38:09

user
Member
Registered: 2006-03-29
Posts: 465

Re: How to close my listening printer port?

also this too

netstat -tnp

http://www.grc.com or http://firestarter.sf.net


I removed my sig, cause i select the flag, the flag often the target of enemy.

SAR brain-tumor
[img]http://img91.imageshack.us/img91/460/cellphonethumb0ff.jpg[/img]

Offline

#8 2006-08-02 14:51:14

fluke
Member
From: Shaoguan Univ., PRC
Registered: 2005-08-12
Posts: 241
Website

Re: How to close my listening printer port?

Thank. Now I know it is my xinetd listening the port 515 wink

Offline

Board footer

Powered by FluxBB