Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14

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

  1. #11

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

    That fixed the problem!

    Does this open the firewall completely for all data from 192.168.2.8? Is that a security problem?

    How do I make this permanent?

    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.

  2. #12
    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
    That fixed the problem! How do I make this permanent?
    Glad to have been of assistance!

    To make permanent...
    Code:
    sudo firewall-cmd --runtime-to-permanent
    Reference:
    https://firewalld.org/documentation/...ewall-cmd.html
    --runtime-to-permanent

    Save active runtime configuration and overwrite permanent configuration with it. The way this is supposed to work is that when configuring firewalld you do runtime changes only and once you're happy with the configuration and you tested that it works the way you want, you save the configuration to disk.
    openSUSE Leap 15.2; KDE Plasma 5

  3. #13
    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
    Does this open the firewall completely for all data from 192.168.2.8?
    Yes.
    Is that a security problem?
    Within a LAN environment (and usually behind a firewall) it is acceptable IMHO. With more analysis (eg wireshark), you could probably determine what ports are being used for communication, and then adjust the firewall appropriately, but life is short and I would consider this firewall rule a pragmatic option for a trusted host on the network.
    openSUSE Leap 15.2; KDE Plasma 5

  4. #14
    Join Date
    Jun 2020
    Posts
    23

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

    If you want a more general solution that works without opening your firewall to all traffic from this hard-coded IP address, there is this thread.

Page 2 of 2 FirstFirst 12

Posting Permissions

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