On Sat, 2007-08-04 at 13:57 +1000, Craig Warner wrote:
> But when I try to telnet to the 6566 is a Connection refused, and
> scanimage -L on the Ubuntu client produces nil response.
> 
> Any suggestions?


Here's a list. I use Fedora, so translate accordingly.

1)
If you are running IPtables you need a rule something like:

-A firewall -p tcp -m state --state NEW -m tcp -s 192.168.1.0/24 --dport 
sane-port -j sane-server
...
-A sane-server -j  ULOG --ulog-prefix "Accept SANE"
-A sane-server -j ACCEPT

2)
If you are running TCP Wrappers you need a /etc/hosts.allow like

ALL: 127.
ALL: [::1/128]
saned: 192.168.1.0/255.255.255.0

3)
Your /etc/xinetd.d/saned file should look like:

service sane-port
{
  port        = 6566
  socket_type = stream
  wait        = no
  user        = saned
  group       = saned
  server      = /usr/sbin/saned
}

4)
The saned user will need to be in a group that allows access to
the scanner device. My scanner is on the parallel port, so my
/etc/group has:

lp:x:7:daemon,lp,saned

Ubuntu probably has a group to control access to USB devices.
Do a ls -l on the /dev device created when you plug the scanner
in.

5)
/etc/saned.d/dll.conf should allow the "net" driver

net

6)
/etc/saned.d/saned.conf should allow the networks you
expect

127.0.0.0/8
[::1]/128
192.168.1.0/24

7)
For testing /etc/saned.d/net.conf should contain

  localhost

-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to