Results 1 to 7 of 7

Thread: Ubuntu 18.04 Server how to allow printing from multiple vlans

  1. #1
    Join Date
    Oct 2006
    Beans
    109

    Unhappy Ubuntu 18.04 Server how to allow printing from multiple vlans

    Hi Everyone. I'm a bit confused on this issue. I am running Ubuntu 18.04.03 and have 2 printers USB connected to it.

    When my clients connect from on VLAN they see the printers

    When they connect from the other VLAN (google mesh) they don't see ANY printers.

    I'm at a loss as I enabled 'Internet Printing' thinking that would help, but it doesn't

    Code:
    LogLevel debug
    PageLogFormat
    MaxLogSize 1m
    # Allow remote access
    Port 631
    Listen /run/cups/cups.sock
    Browsing On
    BrowseLocalProtocols dnssd
    DefaultAuthType Basic
    WebInterface Yes
    <Location />
      # Allow remote access...
      Order allow,deny
      Allow all
    </Location>
    <Location /admin>
    </Location>
    AuthType Default
    Require valid-user
    Order allow,deny
    Allow @LOCAL
    <Location /admin/conf>
      AuthType Default
      Require user @SYSTEM
    </Location>
    <Location /admin/log>
      AuthType Default
      Require user @SYSTEM
      Order allow,deny
      Order allow,deny
      Allow @LOCAL
    </Location>
    <Policy default>
      JobPrivateAccess default
      JobPrivateValues default
      SubscriptionPrivateAccess default
      SubscriptionPrivateValues default
      <Limit Create-Job Print-Job Print-URI Validate-Job>
        Order deny,allow
      </Limit>
      <Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job Cancel-My-Jobs Close-Job CUPS-Move-Job CUPS-Get-Document>
        Require user @OWNER @SYSTEM
        Order deny,allow
      </Limit>
      <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default CUPS-Get-Devices>
        AuthType Default
        Require user @SYSTEM
        Order deny,allow
      </Limit>
      <Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After Cancel-Jobs CUPS-Accept-Jobs CUPS-Reject-Jobs>
        AuthType Default
        Require user @SYSTEM
        Order deny,allow
      </Limit>
      <Limit Cancel-Job CUPS-Authenticate-Job>
        Require user @OWNER @SYSTEM
        Order deny,allow
      </Limit>
      <Limit All>
        Order deny,allow
      </Limit>
    </Policy>
    <Policy authenticated>
      JobPrivateAccess default
      JobPrivateValues default
      SubscriptionPrivateAccess default
      SubscriptionPrivateValues default
      <Limit Create-Job Print-Job Print-URI Validate-Job>
        AuthType Default
        Order deny,allow
      </Limit>
      <Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job Cancel-My-Jobs Close-Job CUPS-Move-Job CUPS-Get-Document>
        AuthType Default
        Require user @OWNER @SYSTEM
        Order deny,allow
      </Limit>
      <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default>
        AuthType Default
        Require user @SYSTEM
        Order deny,allow
      </Limit>
      <Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After Cancel-Jobs CUPS-Accept-Jobs CUPS-Reject-Jobs>
        AuthType Default
        Require user @SYSTEM
        Order deny,allow
      </Limit>
      <Limit Cancel-Job CUPS-Authenticate-Job>
        AuthType Default
        Require user @OWNER @SYSTEM
        Order deny,allow
      </Limit>
      <Limit All>
        Order deny,allow
      </Limit>
    </Policy>
    <Policy kerberos>
      JobPrivateAccess default
      JobPrivateValues default
      SubscriptionPrivateAccess default
      SubscriptionPrivateValues default
      <Limit Create-Job Print-Job Print-URI Validate-Job>
        AuthType Negotiate
        Order deny,allow
      </Limit>
      <Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job Cancel-My-Jobs Close-Job CUPS-Move-Job CUPS-Get-Document>
        AuthType Negotiate
        Require user @OWNER @SYSTEM
        Order deny,allow
      </Limit>
      <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default>
        AuthType Default
        Require user @SYSTEM
        Order deny,allow
      </Limit>
      <Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After Cancel-Jobs CUPS-Accept-Jobs CUPS-Reject-Jobs>
        AuthType Default
        Require user @SYSTEM
        Order deny,allow
      </Limit>
      <Limit Cancel-Job CUPS-Authenticate-Job>
        AuthType Negotiate
        Require user @OWNER @SYSTEM
        Order deny,allow
      </Limit>
      <Limit All>
        Order deny,allow
      </Limit>
    </Policy>

  2. #2
    Join Date
    Oct 2008
    Location
    Chicago
    Beans
    260
    Distro
    Ubuntu Mate 22.04 Jammy Jellyfish

    Re: Ubuntu 18.04 Server how to allow printing from multiple vlans

    I don't think Internet Printing means anything in your context.
    Please tell us more detail about how your two VLANS are connected: router/switch, nested routers, etc.

  3. #3
    Join Date
    Nov 2012
    Location
    Halloween Town
    Beans
    Hidden!
    Distro
    Xubuntu Development Release

    Re: Ubuntu 18.04 Server how to allow printing from multiple vlans

    Thread moved to Server Platforms.

  4. #4
    Join Date
    May 2007
    Location
    NY's first capital
    Beans
    2,868
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: Ubuntu 18.04 Server how to allow printing from multiple vlans

    If your vlans are on separate networks (broadcast domains) then
    you devices won't be discoverable (see the printer).

    If you have firewall rules to allow traffic between the vlans you
    should be able to specify the ip address of the host machine.

    First test you can ping the host machine?
    Nothing is ever easy, but if it is difficult you must be doing it wrong.

  5. #5
    Join Date
    Oct 2006
    Beans
    109

    Re: Ubuntu 18.04 Server how to allow printing from multiple vlans

    After figuring out I could ping the 'server' for the printers, I was able to use the 'Add Printer' dialog and by using the IP in the search, the printers showed up

    However, I still can't add them

    It just says "Error Adding Printer"

    Any ideas?

  6. #6
    Join Date
    Oct 2006
    Beans
    109

    Re: Ubuntu 18.04 Server how to allow printing from multiple vlans

    I do see these entries in the client journal

    Code:
    May 10 15:36:38 drai-blade.cocoanet.us org.gnome.ControlCenter.SearchProvider[2806]: mkdir failed on directory /var/cache/samba: Permission denied
    May 10 15:36:38 drai-blade.cocoanet.us org.gnome.ControlCenter.SearchProvider[2806]: mkdir failed on directory /var/cache/samba: Permission denied
    May 10 15:36:58 drai-blade.cocoanet.us dbus-daemon[1430]: [system] Activating service name='org.opensuse.CupsPkHelper.Mechanism' requested by ':1.211' (uid=1000 pid=11729 comm="gnome-control-center printers " label="unconfined") (using servicehelper)
    May 10 15:36:58 drai-blade.cocoanet.us dbus-daemon[1430]: [system] Successfully activated service 'org.opensuse.CupsPkHelper.Mechanism'
    May 10 15:36:58 drai-blade.cocoanet.us gnome-control-c[11729]: cups-pk-helper: addition of printer iX6550-TurboPrint failed: client-error-not-authorized
    May 10 15:36:59 drai-blade.cocoanet.us gnome-control-c[11729]: Installation of the new printer failed.
    May 10 15:36:59 drai-blade.cocoanet.us gnome-control-c[11729]: GtkDialog mapped without a transient parent. This is discouraged.
    Last edited by slickymaster; May 11th, 2021 at 09:16 AM. Reason: code tags

  7. #7
    Join Date
    May 2007
    Location
    NY's first capital
    Beans
    2,868
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: Ubuntu 18.04 Server how to allow printing from multiple vlans

    Please clarify the symptom.

    Can clients on the same vLAN print to your share printers?

    If clients on the same subnet can print but others can't perhaps
    you need to enable "from any" via cupsctl command.
    Nothing is ever easy, but if it is difficult you must be doing it wrong.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •