On 14/04/2025 06:52, Lee wrote:
I taking a class at the local library; my laptop has avahi and cups
ports open .. which I'm not thrilled about but I like the zero-conf
printing ability.

It's nice being able to print when I'm at home.  I don't know how to
turn this stuff off when I'm not at home :(

First of all check if cups is listening loopback interface or it can handle connections from other hosts

    ss -ntupl

You can disable mDNS responder (a component of zeroconf) for some network interfaces. In the case of NetworkManager try

    nmcli con

to get connection identifiers and

    nmcli -f connection.mdns connection show NAME_OR_UUID

with proper identifier to get state for specific network profile.

You may install firewalld and configure zones to block incoming connection for network profiles other than you are using at home. Current state should be available in GUI or:

    nmcli -f connection.zone connection show NAME_OR_UUID


Reply via email to