Scanning over network in Fedora 11

Anthony Messina amessina at messinet.com
Sat Jul 11 18:00:05 UTC 2009


On Saturday 11 July 2009 12:46:47 pm Klaus-Peter Schrage wrote:
> I want to setup network scanning in Fedora, but no success.
> I try to describe my setup in a quite detailed manner:
>
> 1. My scanner works fine locally:
>
> $ scanimage -L
> device `snapscan:libusb:004:003' is a AGFA SNAPSCAN 1212U_2 flatbed scanner
>
> 2. I have the  configured like this in /etc/sane.d/saned.conf:
>
> ...
> 192.168.2.0/24
> localhost
>
> (my local network is 192.168.2.XXX)
>
> 3. In /etc/services ther are the proper ports listed:
>
> sane-port       6566/tcp                # SANE Control Port
> sane-port       6566/udp                # SANE Control Port
>
> 4. saned is started from xinetd, configured like this:
>
> # /etc/xinetd.d/sane
> # Sane network access
> service sane-port
> {
>      disable    = no
>      socket_type     = stream
>      protocol        = tcp
>      wait            = no
>      user            = kp
>     server          = /usr/sbin/saned
> }
>
> (kp is my user)
>
> 5. Now I try to check if saned is running properly:
>
> $ telnet localhost 6566
> gives this output:
>
> Trying 127.0.0.1...
> Connected to localhost.
> Escape character is '^]'.
>
> 6.  But whenever I telnet to saned remotely, even from this very machine
> using it's ip address, I get:
>
> Trying 192.168.2.35...
> Connected to 192.168.2.35.
> Escape character is '^]'.
> Connection closed by foreign host.
>
> 7. So I ran sane in debug mode (saned -d128, with the daemon stopped),
> and I got the following error messages from step 6:
>
> ...
> [saned] saned (AF-indep+IPv6) from sane-backends 1.0.19 ready
> [saned] check_host: access by remote host: 192.168.2.35
> [saned] check_host: remote host is not IN_LOOPBACK nor IN6_LOOPBACK
> [saned] check_host: local hostname: kellercomputer.kralenriede.de
> [saned] check_host: getaddrinfo failed: No address associated with hostname
> [saned] init: access by host 192.168.2.35 denied
> [saned] quit: exiting
>
> 8. BTW, the firewall is turned off.
>
> Now, what may have gone wrong?
>
> Any help would be greately appreciated,
> Klaus

in my xinetd, my service file is "sane-port" not just "sane" 
(/etc/xinetd.d/sane-port)

not sure if you're using tcpwrappers or not, but you may need the following in 
/etc/hosts.allow

sane-port: 192.168.2.0/255.255.255.0
saned: 192.168.2.0/255.255.255.0

and in /etc/sane.d/dll.conf, the "net" must be uncommented.

you may also need to expand your sane-port xinetd service definition.  mine 
looks like:

service sane-port
        {
                disable = no
                port = 6566
                socket_type = stream
                protocol = tcp
                wait = no
                user = nobody
                group = nobody
                server = /usr/sbin/saned
                only_from = 192.168.2.0/24
                bind = 192.168.2.3
                flags = IPv4
        }

it all works here.  -a


-- 
Anthony - http://messinet.com - http://messinet.com/~amessina/gallery
8F89 5E72 8DF0 BCF0 10BE 9967 92DC 35DC B001 4A4E

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20090711/99afb588/attachment-0001.sig>


More information about the fedora-list mailing list