Собственно, сабж.
Запускаю на машине, к которой подцеплен сканер (далее сервер)
server~# /etc/init.d/xinetd stop
* Stopping internet superserver xinetd
server~# saned -d128
[saned] main: starting debug mode (level 128)
[saned] main: trying to get port for service `sane-port' (getaddrinfo)
[saned] main: [0] socket () using IPv4
[saned] main: [0] setsockopt ()
[saned] main: [0] bind () to port 6566
[saned] main: [0] listen ()
[saned] main: [1] socket () using IPv6
[saned] main: [1] socket failed: Address family not supported by protocol
[saned] main: waiting for control connection
client~$scanimage -L
device `net:192.168.102.77:hpaio:/usb/HP_LaserJet_Professional_M1212nf_MFP?serial=000000000QJ48B4TPR1a' is a Hewlett-Packard HP_LaserJet_Professional_M1212nf_MFP all-in-one
[saned] saned (AF-indep+IPv6) from sane-backends 1.0.19 ready
[saned] check_host: access by remote host: 192.168.102.200
[saned] check_host: remote host is not IN_LOOPBACK nor IN6_LOOPBACK
[saned] check_host: local hostname: secretar
[saned] check_host: local hostname(s) (from DNS): secretar
[saned] check_host: local hostname(s) (from DNS): (null)
[saned] check_host: local hostname(s) (from DNS): (null)
[saned] check_host: remote host doesn't have same addr as local
[saned] check_host: opening config file: /etc/hosts.equiv
[saned] check_host: can't open config file: /etc/hosts.equiv (No such file or directory)
[saned] check_host: opening config file: saned.conf
[saned] check_host: config file line: `#'
[saned] check_host: config file line: `# saned.conf'
[saned] check_host: config file line: `#'
[saned] check_host: config file line: `# The contents of the saned.conf file is a list of host names, IP'
[saned] check_host: config file line: `# addresses or IP subnets (CIDR notation) that are permitted to use local'
[saned] check_host: config file line: `# SANE devices. IPv6 addresses must be enclosed in brackets, and should'
[saned] check_host: config file line: `# always be specified in their compressed form.'
[saned] check_host: config file line: `#'
[saned] check_host: config file line: `# The hostname matching is not case-sensitive.'
[saned] check_host: config file line: `#'
[saned] check_host: config file line: `#scan-client.somedomain.firm'
[saned] check_host: config file line: `#192.168.0.1'
[saned] check_host: config file line: `#192.168.0.1/29'
[saned] check_host: config file line: `#[2001:7a8:185e::42:12]'
[saned] check_host: config file line: `#[2001:7a8:185e::42:12]/64'
[saned] check_host: config file line: `192.168.102.0/24'
[saned] check_host: subnet with base IP = 192.168.102.0, CIDR netmask = 24
[saned] check_host: access granted from IP address 192.168.102.200 (in subnet 192.168.102.0/24)
[saned] init: access granted
[saned] init: access granted to strangeman@192.168.102.200
[saned] process_request: waiting for request
[saned] process_request: got request 1
[saned] process_request: waiting for request
[saned] process_request: got request 10
[saned] quit: exiting
Как только включаю xinetd на сервере - сканер видеться перестает, scanimage ничего не находит. sane-find-scanner ничего не находит (да и не уверен, что должен) в обоих случаях.
Конфиги сервера:
server~# cat /etc/xinetd.d/saned
service saned
{
socket_type = stream
server = /usr/sbin/saned
protocol = tcp
user = saned
group = scanner
wait = no
disable = no
}
server~# cat /etc/services | grep saned
sane-port 6566/tcp sane saned # SANE network scanner daemon
На клиенте в /etc/sane.d/net.conf IP сервера прописан.
Где туплю?