LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 12-17-2010, 05:58 PM   #1
janhe
Member
 
Registered: Jul 2007
Location: Belgium
Distribution: slackware64 13.1, slackware 13.1
Posts: 369

Rep: Reputation: 45
cannot scan with sane over network, local machine works


this exits without errors, and the file is sanned.
Code:
janhe@server:~$ scanimage -d net:10.0.0.40:pixma:04A91712_21F443 > output
other machine:
Code:
janhe@client:~$ scanimage -d net:10.0.0.40:pixma:04A91712_21F443 > output
scanimage: sane_start: Error during device I/O
configuration:
Code:
root@server:~# cat /etc/services | grep sane
sane-port       6566/tcp   #SANE network scanner daemon

root@server:~# cat /etc/inetd.conf | grep sane
sane-port stream tcp nowait root.scanner /usr/sbin/saned saned

root@server:~# cat /etc/sane.d/saned.conf
# saned.conf
# Configuration for the saned daemon

## Daemon options
# Port range for the data connection. Choose a range inside [1024 - 65535].
# Avoid specifying too large a range, for performance reasons.
#
# ONLY use this if your saned server is sitting behind a firewall. If your
# firewall is a Linux machine, we strongly recommend using the
# Netfilter nf_conntrack_sane connection tracking module instead.
#
# data_portrange = 10000 - 10100


## Access list
# A list of host names, IP addresses or IP subnets (CIDR notation) that
# are permitted to use local SANE devices. IPv6 addresses must be enclosed
# in brackets, and should always be specified in their compressed form.
#
# The hostname matching is not case-sensitive.

#scan-client.somedomain.firm
#192.168.0.1
#192.168.0.1/29
#[2001:7a8:185e::42:12]
#[2001:7a8:185e::42:12]/64
10.0.0.0/24
[2001:5c0:1503:6600::]/64
[fe80::]/10

# NOTE: /etc/inetd.conf (or /etc/xinetd.conf) and
# /etc/services must also be properly configured to start
# the saned daemon as documented in saned(8), services(4)
# and inetd.conf(4) (or xinetd.conf(5)).
What am I missing?

Last edited by janhe; 12-17-2010 at 06:00 PM.
 
Old 12-17-2010, 07:48 PM   #2
frankbell
Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mageia, Mint
Posts: 7,346

Rep: Reputation: 1388Reputation: 1388Reputation: 1388Reputation: 1388Reputation: 1388Reputation: 1388Reputation: 1388Reputation: 1388Reputation: 1388Reputation: 1388
This may be so obvious that it sounds stupid, but, if this is a printer as well as a scanner, can you print to to it over the network?

Also, what are the make and model of the scanner and how is it shared over the network? If it is shared via Samba and CUPS, what does smbclient report?

Last edited by frankbell; 12-17-2010 at 07:53 PM. Reason: clarity
 
Old 12-18-2010, 02:50 AM   #3
janhe
Member
 
Registered: Jul 2007
Location: Belgium
Distribution: slackware64 13.1, slackware 13.1
Posts: 369

Original Poster
Rep: Reputation: 45
I can print over the network.
The printer is shared via cups and samba.
The scanner is shared via saned.

I can print to it. I can also scan from it via the net interface on the localhost.
It is a Canon Pixma MP530.
 
Old 12-18-2010, 04:24 AM   #4
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,970

Rep: Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848
Hi,

for multifunction devices be sure to add the user to the lp group in order to get access to the device.

If this doesn't work, use
Code:
nmap -p 6566 xxx.xxx.xxx.xxx
where xxx.xxx.xxx.xxx is the ip of the server in order to check if the sane-port is really open.

I've done this before: http://www.linuxquestions.org/questi...etwork-761212/

Markus

Last edited by markush; 12-18-2010 at 04:26 AM. Reason: an explanation
 
Old 12-18-2010, 10:59 AM   #5
janhe
Member
 
Registered: Jul 2007
Location: Belgium
Distribution: slackware64 13.1, slackware 13.1
Posts: 369

Original Poster
Rep: Reputation: 45
I temporarily disabled the firewall on the server. Now it works.

At least I know in which direction I should be looking.

The 6566 tcp port was already open. Anyone who knows what other ports are involved?

perhaps I should be looking further into this:
Quote:
If your firewall is a Linux machine, we strongly recommend using the
Netfilter nf_conntrack_sane connection tracking module instead.
Any hints are welcome.
 
Old 12-18-2010, 03:43 PM   #6
janhe
Member
 
Registered: Jul 2007
Location: Belgium
Distribution: slackware64 13.1, slackware 13.1
Posts: 369

Original Poster
Rep: Reputation: 45
I've been trying so much that I don't know what made it work, but it works. For now.

What I think did the trick is loading the module "nf_conntrack_sane" into the kernel on the server.

That way iptables recognises the higher ports that are used for I-don't-know-what as RELATED. I think it's similar to FTP.

BTW, If anyone from the Slackware Team is reading this:
The module names for connection tracking in rc.modules are outdated. They are still called ip_conntrack_* instead of nf_conntrack_*.
 
1 members found this post helpful.
  


Reply

Tags
net, nf_conntrack_sane, sane, sane-net


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to scan for ip addresses in a local network? icedfusion Linux - Networking 10 09-12-2011 02:46 PM
DNS on local machine works, external it fails temecal Linux - Server 3 12-14-2009 02:55 PM
local mail on a 2 machine network tireseas Linux - Networking 4 01-25-2005 07:57 AM
Apache server works, but only on my local network munchies Linux - Networking 4 04-07-2004 09:18 AM
Apache works on local machine, not LAN lanzdale Linux - Software 3 09-02-2003 09:16 PM


All times are GMT -5. The time now is 10:24 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration