From owner-freebsd-questions@FreeBSD.ORG Sat Mar 6 10:27:45 2004 Return-Path: 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 C3C1916A4CE for ; Sat, 6 Mar 2004 10:27:45 -0800 (PST) Received: from kayjay.xs4all.nl (kayjay.xs4all.nl [80.126.33.60]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2D13C43D1F for ; Sat, 6 Mar 2004 10:27:45 -0800 (PST) (envelope-from karelj@kayjay.xs4all.nl) Received: from kayjay.xs4all.nl (localhost.wop.wtb.tue.nl [127.0.0.1]) by kayjay.xs4all.nl (8.12.11/8.12.11) with ESMTP id i26IRhMk007472 for ; Sat, 6 Mar 2004 19:27:43 +0100 (CET) (envelope-from karelj@kayjay.xs4all.nl) Received: (from karelj@localhost) by kayjay.xs4all.nl (8.12.11/8.12.11/Submit) id i26IRhev007471 for questions@freebsd.org; Sat, 6 Mar 2004 19:27:43 +0100 (CET) (envelope-from karelj) Date: Sat, 6 Mar 2004 19:27:43 +0100 From: "Karel J. Bosschaart" To: questions@freebsd.org Message-ID: <20040306182743.GA7455@kayjay.xs4all.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.1i Subject: problem with Opera connecting to webserver on local network X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 06 Mar 2004 18:27:45 -0000 Hi, I'm using a FreeBSD 4.9 machine to connect to an ADSL ethernet modem (using rl0). With a second NIC (rl1) it serves as a gateway for my other machines on the local network using natd. Works fine and as expected. A more detailed layout/config can be found at http://kayjay.xs4all.nl/connection . The machine also runs Apache 1.3.29, and it can be accessed without problems from 'outside', ie. over the modem/outgoing NIC (rl0). When accessing the webserver over the internal network (rl1) however, it doesn't always work as I want. I suspect a problem with the Apache configuration but the behaviour seems to depend on the browser/OS I use on the machine (triple boot W2K, -stable, -current) on the local network: Opera 7.23, -stable: no problem. Opera 7.23, -current: can't access the server by it's hostname, but using the IP of rl1 works as long as nothing is appended to the IP (http://192.168.0.4 works, http://192.168.0.4/somedir does *not* work). Konqueror, -current: no problem (which shows that the problem with Opera is not a resolver issue, right?). I haven't used W2K for a while but AFAIR IE has the same problem as Opera 7.23 on -current. Using tcpdump on the server I found that the requests from Opera 7.23 on -current are answered by the webserver on the outgoing NIC instead of the local NIC, which obviously causes the problem. The requests from Konqueror are properly answered on the local NIC rl1. So my questions: how to make Opera (my favourite browser) work properly in -current? Is this a problem with the Apache server configuration, natd configuration, browser configuration or something else? I browsed through the Apache configuration file, the Apache FAQ and googled for 'Apache multiple NIC' and others but didn't find anything relevant. Any pointer appreciated! Karel.