I have a scanner on my local network that I need to access. At the moment access it blocked by the 'personal firewall'. With the firewall enabled I get the following output when attempting to contact the scanner with
- Code: Select all
sudo scanimage -L
No scanners were identified. If you were expecting something different,
check that the scanner is plugged in, turned on and detected by the
sane-find-scanner tool (if appropriate). Please read the documentation
which came with this software (README, FAQ, manpages).
And this output from dmesg/Shorewall:
Shorewall:net-fw:DROP:IN=enp2s0 OUT= MAC=78:e3:b5:c5:71:bc:ac:18:26:39:e1:e9:08:00 SRC=192.168.0.20 DST=192.168.0.19 LEN=104 TOS=0x00 PREC=0x00 TTL=30 ID=25938 PROTO=UDP SPT=3289 DPT=39377 LEN=84
I'm familiar with opening access with ufw for this scanner (Debian runs my laptop), where I use the ip address of the scanner as so:
sudo ufw allow from 192.168.0.20
I can't interpret the output in dmesg to set the appropriate ports as open in the 'personal firewall' advanced settings. It looks like, from the Shorewall output, I need to open udp port 3289. The following part foxes me though:
DPT=39377
I'm assuming this is the tcp port? It changes with every attempt to scanimage -L the scanner.
With the 'personal firewall' turned off, I can access the scanner without issue.
device `epson2:net:192.168.0.20' is a Epson PID 08B9 flatbed scanner
I'm running Mageia 6 with updates installed. I'm recovering my system from a hardware failure and can't remember how I got it to work in Mageia 5 (my last install on this machine).
Thanks in advance.