Hi there,
I have set up jail and enable CUPS in /etc/rc.conf
The following command indicates cupsd is running:
I entered the jail and edited the configuration to share cups to whole LAN:
Then I enter http://192.168.31.5:631 (the ip of the jail) on another PC but can not open the webpage, even in the jail, fetch http://127.0.0.1:631/index.html shows nothing, also the following command shows no tcp4
Once change Port 631 back to Listen localhost:631, the index.html can fetchable in the jail.
What's wrong?
I have set up jail and enable CUPS in /etc/rc.conf
The following command indicates cupsd is running:
Code:
# sockstat | grep cups
root cupsd 16347 4 tcp4 127.0.0.1:631 *:*
root cupsd 16347 6 stream /var/run/cups/cups.sock
I entered the jail and edited the configuration to share cups to whole LAN:
Code:
# vi /usr/local/etc/cups/cupsd.conf
#Listen localhost:631
Port 631
# Restrict access to the server...
<Location />
Order allow,deny
Allow 192.168.31.*
</Location>
# Restrict access to the admin pages...
<Location /admin>
AuthType Default
Require user @SYSTEM
Order allow,deny
Allow 192.168.31.*
</Location>
Then I enter http://192.168.31.5:631 (the ip of the jail) on another PC but can not open the webpage, even in the jail, fetch http://127.0.0.1:631/index.html shows nothing, also the following command shows no tcp4
Code:
# sockstat | grep cups
root cupsd 16347 6 stream /var/run/cups/cups.sock
Once change Port 631 back to Listen localhost:631, the index.html can fetchable in the jail.
What's wrong?