Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: hp-setup can't discover HP printer unless firewall off

  1. #1

    Question hp-setup can't discover HP printer unless firewall off

    Hi,

    I'm trying to get hp-setup to discover a HP printer on wifi on Leap 15.0. I'm quite sure it is a problem with the firewall, but I'm unable to track it down. The aim is to get Vuescan to work which use hp-setup to search for printers/scanners.

    If I turn off the firewall hp-setup is able to find the printer using mDNS/Bonjour only. SLP and Avahi returns no results. If I turn on the firewall it cannot discover the printer.

    Wireshark gives the following which doesn't show up when the firewall is off:
    ISMP: Destination unreachable (Host administratively prohibited) from 192.168.1.10 (the desktop) to 192.168.1.129 (the printer)

    But I'm not sure if this is related to the problem.

    I've tried to enable/disable the following on the firewall:
    * mdns
    * slp
    * UDP ports 5353 and 427

    Same result. So what can I do to find the problem?

  2. #2
    Join Date
    Aug 2008
    Location
    San Francisco
    Posts
    431

    Default Re: hp-setup can't discover HP printer unless firewall off

    In the hp-setup Device Discovery window, click the Network radio button, then the Show Advanced Options bar, then the Manual Discovery button. Put the printer's IP address in the field and click Next. This works on my system, and hopefully will on yours.
    Regards,
    Howard
    ThinkPads 310ED, 600E, T23, X41, X60, T61, X201, E550

  3. #3

    Default Re: hp-setup can't discover HP printer unless firewall off

    Yes, but my goal is to get Vuescan working, and this has no manual option only on the fly detection.

  4. #4
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    21,584
    Blog Entries
    1

    Default Re: hp-setup can't discover HP printer unless firewall off

    Quote Originally Posted by olejacob View Post
    Hi,

    I'm trying to get hp-setup to discover a HP printer on wifi on Leap 15.0.
    I've tried to enable/disable the following on the firewall:
    * mdns
    * slp
    * UDP ports 5353 and 427

    Same result. So what can I do to find the problem?
    The HP guide indicates only Avahi should be required for printer discovery, so not clear to me why it's not working for you.
    https://developers.hp.com/hp-linux-i...nFirewall.html

    Can you confirm that the changes were applied? Correct interface/zone? Perhaps show us the current running config...
    Code:
    firewall-cmd --list-all
    openSUSE Leap 15.2; KDE Plasma 5

  5. #5

    Default Re: hp-setup can't discover HP printer unless firewall off

    Code:
    ojt@zappa:~> firewall-cmd --list-all
    public
      target: default
      icmp-block-inversion: no
      interfaces: 
      sources: 
      services: dhcpv6-client mdns slp
      ports: 5353/udp 427/udp
      protocols: 
      masquerade: no
      forward-ports: 
      source-ports: 
      icmp-blocks: 
      rich rules:

  6. #6
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    21,584
    Blog Entries
    1

    Default Re: hp-setup can't discover HP printer unless firewall off

    Hmmm, you don't have an interface assigned to that zone. I would expect something more like
    Code:
    ojt@zappa:~> firewall-cmd --list-all
    public
      target: default
      icmp-block-inversion: no
      interfaces: eth0
      sources: 
      services: dhcpv6-client mdns slp
    openSUSE Leap 15.2; KDE Plasma 5

  7. #7

    Default Re: hp-setup can't discover HP printer unless firewall off

    Seems that when the default zone is used the interface is not visible. Anyway eth0 is now set, but still same problem. Tried both using services mdns and slp and open ports:


    Code:
    ojt@zappa:~> firewall-cmd --list-all --zone=home
    home (active)
      target: default
      icmp-block-inversion: no
      interfaces: eth0
      sources: 
      services: ssh samba-client dhcpv6-client mdns slp
      ports: 
      protocols: 
      masquerade: no
      forward-ports: 
      source-ports: 
      icmp-blocks: 
      rich rules:
    Code:
    ojt@zappa:~> firewall-cmd --list-all --zone=home
    home (active)
      target: default
      icmp-block-inversion: no
      interfaces: eth0
      sources: 
      services: ssh samba-client dhcpv6-client
      ports: 5353/udp 427/udp
      protocols: 
      masquerade: no
      forward-ports: 
      source-ports: 
      icmp-blocks: 
      rich rules:

  8. #8
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    21,584
    Blog Entries
    1

    Default Re: hp-setup can't discover HP printer unless firewall off

    Do you specifically prefer using Vuescan over other scanning apps such as hp-scan or simple-scan?
    openSUSE Leap 15.2; KDE Plasma 5

  9. #9

    Default Re: hp-setup can't discover HP printer unless firewall off

    Yes, that is correct. Vuescan has a much cleaner interface and can for instance handle multipage scans.

    Quote Originally Posted by deano_ferrari View Post
    Do you specifically prefer using Vuescan over other scanning apps such as hp-scan or simple-scan?

  10. #10
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    21,584
    Blog Entries
    1

    Default Re: hp-setup can't discover HP printer unless firewall off

    Quote Originally Posted by olejacob View Post
    Seems that when the default zone is used the interface is not visible.
    That's because you're using the home zone, so no interface assigned to the default (public) zone. There's nothing wrong with using a different zone though.

    As an experiment, you could try allowing all traffic from the IP address assigned to the HP device. For example, let's assume 192.168.2.8...
    Code:
    firewall-cmd --add-rich-rule='rule family="ipv4" source address="192.168.2.8" accept'
    then see if Vuescan can discover the network scanner.
    openSUSE Leap 15.2; KDE Plasma 5

Page 1 of 2 12 LastLast

Posting Permissions

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