From owner-freebsd-questions@FreeBSD.ORG Wed Aug 9 04:37:32 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 10E5B16A4DA for ; Wed, 9 Aug 2006 04:37:32 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (ns0.infracaninophile.co.uk [81.187.76.162]) by mx1.FreeBSD.org (Postfix) with ESMTP id 42E9D43D49 for ; Wed, 9 Aug 2006 04:37:30 +0000 (GMT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from [IPv6:::1] (localhost [IPv6:::1]) by smtp.infracaninophile.co.uk (8.13.6/8.13.6) with ESMTP id k794b4O2034255 for ; Wed, 9 Aug 2006 05:37:05 +0100 (BST) (envelope-from m.seaman@infracaninophile.co.uk) Authentication-Results: smtp.infracaninophile.co.uk from=m.seaman@infracaninophile.co.uk; sender-id=softfail; spf=softfail X-SenderID: Sendmail Sender-ID Filter v0.2.14 smtp.infracaninophile.co.uk k794b4O2034255 Message-ID: <44D96668.8020500@infracaninophile.co.uk> Date: Wed, 09 Aug 2006 05:36:56 +0100 From: Matthew Seaman Organization: Infracaninophile User-Agent: Thunderbird 1.5.0.5 (X11/20060801) MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <20060808154327.BDB4.GERARD@seibercom.net> <44D8ED25.4060206@infracaninophile.co.uk> <20060808180606.BDC4.GERARD@seibercom.net> In-Reply-To: <20060808180606.BDC4.GERARD@seibercom.net> X-Enigmail-Version: 0.94.0.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enig5C7A177D06BF6F63EB5F2758" X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0.2 (smtp.infracaninophile.co.uk [IPv6:::1]); Wed, 09 Aug 2006 05:37:25 +0100 (BST) X-Virus-Scanned: ClamAV 0.88.3/1641/Wed Aug 9 00:01:19 2006 on happy-idiot-talk.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00, DKIM_POLICY_TESTING,NO_RELAYS autolearn=ham version=3.1.3 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on happy-idiot-talk.infracaninophile.co.uk Subject: Re: Port Not Available X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Aug 2006 04:37:32 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig5C7A177D06BF6F63EB5F2758 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: quoted-printable Gerard Seibert wrote: > OK, the ifconfig lo0 looks like this: >=20 > ~ $ ifconfig lo0 > lo0: flags=3D8049 mtu 16384 > inet6 ::1 prefixlen 128 > inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 > inet 127.0.0.1 netmask 0xff000000 No problems there. > The sockstat | grep :25 >=20 > ~ $ sockstat | grep :25 >=20 > root master 681 11 tcp4 *:25 *:* > root ntpd 519 6 udp6 fe80:1::250:baff:fe43:3a7f:123*:* Your MTA is not listening on any IPv6 addresses -- that might be by desig= n. If that is so and if you're in the habit of telnet'ing to localhost port = 25 to test things, you need to make it so that localhost resolves to 127.0.0= =2E1 rather than ::1. That depends on where your system finds the info from. = If it's /etc/hosts then you can comment out the ::1 entry there and leave ju= st 127.0.0.1. If it's the DNS, and assuming you don't have any control over= the server, then you can try tweaking /etc/nsswitch.conf so that host loo= kups consult /etc/hosts first, and don't go to the DNS if they find an answer = in /etc/hosts. Perhaps easier in the long run to get your MTA IPv6 enabled. > And finally: sockstat | grep :515 >=20 > ~ $ sockstat | grep :515 >=20 > daemon lpd 915 6 tcp4 *:515 *:* Again, lpd is not listening on any IPv6 addresses. According to the man page it should default to listening on both IPv4 and IPv6 addresses. You can try adding: lpd_flags=3D"-46" into /etc/rc.conf and then '/etc/rc.d/lpd restart' That *should* be the default, but it's worth trying. > Finally, this is a quick list of what happens when I issue 'lpr' > commands. You will notice that there is a slight difference in the erro= r > message displayed, but the result is the same. I can, however, print a > test page using apsfilter. I am at my wits end to figure out what is > happening. If I had any hair left, I would be pulling it out by now. Printing from the localhost will generally use the Unix domain socket at /var/run/printer. In fact, if all you want to do is print from localhost= , then putting: lpd_flags=3D'-s' in rc.conf is a good move -- that stops lpd listening on any network interfaces. Also check /etc/hosts.lpd for sanity -- you need to list hosts allowed to= send jobs to the printer in that file. If the remote hosts you're trying to print from are not Unix machines, th= en you may have to add '-W' to the lpd_flags to permit lpd to accept print j= obs where the sending side does not use a privileged socket. > ~ $ lpc status all > Printer Printing Spooling Jobs Server Subserver Redirect St= atus/(Deb > ug) > lp@scorpio enabled enabled 0 none none Ah... You aren't running the system lpr/lpd then? That produces output mo= re like this: happy-idiot-talk:/etc:% lpc status all=20 lp: queuing is enabled printing is enabled no entries in spool area printer idle If that is what you intended, then you'll have to consult the manuals for= the printer daemon you are running and adapt the instructions I gave above appropriately. > ~ $ > ~ $ lpr -Pscorpio /etc/printcap > lpr: Connection refused > ~ $ > ~ $ lpr -Pseibercom /etc/printcap > lpr: Connection refused > ~ $ > ~ $ lpr -Pseibercom.net /etc/printcap > lpr: Connection refused > ~ $ > ~ $ lpr /etc/printcap > lpr: Error - scheduler not responding! >=20 Also, if you describe what printers you have and where it might help -- t= he above either shows a lot of attempts to connect to a network interface wh= ere there is no lpd listening, or the effect of some overzealous firewall rules dro= pping lpr traffic. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW --------------enig5C7A177D06BF6F63EB5F2758 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFE2WZw8Mjk52CukIwRCN5gAJ9A5ICdRcWcJrNRr/wi5YekofSCvgCeNa1O lkLMkvEbTXKms7pAy1nP1G8= =gIyj -----END PGP SIGNATURE----- --------------enig5C7A177D06BF6F63EB5F2758--