[CentOS] Cannot open port 631 for Cups printer sharing
b.j. mcclure
keepertoad at bellsouth.net
Mon Mar 2 16:20:11 UTC 2009
I have been trying to set up printer sharing on the LAN.All machines are
CentOS 5.2 fully updated. The problem server is a fresh build. The box
it is replacing worked fine for many months.
The problem appears to be a closed port 631 on the new box. iptables
and ip6tables are stopped as shown by the output below. To confirm I
was using nmap correctly I ran it against the old server first which
shows 631 open. No matter what I do to the new box (192.168.2.205) 631
remains closed. I was running it on the new box via ssh which I think
eleminates any swithc/router issues.
Any thoughts gladly accepted. This must be something simple/stupid I
have overlooked. Not much hair left to pull out. ;-/
B.J.
[root at office bmcclure]# ssh 192.168.2.200
root at 192.168.2.200's password:
Last login: Sat Feb 21 17:39:51 2009
[root at fileserver ~]# nmap -sT -p 631 -PT 192.168.2.200
Starting Nmap 4.20 ( http://insecure.org ) at 2009-03-02 11:00 EST
Interesting ports on 192.168.2.200:
PORT STATE SERVICE
631/tcp open ipp
Nmap finished: 1 IP address (1 host up) scanned in 0.121 seconds
[root at fileserver ~]# nmap -sT -p 631 -PT 192.168.2.205
Starting Nmap 4.20 ( http://insecure.org ) at 2009-03-02 11:01 EST
Interesting ports on 192.168.2.205:
PORT STATE SERVICE
631/tcp closed ipp
MAC Address: 00:17:31:EC:0B:2D (Asustek Computer)
Nmap finished: 1 IP address (1 host up) scanned in 0.185 seconds
[root at fileserver ~]# exit
logout
Connection to 192.168.2.200 closed.
[root at office bmcclure]# ssh 192.168.2.205
root at 192.168.2.205's password:
Last login: Mon Mar 2 06:52:36 2009 from house.keepertoad.com
[root at webserver ~]# service iptables stop
[root at webserver ~]# service ip6tables stop
[root at webserver ~]# iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
[root at webserver ~]# ip6tables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
[root at webserver ~]# nmap -sT -p 631 -PT 127.0.0.1
Starting Nmap 4.11 ( http://www.insecure.org/nmap/ ) at 2009-03-02 11:03
EST
Interesting ports on localhost (127.0.0.1):
PORT STATE SERVICE
631/tcp closed ipp
Nmap finished: 1 IP address (1 host up) scanned in 0.031 seconds
[root at webserver ~]# service cups status
cupsd (pid 6941) is running...
[root at webserver ~]# nmap -sT -F -PT 127.0.0.1
Starting Nmap 4.11 ( http://www.insecure.org/nmap/ ) at 2009-03-02 11:09
EST
Interesting ports on localhost (127.0.0.1):
Not shown: 1233 closed ports
PORT STATE SERVICE
22/tcp open ssh
25/tcp open smtp
111/tcp open rpcbind
443/tcp open https
636/tcp open ldapssl
2049/tcp open nfs
Nmap finished: 1 IP address (1 host up) scanned in 0.077 seconds
[root at webserver ~]#
CentOS 5.2, Linux 2.6.18-92.1.22.el5 x86_64 10:54:59 up 17:48, 1 user,
load average: 0.34, 0.23, 0.09
More information about the CentOS
mailing list