![]() |
|
FreeBSD Installation and Upgrading Installing and upgrading FreeBSD. |
![]() |
|
Thread Tools | Display Modes |
|
|||
![]()
I have just installed FreeBSD-10.1-RELEASE-amd64-dvd1.iso on a fresh platform. All seemed to progress smoothly, except the system cannot rout to anything on the WAN. I can ping the local host (127.0.0.1), the static IP of the host name, the gateway address, and other devices on the local switch (a DSL router with four ports).
All info displayed via ifconfig and netstat appear normal; rc.conf is as installed mostly "right out of the box". No firewall in play; no intermediate LAN router, etc. My previous experience installing versions of FreeBSD have not encountered this problem (Other server platforms are working well). For my eyes, I cannot see what is wrong. Suggestions? |
|
|||
![]()
. . .in rc.conf, needed to change
Code:
defaultrouter="ip address" Last edited by rtwingfield; 18th May 2015 at 01:42 AM. Reason: Change made in rc.conf file. |
|
|||
![]()
I can ping the 192.168.1.1 address and I can also connect sftp via the address, but not the domain name. The latter attempt results with "ssh: connect to host archaxis.net port 22: No route to host . . .Connection closed".
I can also ping Google's public DNS servers, 8.8.8.8 and 8.8.4.4. Also other of my servers across town. Problem is . . .I cannot ping any of my locally hosted domains served by another Apache HTTP server on the LAN at the 192.168.1.74 address, although I can ping that server address. If I try to ping any of the domains (by name), then the system complains, "ping: sendto: No route to host". Given this "no route" scenario, Code:
# nslookup archaxis.net Server: 127.0.0.1 Additionally, Code:
# dig archaxis.net ; <<>> DiG 9.10.2 <<>> archaxis.net . . .and Code:
# route get archaxis.net route to: localhostIf I understand the functionality of these network utilities, it appears that they find routes to the hosts. Soooo, why can't ping, sendmail, et al., find a route to the host? I've revisited all of my zone files, double checked /etc/host, etc/hosts.conf, resolv.conf, etc. I'm at a loss . . .there must be something I'm missing in this BIND 9 configuration . . .perhaps different from '8 that I'm not seeing. Where should I look? I've had BIND 8+ running successfully for years. What do I need to add or change to enable BIND 9.10.2 to resolve these domains? |
|
|||
![]()
The mask seems correct to me. My DSL account consists of a block of 8 static IP addresses including broadcast through gateway, etc. Also, this same IP scenario was working with my previous running version of BIND 8+.
Thanks for the suggestion! I've got to go to a meeting this morning, but I have some new information to share . . .just need time to compose a question or two. |
|
||||
![]()
Since it's not clear to me what's happening, I'll start with an ASCII picture. Is this correct?
Code:
{Internet via a /29} - [DSL gateway router] - {192.168.1.x/24} - [Servers and Workstations]
Last edited by jggimi; 18th May 2015 at 04:44 PM. Reason: typo, clarity |
|
||||
![]() Quote:
Attached to the LAN are several server platforms and "Windoze" workstations, that include three FreeBSD boxes, an AS/400, and across town, yet another NetGear FVS318 router (attached to it's own wireless ISP). An Apache HTTP server is running on one of the aforementioned FreeBSD platforms, is attached to the local LAN and host several virtual webhosts. (Keep in mind that these virtual hosts all attached to the primary webserver's IP address.) These virtual hosts are parcel to the problem. Notably, the httpd.conf file, et.al, has not changed. All webhosts were serving well before the upgrade of the nameserver to BIND v9.10.2 that runs on a separate FreeBSD platform, but on the same LAN. Problem now is that only one of the virtual hosts will serve, and it is not the primary webhost; however the zonefiles are practically identical -- one works, the other not. The diagnostic complaint is "no route to host". Additionally, I'm seeing similar complaints from sendmail and qpopper. Philosophically and certainly pragmatically, I agree with Cricket Liu and Paul Albitz's assertion that "[the] worst problem with DNS is that despite its widespread use on the Internet, there's really very little documentation about managing and maintaining it. Most administrators on the Internet make do with the documentation their vendors see fit to provide and with whatever they can glean from following the Internet mailing lists and Usenet newsgroups on the subject. OK, I'll stand down off my soap box. I just wanted to take an opportunity to vent . . .should I begin to sound ignorant of BIND and nameservice in general. ![]() . . .continuing on topic: Quote:
Quote:
Quote:
------------------------ I'm beginning to think that this is not a resolver problem per se. First, I'm not sure that the named is throwing the "no route to host" message. Often, it is difficult to determine from where or what process the message(s) originated. (BTW, this is where OS/400 really shines, but that argument is for another suitcase of beer). Just late last evening, I found similar examples in /var/named/named.log as follows: Notice that it starts with a query to 151.164.1.11. This is one of AT&T/SBC's nameservers. It continues with: security: info: client 151.164.1.11#26716 (www.ar042swrcap.org): query 'www.ar042swrcap.org/A/IN' denied . . .followed with query-errors: debug 3: client 151.164.1.11#26716 (www.ar042swrcap.org):[ query failed (REFUSED) for www.ar042swrcap.org/IN/A at query.c:6328 Another example: queries: info: client 151.164.1.11#26716 (www.ar042swrcap.org): query: www.ar042swrcap.org IN A -EDC (192.168.1.73) 18-May-2015 21:33:08.135 security: info: client 151.164.1.11#26716 (www.ar042swrcap.org): query 'www.ar042swrcap.org/A/IN' denied 18-May-2015 21:33:08.135 query-errors: debug 3: client 151.164.1.11#26716 (www.ar042swrcap.org): query failed (REFUSED) for www.ar042swrcap.org/IN/A at query.c:6328 18-May-2015 21:33:08.135 client: debug 3: client 151.164.1.11#26716 (www.ar042swrcap.org): error 18-May-2015 21:33:08.135 client: debug 3: client 151.164.1.11#26716 (www.ar042swrcap.org): send 18-May-2015 21:33:08.135 client: debug 3: client 151.164.1.11#26716 (www.ar042swrcap.org): sendto 18-May-2015 21:33:08.136 client: debug 3: client 151.164.1.11#26716 (www.ar042swrcap.org): senddone 18-May-2015 21:33:08.136 client: debug 3: client 151.164.1.11#26716 (www.ar042swrcap.org): next 18-May-2015 21:33:08.136 client: debug 3: client 151.164.1.11#26716 (www.ar042swrcap.org): endrequest . . .then there is this example: client: debug 3: client 151.164.1.11#45884: query 18-May-2015 21:50:24.584 queries: info: client 151.164.1.11#45884 (classxboats.com): query: classxboats.com IN A -EDC (192.168.1.73) 18-May-2015 21:50:24.584 security: info: client 151.164.1.11#45884 (classxboats.com): query 'classxboats.com/A/IN' denied 18-May-2015 21:50:24.584 query-errors: debug 3: client 151.164.1.11#45884 (classxboats.com): query failed (REFUSED) for classxboats.com/IN/A at query.c:6328 18-May-2015 21:50:24.584 client: debug 3: client 151.164.1.11#45884 (classxboats.com): error 18-May-2015 21:50:24.585 client: debug 3: client 151.164.1.11#45884 (classxboats.com): send 18-May-2015 21:50:24.585 client: debug 3: client 151.164.1.11#45884 (classxboats.com): sendto 18-May-2015 21:50:24.585 client: debug 3: client 151.164.1.11#45884 (classxboats.com): senddone 18-May-2015 21:50:24.585 client: debug 3: client 151.164.1.11#45884 (classxboats.com): next 18-May-2015 21:50:24.585 client: debug 3: client 151.164.1.11#45884 (classxboats.com): endrequest This leads me to think that the server is resolving, but something is interrupting the validation process. It appears that there is something going on at my upstream ISP's nameserver that is unhappy with my queries. This is new . . .never had this problem before I upgraded to BIND v9.10.2. As I alluded to before, there is not a great plethora of documentation regarding named diagnostic and logged messages. Regardless, is the "no route to host" message a result of a failed query? If so, then perhaps this is not a resolving failure, but more of an ambiguous diagnostic resulting from a denied or failed query. If this is so, then what would/should I do to avoid or correct the problem? I have also observed several logged messages regarding "request is not signed". What's that about? 18-May-2015 22:20:08.439 security: debug 3: client 127.0.0.1#61061: request is not signed Additionally, I have experimented with running BIND (named) without the /var/named/resolv.conf file. (Why do this? Cricket Liu and/or Paul Albitz have suggested that the table may not be needed with small scope BIND environments); never-the-less, I saw log messages that stated something like "could not resolve" rather than "route to host not found". It was early hours this morning . . .2 or 3 AM . . .I did not sleep at all last night . . .tired and cannot think or recall how I happened onto the scenario. I'll try to recreate the situation, but for now, it's about 11 PM. I've got to get some sleep. I'll edit this drama when I have more info. *** EDIT *** 6:43 AM 19 May 2015 . . .everyone standby -- I think I have discovered and corrected the issue, and it is associated with my upstream ISP (AT&T/SBC) denying recursive queries as per the following example: query-errors: debug 3: client 151.164.1.11#26716 (www.ar042swrcap.org):[ query failed (REFUSED) for www.ar042swrcap.org/IN/A at query.c:6328 In my /var/namedb/named.conf file, I have removed the allow-recursion clause that for some reason I had allowed in my new named.conf file! Notice the tested date in the following code. Once I deactivated the function and restarted named, then BAM! suddenly sendmail and qpopper came alive, downloaded days of eMail, and bingo, my Apache virtual hosts are serving! Code:
recursion yes; // DNS & BIND, 4th edition, p.283 & 322 ...tested Jan 25, 2013 allow-recursion { // Only relevant if recursion yes is present or defaulted. "internal"; }; // allow-query { // DNS & BIND, p.315 ...tested Jan 27, 2013 // "internal"; // "external"; // }; // testing with com-out to see if server can receive email. // ...and yes, this was the problem. (Allowing queries hoses SendMail.) (I'm going to post this, and come back to my discussion . . .probably should call it, "Ron's Rant".) ![]() . . .continuing, there are still some oddities that I cannot explain. For example, why was one Apache virtual host allowed to serve successfully while all others were denied? In consideration that the associated zone files are essentially identical, there must be some unnoticed subtle nuance. Most important though, is my assumption that the nameserver is/was indeed resolving, only the queries were being blocked upstream, and the no route to host diagnostic messages were (and still are in some cases) a poor and generalized suggestion (probably generated by ICMP) that something is very wrong somewhere else. As much as I like UNIX, this is where IBM's OS/400 shines. (Don't laugh, I've made a lot of money programming and supporting AS/400 users.) OS/400 supports a plethora of diagnostic and help messaging. The OS allows you to interrupt interactive processes and look at things like the program invocation stack. Messages usually have a second level of help that can provide tremendous details about the primary subject. Interactive debug provides multi-colored step-by-step walk through of displayed source code while executing the actual code. Break points are easily set, and program variable values are easily displayed. But I digress, my point is that if indeed the no route to host diagnostic message is generated by the ICMP, then the system could have been designed and written to throw a message something like: No route to host . . .but you know what, it's because your upstream ISP host screwed you -- they don't allow recursive queries!" . . .and oh by the way, they are AT&T and their IP address is 123.456.789.10. Go cry. You see, ICMP (. . .whatever) already knows what happened -- it made a yes/no-go decision somewhere, and if it evaluates responses to queries and determines DENIED or REFUSED, then tell me the same, rather than "no route to host". Don't make me spend two weeks grepping through obscure named logs. (If only I were king of the world.) Last edited by rtwingfield; 19th May 2015 at 02:14 PM. Reason: . . .spelling and grammar. |
|
||||
![]()
I'm glad you got your domain results sorted out. I'v used BIND 8 and BIND 9 but not in several years. I use unbound because I don't need an authoritative (e.g. Internet facing) nameserver and its provisioning and management is simpler and easier for me.
In regards to your reserved address question, the low-order address of a subnet is for routing, the high-order address for broadcast. Example with 10.1.1.0/24: 10.1.1.0 is for routing, 10.1.1.255 is for broadcast, so .1 through .254 are available for 254 devices. Example with 10.1.1.0/29: 10.1.1.0 is for routing, 10.1.1.7 is for broadcast, so .1 through .6 are available for 6 devices. Example with 10.1.1.8/29: 10.1.1.8 is for routing, 10.1.1.15 is for broadcast, so .9 through .14 are available for 6 devices. Your /29 has a x.x.x.73 device, so I assume your subnet is x.x.x.72/29, where .72 is used for routing and .79 is used for broadcast. (I've redacted your AT&T provided IP addresses, because that can be used for identification. You may want to edit your posts to redact the same information.) |
|
|||
![]()
After working on this dilemma for about two weeks, I have resolved the problem. Please see this URL:
click here, open in a new tab . . .whatever: https://forums.freebsd.org/threads/s...-2#post-290219 As I mention in the linked post, I will post a detailed "debriefing" ASAP. Thanks to everyone responding on the Daemon Forums and The FreeBSD Forums for all your help and suggestions. A second set of eyes is always helpful. Ron W. Last edited by rtwingfield; 25th May 2015 at 03:40 AM. Reason: Announce solution to problem. |
![]() |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Multi-Path or Route-To? | SlyM | OpenBSD General | 25 | 1st July 2016 04:21 PM |
route on openbsd | hpabsdbeginner1 | OpenBSD General | 2 | 15th April 2014 07:17 PM |
Openvpn pf/nat/route-to issue | lasstoff | OpenBSD Security | 3 | 16th January 2012 12:28 PM |
How to add static route using virtual NIC | bsdplus | Solaris | 1 | 22nd August 2010 02:10 AM |
ping: sendto: No route to host | joostvgh | OpenBSD General | 2 | 29th April 2010 12:34 PM |