services vs firewall
Amadeus W.M.
amadeus84 at verizon.net
Fri Jul 12 03:41:38 UTC 2013
On Fri, 12 Jul 2013 11:09:15 +0800, Ed Greshko wrote:
> On 07/12/13 10:15, Amadeus W.M. wrote:
>> So the service is enabled and the port isn't? What's the point of
>> enabling services if it doesn't open the appropriate port? An nmap scan
>> from another machine shows
>>
>> 111 tcp open 631 tcp closed 2049 tcp closed
>>
>> Could someone help me understand what's going on? How come the
>> portmapper (111) is open and 2049 is not? And what do I have to do to
>> actually open ports 2049 and 631?
>
> One question..... Is the nfs server running?
>
Thanks, good catch! I too figured it wasn't running because nmap reports
closed if the port is open, but nothing's listening on it. So I guess the
firewall configuration survived a reboot, but starting nfs didn't. So
this is needed:
systemctl enable nfs-server.service
Now on to printing.
43) root:~> systemctl status cups.service
cups.service - CUPS Printing Service
Loaded: loaded (/usr/lib/systemd/system/cups.service; enabled)
Active: active (running) since Wed 2013-07-10 03:06:21 EDT; 1 day 20h
ago
Main PID: 1330 (cupsd)
CGroup: name=systemd:/system/cups.service
└─1330 /usr/sbin/cupsd -f
Jul 11 08:29:47 alpha systemd[1]: Started CUPS Printing Service.
Jul 11 08:30:09 alpha systemd[1]: Started CUPS Printing Service.
Jul 11 14:15:18 alpha systemd[1]: Started CUPS Printing Service.
Jul 11 14:15:18 alpha systemd[1]: Started CUPS Printing Service.
Jul 11 14:15:26 alpha systemd[1]: Started CUPS Printing Service.
Jul 11 14:17:00 alpha systemd[1]: Started CUPS Printing Service.
Jul 11 14:17:01 alpha systemd[1]: Started CUPS Printing Service.
Jul 11 14:17:10 alpha systemd[1]: Started CUPS Printing Service.
Jul 11 18:54:55 alpha systemd[1]: Started CUPS Printing Service.
Jul 11 18:54:55 alpha systemd[1]: Started CUPS Printing Service.
# so cups is running and I do have printers configured
44) root:~> netstat -tupan | grep cups
tcp 0 0 127.0.0.1:631 0.0.0.0:*
LISTEN 1330/cupsd
tcp6 0 0 ::1:631 :::*
LISTEN 1330/cupsd
# I turned the firewall off
45) root:~> firewall-cmd --state
not running
Yet nmap on another machine shows sshd and nfs open, but shows absolutely
nothing about port 631.
And on that same (redhat) machine, system-config-printer does not see nor
does it find any network printer.
More information about the users
mailing list