PDA

View Full Version : [ubuntu] UFW blocks my printer (Brother)



Askel
December 31st, 2012, 06:48 AM
Hi

I reinstalled my system and activated UFW using the guide here on the forum. When I tried to install my printer, a Brother MFC-J6910DW, it can't get connected. If I disable the firewall I can print, but not with it enabled. What port should be open to be able to use the priner. Should it only be open out or also in? I'm also using the Brscan-skey. I guess some port has to allow trafic in to be able to get the scanned file?

/askel

crispy_420
December 31st, 2012, 07:16 AM
Owners manual states:

Network scanning = UDP 54925
PC/Fax receiving = UDP 54926

And it looks like UDP 137 is involved too.

http://welcome.solutions.brother.com/BSC/public/us/us/en/faq/faq/000000/002500/000097/faq002597_000.html?reg=us&c=us&lang=en&prod=mfc7345n_us

Askel
December 31st, 2012, 07:27 AM
I've opened the ports but I still don't get any contact with the printer.

crispy_420
December 31st, 2012, 08:00 AM
In firewall are ports allowed for incoming?

Askel
December 31st, 2012, 08:09 AM
Yes, I've tried that to, but it doesn't make a difference

Edit:
I tried the GUI for UFW and could enable the specific IP-adress for the printer for incoming and outgoing trafic. So it works fine now. (Printing at least. I've got to fix the Brscan-skey-connection)

Ms. Daisy
December 31st, 2012, 02:49 PM
Look at the ufw logs when you attempt to use the Brscan-skey-connection. They will tell you what ports are being blocked.

Askel
January 3rd, 2013, 07:23 PM
WHat's more secure? To ha a specific port open or to give access to the specific ip of the printer?

Ms. Daisy
January 3rd, 2013, 09:03 PM
WHat's more secure? To ha a specific port open or to give access to the specific ip of the printer? If its a network printer and you have assigned/ reserved an IP address for it then you could allow traffic to/from that IP. But if the printer is local or uses DHCP then it would be hard to allow by IP.