According to Brother (printer company) I need to set a rule for my firewall.
as you can see at that page it says :
To scan using the Scan Key Tool, open the following ports in the security/firewall software you use:
- UDP: 54925
- TCP: 54921
I think I have it correct. but i’m new to linux and to creating rules in firewalls.
Those screenshots of how i created the firewall rule. I have the incoming set to “Deny” but I would assume that means that normally deny incoming BUT the rules I created should be exceptions. At least that’s how I would read that. If I am wrong please let me know.
The important part is that according to the instructions ports
- UDP: 54925
- TCP: 54921
must be opened and allow incoming traffic.
my end goal is to have the ability to push the “Scan” button on my printer/scanner and have a document scan and pushed to the computer. I am running Linux Mint 22.1
If you need more information to help me I’m happy to reply. The big item is :
is the firewall rule created correctly?
I should add that I did create a previous post about my brother printer and I went through brother to make sure the drivers are installed and setup . so that issue has been solved, now it’s just the firewall.
You have the from and to field set to the same IP. Shouldn’t the from IP be the printer and and To field be your PC IP?
good point I read it as where my computer was getting the data from or sending it to. but i think you might be right.
although if my computer is dhcp (gets its ip from the router) then what would I put into the TO field?
or do i have to set my computers ip address so it is static?
Can you set the To field to 0.0.0.0/0
That way any IP your PC gets it will be listening for the printer.
ok updated the firewall as you suggested. still no joy for my scanner being able to scan a document and send it to the computer.
first: is the firewall set correct? (if it isn’t then please let me know)
second: do i have to have a specific piece of software on my pc installed AND running? for example do i need to have Document Scanner running at the time when I hit try to scan the document or will linux just know to bring up a document scanner piece of software?
but the big item is the firewall, is it set right?
yes, something must be listening on that port on the PC (it can be a service without a window). I think ss and lsof can be used to check that. Not sure if they need root to get the list if listening programs.