CUPS Remote-Zugriff Webinterface: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
| (12 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) | |||
| Zeile 1: | Zeile 1: | ||
| − | Standardmäßig lässt sich das CUPS-Webinterface nur vom localhost auf Port 631 bedienen | + | * Standardmäßig lässt sich das CUPS-Webinterface nur vom localhost auf Port 631 bedienen |
| + | * '''ss -lntp | grep 631''' | ||
| − | = CUPS Konfigurationsdatei bearbeiten = | + | LISTEN 0 128 127.0.0.1:631 0.0.0.0:* users:(("cupsd",pid=491,fd=9)) |
| + | LISTEN 0 128 [::1]:631 [::]:* users:(("cupsd",pid=491,fd=8)) | ||
| + | |||
| + | = Alle freischalten = | ||
| + | |||
| + | * '''cupsctl --remote-admin --remote-any --share-printers''' | ||
| + | |||
| + | = Nur eine IP-Adresse freischalten = | ||
| + | |||
| + | == CUPS Konfigurationsdatei bearbeiten == | ||
* '''vim /etc/cups/cupsd.conf''' | * '''vim /etc/cups/cupsd.conf''' | ||
| − | Listen ''' | + | ... |
| + | Listen '''192.168.56.254''':631 | ||
Listen /run/cups/cups.sock | Listen /run/cups/cups.sock | ||
| Zeile 40: | Zeile 51: | ||
# Restrict access to log files... | # Restrict access to log files... | ||
<Location /admin/log> | <Location /admin/log> | ||
| + | '''Allow 192.168.56.254''' | ||
AuthType Default | AuthType Default | ||
Require user @SYSTEM | Require user @SYSTEM | ||
| − | |||
Order allow,deny | Order allow,deny | ||
</Location> | </Location> | ||
| + | ... | ||
| + | |||
| + | == Daemon neustarten == | ||
| + | |||
| + | * '''systemctl restart cups''' | ||
| + | |||
| + | = Zugang überprüfen = | ||
| + | |||
| + | * '''ss -lntp | grep 631''' | ||
| + | |||
| + | LISTEN 0 128 0.0.0.0:631 0.0.0.0:* users:(("cupsd",pid=4247,fd=6)) | ||
| + | * Nun sollte das Webinterface vom Host mit der IP 192.168.56.254 erreichbar sein | ||
| + | |||
| + | [[Bild:cups-webinterface.png|1500px]] | ||
Aktuelle Version vom 22. Februar 2023, 11:40 Uhr
- Standardmäßig lässt sich das CUPS-Webinterface nur vom localhost auf Port 631 bedienen
- ss -lntp | grep 631
LISTEN 0 128 127.0.0.1:631 0.0.0.0:* users:(("cupsd",pid=491,fd=9))
LISTEN 0 128 [::1]:631 [::]:* users:(("cupsd",pid=491,fd=8))
Alle freischalten
- cupsctl --remote-admin --remote-any --share-printers
Nur eine IP-Adresse freischalten
CUPS Konfigurationsdatei bearbeiten
- vim /etc/cups/cupsd.conf
... Listen 192.168.56.254:631 Listen /run/cups/cups.sock # Show shared printers on the local network. Browsing On BrowseLocalProtocols dnssd # Default authentication type, when authentication is required... DefaultAuthType Basic # Web interface setting... WebInterface Yes # Restrict access to the server... <Location /> Order allow,deny Allow 192.168.56.254 </Location> # Restrict access to the admin pages... <Location /admin> Allow 192.168.56.254 Order allow,deny </Location> # Restrict access to configuration files... <Location /admin/conf> Allow 192.168.56.254 AuthType Default Require user @SYSTEM Order allow,deny </Location> # Restrict access to log files... <Location /admin/log> Allow 192.168.56.254 AuthType Default Require user @SYSTEM Order allow,deny </Location> ...
Daemon neustarten
- systemctl restart cups
Zugang überprüfen
- ss -lntp | grep 631
LISTEN 0 128 0.0.0.0:631 0.0.0.0:* users:(("cupsd",pid=4247,fd=6))
- Nun sollte das Webinterface vom Host mit der IP 192.168.56.254 erreichbar sein