I have a really nice HP printer that's currently connected via USB cable to this system. I need to move it out of cable range. My OS/X and iOS devices are able to find it and print to it using the magic of Bonjour. Is there a way for Fedora to use it via Avahi, rather than ipp and giving the printer a fixed IP address?
Am 14.05.2012 23:22, schrieb Steven Stern:
I have a really nice HP printer that's currently connected via USB cable to this system. I need to move it out of cable range. My OS/X and iOS devices are able to find it and print to it using the magic of Bonjour. Is there a way for Fedora to use it via Avahi, rather than ipp and giving the printer a fixed IP address?
CUPS does find network-printers via avahi
On Mon, May 14, 2012 at 11:25:47PM +0200, Reindl Harald wrote:
Am 14.05.2012 23:22, schrieb Steven Stern:
I have a really nice HP printer that's currently connected via USB cable to this system. I need to move it out of cable range. My OS/X and iOS devices are able to find it and print to it using the magic of Bonjour. Is there a way for Fedora to use it via Avahi, rather than ipp and giving the printer a fixed IP address?
CUPS does find network-printers via avahi
Ensure that your Fedora client system's firewall has port 5353/udp (mDNS) and 631/udp (IPP client) open, and things should generally Just Work(tm).
Am 15.05.2012 15:57, schrieb Paul W. Frields:
On Mon, May 14, 2012 at 11:25:47PM +0200, Reindl Harald wrote:
Am 14.05.2012 23:22, schrieb Steven Stern:
I have a really nice HP printer that's currently connected via USB cable to this system. I need to move it out of cable range. My OS/X and iOS devices are able to find it and print to it using the magic of Bonjour. Is there a way for Fedora to use it via Avahi, rather than ipp and giving the printer a fixed IP address?
CUPS does find network-printers via avahi
Ensure that your Fedora client system's firewall has port 5353/udp (mDNS) and 631/udp (IPP client) open, and things should generally Just Work(tm)
5353 is enough
[root@rh:~]$ firewall_status | grep 361 [root@rh:~]$
[root@rh:~]$ firewall_status | grep 5353 0 0 ACCEPT tcp -- * * 10.0.0.0/24 0.0.0.0/0 multiport dports 25,143,443,465,587,993,2000,137,138,139,445,5353 state NEW tcpflags: 0x17/0x02 0 0 ACCEPT tcp -- * * 10.0.0.107 0.0.0.0/0 multiport dports 25,143,443,465,587,993,2000,137,138,139,445,5353 state NEW tcpflags: 0x17/0x02 0 0 ACCEPT tcp -- * * 192.168.2.0/24 0.0.0.0/0 tcp spts:1024:65535 dpt:5353flags: 0x17/0x02 state NEW 0 0 ACCEPT tcp -- * * 10.0.0.0/24 0.0.0.0/0 tcp spts:1024:65535 dpt:5353flags: 0x17/0x02 state NEW 0 0 ACCEPT udp -- * * 192.168.2.0/24 0.0.0.0/0 udp spts:1024:65535 dpt:5353 state NEW 9406 1411K ACCEPT udp -- * * 10.0.0.0/24 0.0.0.0/0 udp spts:1024:65535 dpt:5353 state NEW [root@rh:~]$
On 05/15/2012 08:57 AM, Paul W. Frields wrote:
On Mon, May 14, 2012 at 11:25:47PM +0200, Reindl Harald wrote:
Am 14.05.2012 23:22, schrieb Steven Stern:
I have a really nice HP printer that's currently connected via USB cable to this system. I need to move it out of cable range. My OS/X and iOS devices are able to find it and print to it using the magic of Bonjour. Is there a way for Fedora to use it via Avahi, rather than ipp and giving the printer a fixed IP address?
CUPS does find network-printers via avahi
Ensure that your Fedora client system's firewall has port 5353/udp (mDNS) and 631/udp (IPP client) open, and things should generally Just Work(tm).
It seems to be more than 5353 and 631. With the iptables service running, I don't see the printer in CUPS. If I stop the iptables service, I do. What's missing here?
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED ACCEPT icmp -- anywhere anywhere ACCEPT all -- anywhere anywhere ACCEPT ah -- anywhere anywhere ACCEPT esp -- anywhere anywhere ACCEPT udp -- anywhere anywhere state NEW udp dpt:isakmp ACCEPT udp -- anywhere 224.0.0.251 state NEW udp dpt:mdns ACCEPT udp -- anywhere anywhere state NEW udp dpt:ipp ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:ipp ACCEPT udp -- anywhere anywhere state NEW udp dpt:ipp ACCEPT udp -- anywhere anywhere state NEW udp dpt:netbios-ns ACCEPT udp -- anywhere anywhere state NEW udp dpt:netbios-dgm ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:ssh ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:db-lsp ACCEPT udp -- anywhere anywhere state NEW udp dpt:db-lsp ACCEPT udp -- anywhere anywhere state NEW udp dpt:rfe ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:rfe ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:51413 ACCEPT udp -- anywhere anywhere state NEW udp dpt:51413 ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:mdns REJECT all -- anywhere anywhere reject-with icmp-host-prohibited
On 05/15/2012 07:24 AM, Steven Stern wrote:
On 05/15/2012 08:57 AM, Paul W. Frields wrote:
On Mon, May 14, 2012 at 11:25:47PM +0200, Reindl Harald wrote:
Am 14.05.2012 23:22, schrieb Steven Stern:
I have a really nice HP printer that's currently connected via USB cable to this system. I need to move it out of cable range. My OS/X and iOS devices are able to find it and print to it using the magic of Bonjour. Is there a way for Fedora to use it via Avahi, rather than ipp and giving the printer a fixed IP address?
CUPS does find network-printers via avahi
Ensure that your Fedora client system's firewall has port 5353/udp (mDNS) and 631/udp (IPP client) open, and things should generally Just Work(tm).
It seems to be more than 5353 and 631. With the iptables service running, I don't see the printer in CUPS. If I stop the iptables service, I do. What's missing here?
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED ACCEPT icmp -- anywhere anywhere ACCEPT all -- anywhere anywhere ACCEPT ah -- anywhere anywhere ACCEPT esp -- anywhere anywhere ACCEPT udp -- anywhere anywhere state NEW udp dpt:isakmp ACCEPT udp -- anywhere 224.0.0.251 state NEW udp dpt:mdns ACCEPT udp -- anywhere anywhere state NEW udp dpt:ipp ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:ipp ACCEPT udp -- anywhere anywhere state NEW udp dpt:ipp ACCEPT udp -- anywhere anywhere state NEW udp dpt:netbios-ns ACCEPT udp -- anywhere anywhere state NEW udp dpt:netbios-dgm ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:ssh ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:db-lsp ACCEPT udp -- anywhere anywhere state NEW udp dpt:db-lsp ACCEPT udp -- anywhere anywhere state NEW udp dpt:rfe ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:rfe ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:51413 ACCEPT udp -- anywhere anywhere state NEW udp dpt:51413 ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:mdns REJECT all -- anywhere anywhere reject-with icmp-host-prohibited
HP often uses "jetdirect" (TCP port 9100), so make sure that's permitted in your firewall as well. ---------------------------------------------------------------------- - Rick Stevens, Systems Engineer, AllDigital ricks@alldigital.com - - AIM/Skype: therps2 ICQ: 22643734 Yahoo: origrps2 - - - - If you're not part of the solution, you're part of the precipitate - ----------------------------------------------------------------------
On 05/15/2012 11:07 AM, Rick Stevens wrote:
On 05/15/2012 07:24 AM, Steven Stern wrote:
On 05/15/2012 08:57 AM, Paul W. Frields wrote:
On Mon, May 14, 2012 at 11:25:47PM +0200, Reindl Harald wrote:
Am 14.05.2012 23:22, schrieb Steven Stern:
I have a really nice HP printer that's currently connected via USB cable to this system. I need to move it out of cable range. My OS/X and iOS devices are able to find it and print to it using the magic of Bonjour. Is there a way for Fedora to use it via Avahi, rather than ipp and giving the printer a fixed IP address?
CUPS does find network-printers via avahi
Ensure that your Fedora client system's firewall has port 5353/udp (mDNS) and 631/udp (IPP client) open, and things should generally Just Work(tm).
It seems to be more than 5353 and 631. With the iptables service running, I don't see the printer in CUPS. If I stop the iptables service, I do. What's missing here?
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED ACCEPT icmp -- anywhere anywhere ACCEPT all -- anywhere anywhere ACCEPT ah -- anywhere anywhere ACCEPT esp -- anywhere anywhere ACCEPT udp -- anywhere anywhere state NEW udp dpt:isakmp ACCEPT udp -- anywhere 224.0.0.251 state NEW udp dpt:mdns ACCEPT udp -- anywhere anywhere state NEW udp dpt:ipp ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:ipp ACCEPT udp -- anywhere anywhere state NEW udp dpt:ipp ACCEPT udp -- anywhere anywhere state NEW udp dpt:netbios-ns ACCEPT udp -- anywhere anywhere state NEW udp dpt:netbios-dgm ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:ssh ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:db-lsp ACCEPT udp -- anywhere anywhere state NEW udp dpt:db-lsp ACCEPT udp -- anywhere anywhere state NEW udp dpt:rfe ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:rfe ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:51413 ACCEPT udp -- anywhere anywhere state NEW udp dpt:51413 ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:mdns REJECT all -- anywhere anywhere reject-with icmp-host-prohibited
HP often uses "jetdirect" (TCP port 9100), so make sure that's permitted in your firewall as well.
With the firewall disabled, avahi-discover -a shows the printer. With it enabled, it doesn't.
On 05/15/2012 09:53 AM, Steven Stern wrote:
On 05/15/2012 11:07 AM, Rick Stevens wrote:
On 05/15/2012 07:24 AM, Steven Stern wrote:
On 05/15/2012 08:57 AM, Paul W. Frields wrote:
On Mon, May 14, 2012 at 11:25:47PM +0200, Reindl Harald wrote:
Am 14.05.2012 23:22, schrieb Steven Stern:
I have a really nice HP printer that's currently connected via USB cable to this system. I need to move it out of cable range. My OS/X and iOS devices are able to find it and print to it using the magic of Bonjour. Is there a way for Fedora to use it via Avahi, rather than ipp and giving the printer a fixed IP address?
CUPS does find network-printers via avahi
Ensure that your Fedora client system's firewall has port 5353/udp (mDNS) and 631/udp (IPP client) open, and things should generally Just Work(tm).
It seems to be more than 5353 and 631. With the iptables service running, I don't see the printer in CUPS. If I stop the iptables service, I do. What's missing here?
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED ACCEPT icmp -- anywhere anywhere ACCEPT all -- anywhere anywhere ACCEPT ah -- anywhere anywhere ACCEPT esp -- anywhere anywhere ACCEPT udp -- anywhere anywhere state NEW udp dpt:isakmp ACCEPT udp -- anywhere 224.0.0.251 state NEW udp dpt:mdns ACCEPT udp -- anywhere anywhere state NEW udp dpt:ipp ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:ipp ACCEPT udp -- anywhere anywhere state NEW udp dpt:ipp ACCEPT udp -- anywhere anywhere state NEW udp dpt:netbios-ns ACCEPT udp -- anywhere anywhere state NEW udp dpt:netbios-dgm ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:ssh ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:db-lsp ACCEPT udp -- anywhere anywhere state NEW udp dpt:db-lsp ACCEPT udp -- anywhere anywhere state NEW udp dpt:rfe ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:rfe ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:51413 ACCEPT udp -- anywhere anywhere state NEW udp dpt:51413 ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:mdns REJECT all -- anywhere anywhere reject-with icmp-host-prohibited
HP often uses "jetdirect" (TCP port 9100), so make sure that's permitted in your firewall as well.
With the firewall disabled, avahi-discover -a shows the printer. With it enabled, it doesn't.
When you see it, does it show up as "JetDirect" or IPP? Did you open TCP port 9100 in your firewall?
The rule would (in /etc/sysconfig/iptables) would look like:
-A INPUT -m state --state NEW -m tcp -p tcp --dport 9100 -j ACCEPT
and "iptables -L" would look like:
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:jetdirect ---------------------------------------------------------------------- - Rick Stevens, Systems Engineer, AllDigital ricks@alldigital.com - - AIM/Skype: therps2 ICQ: 22643734 Yahoo: origrps2 - - - - C program run. C program crash. C programmer quit. - ----------------------------------------------------------------------
On 05/15/2012 12:13 PM, Rick Stevens wrote:
On 05/15/2012 09:53 AM, Steven Stern wrote:
On 05/15/2012 11:07 AM, Rick Stevens wrote:
On 05/15/2012 07:24 AM, Steven Stern wrote:
On 05/15/2012 08:57 AM, Paul W. Frields wrote:
On Mon, May 14, 2012 at 11:25:47PM +0200, Reindl Harald wrote:
Am 14.05.2012 23:22, schrieb Steven Stern: > I have a really nice HP printer that's currently connected via USB > cable > to this system. I need to move it out of cable range. My OS/X and > iOS > devices are able to find it and print to it using the magic of > Bonjour. > Is there a way for Fedora to use it via Avahi, rather than ipp > and > giving the printer a fixed IP address?
CUPS does find network-printers via avahi
Ensure that your Fedora client system's firewall has port 5353/udp (mDNS) and 631/udp (IPP client) open, and things should generally Just Work(tm).
It seems to be more than 5353 and 631. With the iptables service running, I don't see the printer in CUPS. If I stop the iptables service, I do. What's missing here?
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED ACCEPT icmp -- anywhere anywhere ACCEPT all -- anywhere anywhere ACCEPT ah -- anywhere anywhere ACCEPT esp -- anywhere anywhere ACCEPT udp -- anywhere anywhere state NEW udp dpt:isakmp ACCEPT udp -- anywhere 224.0.0.251 state NEW udp dpt:mdns ACCEPT udp -- anywhere anywhere state NEW udp dpt:ipp ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:ipp ACCEPT udp -- anywhere anywhere state NEW udp dpt:ipp ACCEPT udp -- anywhere anywhere state NEW udp dpt:netbios-ns ACCEPT udp -- anywhere anywhere state NEW udp dpt:netbios-dgm ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:ssh ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:db-lsp ACCEPT udp -- anywhere anywhere state NEW udp dpt:db-lsp ACCEPT udp -- anywhere anywhere state NEW udp dpt:rfe ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:rfe ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:51413 ACCEPT udp -- anywhere anywhere state NEW udp dpt:51413 ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:mdns REJECT all -- anywhere anywhere reject-with icmp-host-prohibited
HP often uses "jetdirect" (TCP port 9100), so make sure that's permitted in your firewall as well.
With the firewall disabled, avahi-discover -a shows the printer. With it enabled, it doesn't.
When you see it, does it show up as "JetDirect" or IPP? Did you open TCP port 9100 in your firewall?
The rule would (in /etc/sysconfig/iptables) would look like:
-A INPUT -m state --state NEW -m tcp -p tcp --dport 9100 -j ACCEPT
and "iptables -L" would look like:
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:jetdirect
Yes, but Jet Direct isn't the issue. It's Avahi, and I'm using avahi-discover to look for the printer. It seems that 5353 udp&tcp aren't enough.
On 05/15/2012 10:39 AM, Steven Stern wrote:
On 05/15/2012 12:13 PM, Rick Stevens wrote:
On 05/15/2012 09:53 AM, Steven Stern wrote:
On 05/15/2012 11:07 AM, Rick Stevens wrote:
On 05/15/2012 07:24 AM, Steven Stern wrote:
On 05/15/2012 08:57 AM, Paul W. Frields wrote:
On Mon, May 14, 2012 at 11:25:47PM +0200, Reindl Harald wrote: > > > Am 14.05.2012 23:22, schrieb Steven Stern: >> I have a really nice HP printer that's currently connected via USB >> cable >> to this system. I need to move it out of cable range. My OS/X and >> iOS >> devices are able to find it and print to it using the magic of >> Bonjour. >> Is there a way for Fedora to use it via Avahi, rather than ipp >> and >> giving the printer a fixed IP address? > > > http://localhost:631/ > > CUPS does find network-printers via avahi
Ensure that your Fedora client system's firewall has port 5353/udp (mDNS) and 631/udp (IPP client) open, and things should generally Just Work(tm).
It seems to be more than 5353 and 631. With the iptables service running, I don't see the printer in CUPS. If I stop the iptables service, I do. What's missing here?
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED ACCEPT icmp -- anywhere anywhere ACCEPT all -- anywhere anywhere ACCEPT ah -- anywhere anywhere ACCEPT esp -- anywhere anywhere ACCEPT udp -- anywhere anywhere state NEW udp dpt:isakmp ACCEPT udp -- anywhere 224.0.0.251 state NEW udp dpt:mdns ACCEPT udp -- anywhere anywhere state NEW udp dpt:ipp ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:ipp ACCEPT udp -- anywhere anywhere state NEW udp dpt:ipp ACCEPT udp -- anywhere anywhere state NEW udp dpt:netbios-ns ACCEPT udp -- anywhere anywhere state NEW udp dpt:netbios-dgm ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:ssh ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:db-lsp ACCEPT udp -- anywhere anywhere state NEW udp dpt:db-lsp ACCEPT udp -- anywhere anywhere state NEW udp dpt:rfe ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:rfe ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:51413 ACCEPT udp -- anywhere anywhere state NEW udp dpt:51413 ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:mdns REJECT all -- anywhere anywhere reject-with icmp-host-prohibited
HP often uses "jetdirect" (TCP port 9100), so make sure that's permitted in your firewall as well.
With the firewall disabled, avahi-discover -a shows the printer. With it enabled, it doesn't.
When you see it, does it show up as "JetDirect" or IPP? Did you open TCP port 9100 in your firewall?
The rule would (in /etc/sysconfig/iptables) would look like:
-A INPUT -m state --state NEW -m tcp -p tcp --dport 9100 -j ACCEPT
and "iptables -L" would look like:
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:jetdirect
Yes, but Jet Direct isn't the issue. It's Avahi, and I'm using avahi-discover to look for the printer. It seems that 5353 udp&tcp aren't enough.
You're saying that with the firewall disabled, avahi DOES see the printer, but with the firewall enabled, avahi doesn't. Therefore the firewall is blocking the discovery.
It's my guess is because your firewall is blocking the jetdirect port that the HP printer is actually on so avahi can't see it. It's only a guess, but that's why I'm trying to get you to open up that port, enable the firewall and see if avahi sees it at that point.
If you know what the printer's IP is at this time, you could also disable the firewall, run "tcpdump host printer-ip" and when avahi pokes it, see which port the printer responds on. That's what needs to be open on your firewall. ---------------------------------------------------------------------- - Rick Stevens, Systems Engineer, AllDigital ricks@alldigital.com - - AIM/Skype: therps2 ICQ: 22643734 Yahoo: origrps2 - - - - Try to look unimportant. The bad guys may be low on ammo. - ----------------------------------------------------------------------
Am 15.05.2012 16:24, schrieb Steven Stern:
On 05/15/2012 08:57 AM, Paul W. Frields wrote:
On Mon, May 14, 2012 at 11:25:47PM +0200, Reindl Harald wrote:
Am 14.05.2012 23:22, schrieb Steven Stern:
I have a really nice HP printer that's currently connected via USB cable to this system. I need to move it out of cable range. My OS/X and iOS devices are able to find it and print to it using the magic of Bonjour. Is there a way for Fedora to use it via Avahi, rather than ipp and giving the printer a fixed IP address?
CUPS does find network-printers via avahi
Ensure that your Fedora client system's firewall has port 5353/udp (mDNS) and 631/udp (IPP client) open, and things should generally Just Work(tm).
It seems to be more than 5353 and 631. With the iptables service running, I don't see the printer in CUPS. If I stop the iptables service, I do. What's missing here?
it is only 5353 used BUT UDP, 100% sure and no there is no need to open jetdirect INCOMING or other voodo
avahi works on UDP and your UDP rule looks strange what is the "224.0.0.251" for?
you need open ports FROM YOU LOCAL NETWORK like 10.0.0.0/24 your other rules looking partly dangerous and way too wide open
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:mdns
ACCEPT udp -- anywhere 224.0.0.251 state NEW udp dpt:mdns
Reindl Harald wrote:
Am 15.05.2012 16:24, schrieb Steven Stern:
On 05/15/2012 08:57 AM, Paul W. Frields wrote:
On Mon, May 14, 2012 at 11:25:47PM +0200, Reindl Harald wrote:
Am 14.05.2012 23:22, schrieb Steven Stern:
I have a really nice HP printer that's currently connected via USB cable to this system. I need to move it out of cable range. My OS/X and iOS devices are able to find it and print to it using the magic of Bonjour. Is there a way for Fedora to use it via Avahi, rather than ipp and giving the printer a fixed IP address?
CUPS does find network-printers via avahi
Ensure that your Fedora client system's firewall has port 5353/udp (mDNS) and 631/udp (IPP client) open, and things should generally Just Work(tm).
It seems to be more than 5353 and 631. With the iptables service running, I don't see the printer in CUPS. If I stop the iptables service, I do. What's missing here?
it is only 5353 used BUT UDP, 100% sure and no there is no need to open jetdirect INCOMING or other voodo
avahi works on UDP and your UDP rule looks strange what is the "224.0.0.251" for?
Isn't that multicast? Can't conveniently look it up at the moment, but that rings a bell.
you need open ports FROM YOU LOCAL NETWORK like 10.0.0.0/24 your other rules looking partly dangerous and way too wide open
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:mdns
ACCEPT udp -- anywhere 224.0.0.251 state NEW udp dpt:mdns
On Tue, May 15, 2012 at 05:25:39PM -0400, Bill Davidsen wrote:
Reindl Harald wrote:
Am 15.05.2012 16:24, schrieb Steven Stern:
On 05/15/2012 08:57 AM, Paul W. Frields wrote:
On Mon, May 14, 2012 at 11:25:47PM +0200, Reindl Harald wrote:
Am 14.05.2012 23:22, schrieb Steven Stern:
I have a really nice HP printer that's currently connected via USB cable to this system. I need to move it out of cable range. My OS/X and iOS devices are able to find it and print to it using the magic of Bonjour. Is there a way for Fedora to use it via Avahi, rather than ipp and giving the printer a fixed IP address?
CUPS does find network-printers via avahi
Ensure that your Fedora client system's firewall has port 5353/udp (mDNS) and 631/udp (IPP client) open, and things should generally Just Work(tm).
It seems to be more than 5353 and 631. With the iptables service running, I don't see the printer in CUPS. If I stop the iptables service, I do. What's missing here?
it is only 5353 used BUT UDP, 100% sure and no there is no need to open jetdirect INCOMING or other voodo
avahi works on UDP and your UDP rule looks strange what is the "224.0.0.251" for?
Isn't that multicast? Can't conveniently look it up at the moment, but that rings a bell.
Correct, it's a multicast address.
On 05/14/2012 04:25 PM, Reindl Harald wrote:
Am 14.05.2012 23:22, schrieb Steven Stern:
I have a really nice HP printer that's currently connected via USB cable to this system. I need to move it out of cable range. My OS/X and iOS devices are able to find it and print to it using the magic of Bonjour. Is there a way for Fedora to use it via Avahi, rather than ipp and giving the printer a fixed IP address?
CUPS does find network-printers via avahi
It does! I was looking under "find new printers" and didn't see it. It is under ADD PRINTERS -> DISCOVERED NETWORK PRINTERS.
Cool!