Re: Scanning over network in Fedora 11

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Attachment: signature.asc
Description: This is a digitally signed message part.

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux