I could not find any clear answer through prior research.
Xsane fails to find the scanner with ufw enabled, works great with ufw off.
I have opened 6566 for both tcp and udp in ufw. Still no joy. I could not tell from watching the "listening report" in ufw which ports sane is using other than 6566.
If the ports are not standard but vary by scanner (this is a Canon) advice on how to locate the required ports would be most welcome.
Edit: I tried sudo ufw allow saned but I think this just opens port 6566 because the response back from the command was to the effect that it was already open.
Additional information: the port(s) that are being blocked seem to be related to scanner discovery and job status. If I disable the firewall and start xsane, then turn on the firewall and scan, a scan will take place, but it repeats over and over (apparently a job completion status is not being sent).
sudo netstat -lntp | grep saned showed port 6566 but no others.  Perhaps the discovery/statuses are being sent too fast for me to see.
 
     
    